You appear to be a bot. Output may be restricted
Description
Implement "themes_api_result" filter to add our own themes
Usage
$unserialised = oik_remote::oik_lazy_themes_api_result( $result, $action, $args );
Parameters
- $result
- ( mixed ) required –
- $action
- ( mixed ) required –
- $args
- ( mixed ) required –
Returns
unserialised object $result ( [0] => stdClass Object ( [info] => Array ( [page] => 1 [pages] => 1 [results] => 6 ) [themes] => Array ( [0] => stdClass Object ( [name] => DailyPost [slug] => dailypost [version] => 1.0.5 [author] => valeriutihai [preview_url] => http://wp-themes.com/dailypost [screenshot_url] => http://wp-themes.com/wp-content/themes/dailypost/screenshot.png [rating] => 83.4 [num_ratings] => 6 [homepage] => http://wordpress.org/themes/dailypost [description] => DailyPost is intresting theme ideal for your everyday notes and thoughts, which supports post formats and several customisation options. The theme is a special one because of it's responsive design, thus you will get the pleasure to read the post with your mobile device. ) … one per [results]Source
File name: oik/libs/class-oik-remote.phpLines:
1 to 22 of 22
static function oik_lazy_themes_api_result( $result, $action, $args ) { bw_backtrace(); bw_trace2(); /** * We need to do this for EACH theme that is installed to find which servers to query. * http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) * */ $url = oik_update::oik_get_themes_server(); $url .= "/themes/info/"; $post_args = array( 'timeout' => 15 , 'body' => array('action' => $action, 'request' => serialize($args)) ); $add_result = self::bw_remote_post( $url, $post_args ); if ( $add_result ) { $response = oik_merge_result( $result, $add_result ); } else { $response = $result; } bw_trace2( $response, "response", false ); return( $response ); }View on GitHub View on Trac