Changeset 43790 for branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
- Timestamp:
- 10/22/2018 07:57:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r43735 r43790 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.', 'gutenberg' ), 172 'type' => 'bool', 167 173 'readonly' => true, 168 174 ),
Note: See TracChangeset
for help on using the changeset viewer.