Changeset 44163 for trunk/src/wp-includes/blocks/categories.php
- Timestamp:
- 12/14/2018 04:42:55 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43801,43803
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/blocks/categories.php
r43752 r44163 16 16 static $block_id = 0; 17 17 $block_id++; 18 19 $align = 'center';20 if ( isset( $attributes['align'] ) && in_array( $attributes['align'], array( 'left', 'right', 'full' ), true ) ) {21 $align = $attributes['align'];22 }23 18 24 19 $args = array( … … 47 42 } 48 43 49 $class = "wp-block-categories wp-block-categories-{$type} align{$align}"; 44 $class = "wp-block-categories wp-block-categories-{$type}"; 45 46 if ( isset( $attributes['align'] ) ) { 47 $class .= " align{$attributes['align']}"; 48 } 50 49 51 50 if ( isset( $attributes['className'] ) ) { 52 $class .= ' ' . $attributes['className'];51 $class .= " {$attributes['className']}"; 53 52 } 54 53
Note: See TracChangeset
for help on using the changeset viewer.