Lines:
1 to 100 of 130
<?php // (C) Copyright Bobbing Wide 2012-2017 /** * Pre-deprecation notice * * All of the functions from oik-remote.inc have been moved to the shared library /libs/class-oik_remote.php * Some time in the future, inclusion of this file will display a deprecated notice. * In the mean time, we'll use oik_require_lib( "class-oik-remote" ) to load the correct file. * * There should be no plugins and themes which attempt to include this file when oik is not active * so this call is expected to work. */ if ( !defined( "OIK_REMOTE_INCLUDED" ) ) { oik_require_lib( "class-oik-remote" ); } /* end !defined */ if ( !defined( "OIK_REMOTE_INCLUDED" ) ) { /* function bw_remote_head() – Wrapper to wp_remote_head */ /* function bw_remote_geth() – wrapper to wp_remote_get for both HEAD and json body */ /* function bw_remote_get() – Wrapper to wp_remote_get */ /* function bw_remote_get2() – Wrapper to wp_remote_get2 */ /* function bw_retrieve_result() – Return the result if the response code is 200 ( OK ) */ /* function bw_remote_post() – Wrapper to wp_remote_post */ /* function oik_lazy_altapi_check() – Update site_transient_update_plugins for each of our plugins */ /* function oik_check_checked_for_update() – Check the checked array for updates */ /* function oik_check_these_for_update() – Check these plugins for updated versions */ /* function oik_lazy_alttheme_check() – option__site_transient_update_themes stdClass Object ( [last_checked] => 1367174636 [checked] => Array ( */ /* function oik_check_for_update() – Check an oik-plugins server for an updated plugin */ /* function oik_check_for_theme_update() – Check an oik-themes server for an updated theme */ /* function oikp_our_plugin() – Determine if this is one of "our" plugins */ /* function oik_lazy_pluginsapi() – Implement "plugin_information" for our own plugins */ /* function oik_lazy_themes_api() – Implement "themes_api" for our own themes */ /* function oik_lazy_themes_api_result() – Implement "themes_api_result" filter to add our own themes */ /** * Differences between responses for different requests * * [browse] = "featured" doesn't return much information in the "info" section. * Perhaps this is because there is less than one page! We could test this by setting "per_page" to a low number. * OR have a look at what happens with "search". See below * [info] => Array ( [page] => 1 [pages] => 0 [results] => ) * [browse] = "new" - same as featured * [browse] = "updated" - same as featured * * [search] = keyword * [author] = author [info] => Array ( [page] => 1 [pages] => 1 [results] => 27 [author] => ) * [tag] = tags * * The answer is tricky since ajax takes over at the front end. * So we probably need to see what happens during this processing ( [action] => fetch-list [paged] => 3 [s] => [tab] => search [type] => term [_ajax_fetch_list_nonce] => 5962dafe3aView on GitHub View on Trac