WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/27/2020 09:32:50 AM (11 months ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress packages for 5.6 beta 2

It contains:

  • Fix drop zone indicators for non blocks.
  • Fix archives block render function.
  • Code block: preserve indentation on paste.
  • Turn off autocomplete for token input.
  • Fix parent post selector: ensure initial value available, search performed, all results shown.
  • Fix gallery block undo issue.

Props isabel_brison.
Fixes #51640.

File:
1 edited

Legend:

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

    r49226 r49324  
    8989    $classnames = esc_attr( $class );
    9090
     91    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
     92
    9193    if ( empty( $archives ) ) {
    92 
    9394        return sprintf(
    94             '<div class="%1$s">%2$s</div>',
    95             $classnames,
     95            '<div %1$s>%2$s</div>',
     96            $wrapper_attributes,
    9697            __( 'No archives to show.' )
    9798        );
    9899    }
    99 
    100     $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
    101100
    102101    return sprintf(
Note: See TracChangeset for help on using the changeset viewer.