Make WordPress Core


Ignore:
Timestamp:
10/20/2020 01:33:02 PM (4 years ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages to the latest version.

This includes the packages that match the Gutenberg 9.2 Release.
It is going to be the last block-editor features update for WordPress 5.6.
It also updates the block-supports code base to the latest APIs.

Props isabel_brison, noisysocks, desrosj.
Fixes #51570.

File:
1 edited

Legend:

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

    r49135 r49226  
    2929        $args['id']               = $id;
    3030        $args['show_option_none'] = __( 'Select Category' );
    31         $wrapper_markup           = '<div class="%1$s">%2$s</div>';
     31        $wrapper_markup           = '<div %1$s>%2$s</div>';
    3232        $items_markup             = wp_dropdown_categories( $args );
    3333        $type                     = 'dropdown';
     
    4343        }
    4444    } else {
    45         $wrapper_markup = '<ul class="%1$s">%2$s</ul>';
     45        $wrapper_markup = '<ul %1$s>%2$s</ul>';
    4646        $items_markup   = wp_list_categories( $args );
    4747        $type           = 'list';
    4848    }
    4949
    50     $class = "wp-block-categories-{$type}";
     50    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type}" ) );
    5151
    5252    return sprintf(
    5353        $wrapper_markup,
    54         esc_attr( $class ),
     54        $wrapper_attributes,
    5555        $items_markup
    5656    );
Note: See TracChangeset for help on using the changeset viewer.