Changeset 4505 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
- Timestamp:
- 12/08/2016 01:58:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
r4458 r4505 14 14 class Plugin extends Base { 15 15 16 /** 17 * Plugin constructor. 18 */ 16 19 function __construct() { 17 20 register_rest_route( 'plugins/v1', '/plugin/(?P<plugin_slug>[^/]+)/?', array( … … 124 127 foreach ( $screen_shots as $image ) { 125 128 $result['screenshots'][ $image['resolution'] ] = array( 126 'src' => Template::get_asset_url( $post ->post_name, $image ),129 'src' => Template::get_asset_url( $post, $image ), 127 130 'caption' => array_key_exists( $image['resolution'], $descriptions ) ? $descriptions[ $image['resolution'] ] : '' 128 131 );
Note: See TracChangeset
for help on using the changeset viewer.