Yoast_Update_Manager::get_remote_data PHP Method

get_remote_data() protected method

- If it was previously fetched in the current requests, this gets it from the instance property - Next, it tries the 3-hour transient - Next, it calls the remote API and stores the result
protected get_remote_data ( ) : object
return object
        protected function get_remote_data()
        {
            // always use property if it's set
            if (null !== $this->update_response) {
                return $this->update_response;
            }
            // get cached remote data
            $data = $this->get_cached_remote_data();
            // if cache is empty or expired, call remote api
            if ($data === false) {
                $data = $this->call_remote_api();
            }
            $this->update_response = $data;
            return $data;
        }