Make WordPress Core


Ignore:
Timestamp:
12/14/2018 04:42:55 AM (8 years ago)
Author:
pento
Message:

Build Tools: Update the @wordpress/* packages.

Merges [43801,43803] from the 5.0 branch to trunk.

See #45145.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/blocks/categories.php

    r43752 r44163  
    1616        static $block_id = 0;
    1717        $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         }
    2318
    2419        $args = array(
     
    4742        }
    4843
    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        }
    5049
    5150        if ( isset( $attributes['className'] ) ) {
    52                 $class .= ' ' . $attributes['className'];
     51                $class .= " {$attributes['className']}";
    5352        }
    5453
Note: See TracChangeset for help on using the changeset viewer.