Make WordPress Core


Ignore:
Timestamp:
11/21/2018 03:08:01 PM (6 years ago)
Author:
danielbachhuber
Message:

Block Editor: Update @WordPress dependencies to match Gutenberg 4.5.1.

Updates packages: annotations,
api-fetch,
block-library,
blocks,
components,
core-data,
data,
dom, edit-post,
editor,
format-library,
jest-console,
jest-preset-default,
keycodes,
html-entities,
list-reusable-blocks,
notices,
nux,
rich-text,
scripts,
token-list, url,
viewport

Fixes undefined notices in some blocks. Removes incorrect 'gutenberg' textdomain too.

See #45145

File:
1 edited

Legend:

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

    r43801 r43919  
    3030        $title = get_the_title( $post );
    3131        if ( empty( $title ) ) {
    32             $title = __( '(no title)', 'gutenberg' );
     32            $title = __( '(no title)' );
    3333        }
    3434        return esc_html( $title );
     
    9999            $list_items_markup .= sprintf(
    100100                /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */
    101                 __( '%1$s on %2$s', 'gutenberg' ),
     101                __( '%1$s on %2$s' ),
    102102                $author_markup,
    103103                $post_title
     
    120120
    121121    $class = 'wp-block-latest-comments';
    122     if ( $attributes['align'] ) {
     122    if ( isset( $attributes['align'] ) ) {
    123123        $class .= " align{$attributes['align']}";
    124124    }
     
    144144        '<div class="%1$s">%2$s</div>',
    145145        $classnames,
    146         __( 'No comments to show.', 'gutenberg' )
     146        __( 'No comments to show.' )
    147147    );
    148148
Note: See TracChangeset for help on using the changeset viewer.