Changeset 47794
- Timestamp:
- 05/14/2020 12:49:00 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r47790 r47794 257 257 * 258 258 * @since 3.1.0 259 * @since 3.2.0 Added 'Gray' color and 'Featured Image Header', 'Featured Images', 260 * 'Full Width Template', and 'Post Formats' features. 261 * @since 3.5.0 Added 'Flexible Header' feature. 262 * @since 3.8.0 Renamed 'Width' filter to 'Layout'. 263 * @since 3.8.0 Renamed 'Fixed Width' and 'Flexible Width' options 264 * to 'Fixed Layout' and 'Fluid Layout'. 265 * @since 3.8.0 Added 'Accessibility Ready' feature and 'Responsive Layout' option. 266 * @since 3.9.0 Combined 'Layout' and 'Columns' filters. 267 * @since 4.6.0 Removed 'Colors' filter. 268 * @since 4.6.0 Added 'Grid Layout' option. 269 * Removed 'Fixed Layout', 'Fluid Layout', and 'Responsive Layout' options. 270 * @since 4.6.0 Added 'Custom Logo' and 'Footer Widgets' features. 271 * Removed 'Blavatar' feature. 272 * @since 4.6.0 Added 'Blog', 'E-Commerce', 'Education', 'Entertainment', 'Food & Drink', 273 * 'Holiday', 'News', 'Photography', and 'Portfolio' subjects. 274 * Removed 'Photoblogging' and 'Seasonal' subjects. 275 * @since 4.9.0 Reordered the filters from 'Layout', 'Features', 'Subject' 276 * to 'Subject', 'Features', 'Layout'. 277 * @since 4.9.0 Removed 'BuddyPress', 'Custom Menu', 'Flexible Header', 278 * 'Front Page Posting', 'Microformats', 'RTL Language Support', 279 * 'Threaded Comments', and 'Translation Ready' features. 280 * @since 5.5.0 Added 'Block Editor Styles' and 'Wide Blocks' features. 259 281 * 260 282 * @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true. … … 335 357 ); 336 358 359 $wporg_features = array(); 360 337 361 // Loop over the wp.org canonical list and apply translations. 338 $wporg_features = array();339 362 foreach ( (array) $feature_list as $feature_category => $feature_items ) { 340 363 if ( isset( $category_translations[ $feature_category ] ) ) { 341 364 $feature_category = $category_translations[ $feature_category ]; 342 365 } 366 343 367 $wporg_features[ $feature_category ] = array(); 344 368 -
trunk/src/wp-admin/theme-install.php
r47198 r47794 209 209 </div> 210 210 <?php 211 $feature_list = get_theme_feature_list( false ); // Use the core list, rather than the .org API, due to inconsistencies and to ensure tags are translated. 211 // Use the core list, rather than the .org API, due to inconsistencies 212 // and to ensure tags are translated. 213 $feature_list = get_theme_feature_list( false ); 214 212 215 foreach ( $feature_list as $feature_name => $features ) { 213 216 echo '<fieldset class="filter-group">'; -
trunk/src/wp-includes/class-wp-theme.php
r47631 r47794 935 935 return $this->name_translated; 936 936 } 937 937 938 // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain 938 939 $this->name_translated = translate( $value, $this->get( 'TextDomain' ) ); 940 939 941 return $this->name_translated; 940 942 case 'Tags': … … 971 973 972 974 $feature_list = get_theme_feature_list( false ); // No API. 975 973 976 foreach ( $feature_list as $tags ) { 974 977 $tags_list += $tags; -
trunk/src/wp-includes/customize/class-wp-customize-themes-section.php
r47122 r47794 165 165 */ 166 166 protected function filter_drawer_content_template() { 167 $feature_list = get_theme_feature_list( false ); // @todo Use the .org API instead of the local core feature list. The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned. 167 // @todo Use the .org API instead of the local core feature list. 168 // The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned. 169 $feature_list = get_theme_feature_list( false ); 168 170 ?> 169 171 <# if ( 'wporg' === data.action ) { #>
Note: See TracChangeset
for help on using the changeset viewer.