- Timestamp:
- 12/14/2018 01:49:46 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43790-43791
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r43985 r44138 112 112 $data['theme_supports']['formats'] = $formats; 113 113 114 $data['theme_supports']['post-thumbnails'] = false; 115 $post_thumbnails = get_theme_support( 'post-thumbnails' ); 114 $data['theme_supports']['post-thumbnails'] = false; 115 $data['theme_supports']['responsive-embeds'] = (bool) get_theme_support( 'responsive-embeds' ); 116 $post_thumbnails = get_theme_support( 'post-thumbnails' ); 116 117 117 118 if ( $post_thumbnails ) { … … 157 158 'readonly' => true, 158 159 'properties' => array( 159 'formats' => array(160 'formats' => array( 160 161 'description' => __( 'Post formats supported.' ), 161 162 'type' => 'array', 162 163 'readonly' => true, 163 164 ), 164 'post-thumbnails' => array(165 'post-thumbnails' => array( 165 166 'description' => __( 'Whether the theme supports post thumbnails.' ), 166 167 'type' => array( 'array', 'bool' ), 168 'readonly' => true, 169 ), 170 'responsive-embeds' => array( 171 'description' => __( 'Whether the theme supports responsive embedded content.' ), 172 'type' => 'bool', 167 173 'readonly' => true, 168 174 ),
Note: See TracChangeset
for help on using the changeset viewer.