Changeset 49135 for trunk/src/wp-includes/blocks/categories.php
- Timestamp:
- 10/13/2020 01:07:23 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/categories.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/categories.php
r48177 r49135 34 34 35 35 if ( ! is_admin() ) { 36 $wrapper_markup .= build_dropdown_script_block_core_categories( $id ); 36 // Inject the dropdown script immediately after the select dropdown. 37 $items_markup = preg_replace( 38 '#(?<=</select>)#', 39 build_dropdown_script_block_core_categories( $id ), 40 $items_markup, 41 1 42 ); 37 43 } 38 44 } else { … … 42 48 } 43 49 44 $class = "wp-block-categories wp-block-categories-{$type}"; 45 46 if ( isset( $attributes['align'] ) ) { 47 $class .= " align{$attributes['align']}"; 48 } 49 50 if ( isset( $attributes['className'] ) ) { 51 $class .= " {$attributes['className']}"; 52 } 50 $class = "wp-block-categories-{$type}"; 53 51 54 52 return sprintf(
Note: See TracChangeset
for help on using the changeset viewer.