WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2018 05:34:43 AM (2 years ago)
Author:
pento
Message:

Build: Update the @wordpress/editor package.

The @wordpress/editor wasn't upgraded to the correct version in [43789].

This commit includes changes from the @wordpress/block-library upgrade in [43789], that weren't copied to the correct location in core.

This also regenerates the package-lock.json in Linux, which the build server requires.

See #45145.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/blocks/categories.php

    r43752 r43801  
    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.