Make WordPress Core


Ignore:
Timestamp:
12/17/2018 03:35:21 PM (6 years ago)
Author:
desrosj
Message:

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

  • Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
  • Upgrades React from 16.5.2 to 16.6.3.
  • Adds a missing wp-date dependency to the editor script.
  • Updates changed dependencies in script-loader.php.
  • Fixes undefined notices in some blocks.
  • Removes incorrect gutenberg textdomain.

Merges [43891], [43903], and [43919] to trunk.

Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/blocks/latest-comments.php

    r44163 r44262  
    3030        $title = get_the_title( $post );
    3131        if ( empty( $title ) ) {
    32             $title = __( '(no title)', 'gutenberg' );
     32            $title = __( '(no title)', 'default' );
    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', 'default' ),
    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.', 'default' )
    147147    );
    148148
Note: See TracChangeset for help on using the changeset viewer.