Changeset 8273
- Timestamp:
- 02/19/2019 01:53:28 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php
r7729 r8273 276 276 unset( $tags[ __( 'Features' ) ]['blavatar'] ); 277 277 $tags[ __( 'Features' ) ]['footer-widgets'] = __( 'Footer Widgets' ); 278 $tags[ __( 'Features' ) ]['custom-logo'] = __( 'Custom Logo' ); 278 279 asort( $tags[ __( 'Features' ) ] ); // To move footer-widgets to the right place. 279 280 … … 289 290 'portfolio' => __( 'Portfolio' ), 290 291 ); 292 } 293 294 // Pending https://core.trac.wordpress.org/ticket/46272 295 if ( ! isset( $wp_version ) || version_compare( $wp_version, '5.2-alpha', '>=' ) ) { 296 $tags[ __( 'Layout' ) ]['wide-blocks'] = __( 'Wide Blocks' ); 297 $tags[ __( 'Features' ) ]['block-styles'] = __( 'Block Editor Styles' ); 298 asort( $tags[ __( 'Features' ) ] ); // To move block-styles to the right place. 291 299 } 292 300 … … 429 437 } 430 438 431 $this->fields = array_merge( $this->fields, $defaults, (array) $this->request->fields ); 439 if ( isset( $this->request->fields ) ) { 440 $this->fields = array_merge( $this->fields, $defaults, (array) $this->request->fields ); 441 } else { 442 $this->fields = array_merge( $this->fields, $defaults ); 443 } 432 444 433 445 // If there is a cached result, return that.
Note: See TracChangeset
for help on using the changeset viewer.