Make WordPress Core

Changeset 44273


Ignore:
Timestamp:
12/17/2018 07:05:30 PM (8 years ago)
Author:
desrosj
Message:

Block Editor: Update @wordpress package dependencies.

Update packages include:

  • block-library
  • components
  • edit-post
  • editor
  • format-library
  • list-reusable-blocks
  • nux

Other changes:

  • Fix a translator comment in edit-form-blocks.php.
  • Rename the gutenberg_ functions in blocks/latest-comments.php.

Props noisy socks, youknowriad, pinto, swissspidy.

Merges [43935] and [43949-43951] into trunk.

See #45145.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/package-lock.json

    r44262 r44273  
    287287                },
    288288                "@wordpress/block-library": {
    289                         "version": "2.2.6",
    290                         "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.6.tgz",
    291                         "integrity": "sha512-HCRqGzGqeU36tUp26ml+2o8SXCB/gkvzJyeIKX4IGHKjONjxZim/0ht7KoyCEjup/cxNNP8NZ6BQaI3oi6P6JA==",
     289                        "version": "2.2.8",
     290                        "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.8.tgz",
     291                        "integrity": "sha512-86DiBPFQwGDWf/s4OwmTp2q+VoeNhmW1OQXu/on+c5MHgJh7W2uFasO4bhmz31+U9KwAFHQr3pCcxaasdP17vQ==",
    292292                        "requires": {
    293293                                "@babel/runtime": "^7.0.0",
     
    295295                                "@wordpress/blob": "^2.1.0",
    296296                                "@wordpress/blocks": "^6.0.2",
    297                                 "@wordpress/components": "^7.0.1",
     297                                "@wordpress/components": "^7.0.3",
    298298                                "@wordpress/compose": "^3.0.0",
    299299                                "@wordpress/core-data": "^2.0.14",
    300300                                "@wordpress/data": "^4.0.1",
    301301                                "@wordpress/deprecated": "^2.0.3",
    302                                 "@wordpress/editor": "^9.0.1",
     302                                "@wordpress/editor": "^9.0.3",
    303303                                "@wordpress/element": "^2.1.8",
    304304                                "@wordpress/html-entities": "^2.0.3",
     
    363363                },
    364364                "@wordpress/components": {
    365                         "version": "7.0.1",
    366                         "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.1.tgz",
    367                         "integrity": "sha512-6Efciw+CwFa0b51bLZUNWv0C2p5j8VIVb6vAHB/ghwD0BkNHZ0N4JBafOIB+6toAtmLzC+SONfHNmFNJHibZ+Q==",
     365                        "version": "7.0.3",
     366                        "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.3.tgz",
     367                        "integrity": "sha512-7TgmhXz8+KRknFNYe+AYHpq3EreB40OZWEYzXF5tSJdjC6wElrDMKqRCGgWdTlpgZ/09g2cDo7a+GJ8iQTm9ig==",
    368368                        "requires": {
    369369                                "@babel/runtime": "^7.0.0",
     
    484484                },
    485485                "@wordpress/edit-post": {
    486                         "version": "3.1.1",
    487                         "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.1.tgz",
    488                         "integrity": "sha512-sjGNSTBh6xKZUtpskkc1Hx0y+iqcfOyX+i09I+zrRyoelHvw/0nZ9iHvN34lTszAgPOx9vjy8nHc8obH0gr8AA==",
     486                        "version": "3.1.3",
     487                        "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.3.tgz",
     488                        "integrity": "sha512-bA9OIkzInCLvf2YB4b6H0Ubghmv+AjOrCpZcp/5sdWLAg7hE6ZzZZ5Pz/2o5bBd+mTkalALJFMxgy7DKvH3WgQ==",
    489489                        "requires": {
    490490                                "@babel/runtime": "^7.0.0",
    491491                                "@wordpress/a11y": "^2.0.2",
    492492                                "@wordpress/api-fetch": "^2.2.5",
    493                                 "@wordpress/block-library": "^2.2.6",
     493                                "@wordpress/block-library": "^2.2.8",
    494494                                "@wordpress/blocks": "^6.0.2",
    495                                 "@wordpress/components": "^7.0.1",
     495                                "@wordpress/components": "^7.0.3",
    496496                                "@wordpress/compose": "^3.0.0",
    497497                                "@wordpress/core-data": "^2.0.14",
    498498                                "@wordpress/data": "^4.0.1",
    499                                 "@wordpress/editor": "^9.0.1",
     499                                "@wordpress/editor": "^9.0.3",
    500500                                "@wordpress/element": "^2.1.8",
    501                                 "@wordpress/format-library": "^1.2.4",
     501                                "@wordpress/format-library": "^1.2.6",
    502502                                "@wordpress/hooks": "^2.0.3",
    503503                                "@wordpress/i18n": "^3.1.0",
    504504                                "@wordpress/keycodes": "^2.0.5",
    505                                 "@wordpress/nux": "^3.0.2",
     505                                "@wordpress/nux": "^3.0.4",
    506506                                "@wordpress/plugins": "^2.0.9",
    507507                                "@wordpress/url": "^2.3.1",
     
    513513                },
    514514                "@wordpress/editor": {
    515                         "version": "9.0.1",
    516                         "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.1.tgz",
    517                         "integrity": "sha512-ZhihGx9huZkJfKRM5dlzesmjoC0Tcl7LwdMC4UXjQSey7blriRGrEMUdhLikbqdLuK1/tVNA2HHIlHUaRBAMMA==",
     515                        "version": "9.0.3",
     516                        "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.3.tgz",
     517                        "integrity": "sha512-Iz2B2JccsluiV0CdIkeH7sdl+3JcM7u9OqQSRC+0G2gfq8c09c98BE9myRUN16EVvL6zf025DzRU3hSx9r3AbQ==",
    518518                        "requires": {
    519519                                "@babel/runtime": "^7.0.0",
     
    522522                                "@wordpress/blob": "^2.1.0",
    523523                                "@wordpress/blocks": "^6.0.2",
    524                                 "@wordpress/components": "^7.0.1",
     524                                "@wordpress/components": "^7.0.3",
    525525                                "@wordpress/compose": "^3.0.0",
    526526                                "@wordpress/core-data": "^2.0.14",
     
    536536                                "@wordpress/keycodes": "^2.0.5",
    537537                                "@wordpress/notices": "^1.1.0",
    538                                 "@wordpress/nux": "^3.0.2",
     538                                "@wordpress/nux": "^3.0.4",
    539539                                "@wordpress/token-list": "^1.1.0",
    540540                                "@wordpress/url": "^2.3.1",
     
    618618                },
    619619                "@wordpress/format-library": {
    620                         "version": "1.2.4",
    621                         "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.4.tgz",
    622                         "integrity": "sha512-zHkYSu01Qpzc0UNAYTe/X39tzCv3ANPeQpdEGKyPOjhNoUi7qYh26Yheas4gWrx2pOs4tG3DfGDbFMIvgPiwZw==",
     620                        "version": "1.2.6",
     621                        "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.6.tgz",
     622                        "integrity": "sha512-8GkrMRSZ287qotsYzJh0kzDRjDAYJLicwbSRSv4AR2+4dSW6ZX1CK2jt/ihxg5cbqxMitPPTqRA0PmUk+AtdDA==",
    623623                        "requires": {
    624624                                "@babel/runtime": "^7.0.0",
    625                                 "@wordpress/components": "^7.0.1",
     625                                "@wordpress/components": "^7.0.3",
    626626                                "@wordpress/dom": "^2.0.7",
    627                                 "@wordpress/editor": "^9.0.1",
     627                                "@wordpress/editor": "^9.0.3",
    628628                                "@wordpress/element": "^2.1.8",
    629629                                "@wordpress/i18n": "^3.1.0",
     
    699699                },
    700700                "@wordpress/list-reusable-blocks": {
    701                         "version": "1.1.14",
    702                         "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.14.tgz",
    703                         "integrity": "sha512-dRoxJHTClp6tQ5w4RjrLaJTdTkI0tU9do4gz3MNcTi6C/UAE/s/kc5pr6bEmm2hNHsLLhRQPExrNPwh98S7KaA==",
     701                        "version": "1.1.16",
     702                        "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.16.tgz",
     703                        "integrity": "sha512-kkamXKC6lp7ZddFt+VPOaiTftXfldU6qiRNab9JU9BXBD0XmyWl1Ee24RjQtO9ILA8UK9OpYsYCAMP/LSA1Cgg==",
    704704                        "requires": {
    705705                                "@babel/runtime": "^7.0.0",
    706706                                "@wordpress/api-fetch": "^2.2.5",
    707                                 "@wordpress/components": "^7.0.1",
     707                                "@wordpress/components": "^7.0.3",
    708708                                "@wordpress/compose": "^3.0.0",
    709709                                "@wordpress/element": "^2.1.8",
     
    724724                },
    725725                "@wordpress/nux": {
    726                         "version": "3.0.2",
    727                         "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.2.tgz",
    728                         "integrity": "sha512-La82tFww/UzWjywaFODvZ8YODvDK4GeX8ckkaP1zFk0UelkS8gRZdaWDfkEsBzbKHyhZj3JJGT1WrM1/JJYKFw==",
     726                        "version": "3.0.4",
     727                        "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.4.tgz",
     728                        "integrity": "sha512-0GjMmEI8GM/lbRLAxPel6fMjf5rbEB9wGRzVr1dDD7Ak6CfgVfasK/B9UMgngcO0sbCCXkHopjd8QQhUobffPg==",
    729729                        "requires": {
    730730                                "@babel/runtime": "^7.0.0",
    731                                 "@wordpress/components": "^7.0.1",
     731                                "@wordpress/components": "^7.0.3",
    732732                                "@wordpress/compose": "^3.0.0",
    733733                                "@wordpress/data": "^4.0.1",
     
    1160011600                                "debug": "^2.2.0",
    1160111601                                "mkdirp": "0.5.x"
     11602                        },
     11603                        "dependencies": {
     11604                                "async": {
     11605                                        "version": "1.5.2",
     11606                                        "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz",
     11607                                        "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
     11608                                        "dev": true
     11609                                }
    1160211610                        }
    1160311611                },
     
    1299313001                "regjsgen": {
    1299413002                        "version": "0.2.0",
    12995                         "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",
     13003                        "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",
    1299613004                        "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc="
    1299713005                },
  • trunk/package.json

    r44262 r44273  
    6161                "@wordpress/autop": "^2.0.2",
    6262                "@wordpress/blob": "^2.1.0",
    63                 "@wordpress/block-library": "^2.2.6",
     63                "@wordpress/block-library": "^2.2.8",
    6464                "@wordpress/block-serialization-default-parser": "^2.0.0",
    6565                "@wordpress/blocks": "^6.0.2",
    66                 "@wordpress/components": "^7.0.1",
     66                "@wordpress/components": "^7.0.3",
    6767                "@wordpress/compose": "^3.0.0",
    6868                "@wordpress/core-data": "^2.0.14",
     
    7272                "@wordpress/dom": "^2.0.7",
    7373                "@wordpress/dom-ready": "^2.0.2",
    74                 "@wordpress/edit-post": "^3.1.1",
    75                 "@wordpress/editor": "^9.0.1",
     74                "@wordpress/edit-post": "^3.1.3",
     75                "@wordpress/editor": "^9.0.3",
    7676                "@wordpress/element": "^2.1.8",
    7777                "@wordpress/escape-html": "^1.0.1",
    78                 "@wordpress/format-library": "^1.2.4",
     78                "@wordpress/format-library": "^1.2.6",
    7979                "@wordpress/hooks": "^2.0.3",
    8080                "@wordpress/html-entities": "^2.0.3",
     
    8282                "@wordpress/is-shallow-equal": "^1.1.4",
    8383                "@wordpress/keycodes": "^2.0.5",
    84                 "@wordpress/list-reusable-blocks": "^1.1.14",
     84                "@wordpress/list-reusable-blocks": "^1.1.16",
    8585                "@wordpress/notices": "^1.1.0",
    86                 "@wordpress/nux": "^3.0.2",
     86                "@wordpress/nux": "^3.0.4",
    8787                "@wordpress/plugins": "^2.0.9",
    8888                "@wordpress/redux-routine": "^3.0.3",
  • trunk/src/wp-admin/edit-form-blocks.php

    r44270 r44273  
    179179);
    180180
    181 /*
    182  * Set a locale specific default font.
    183  * Translators: Use this to specify the CSS font family for the default font
    184  */
     181/* Translators: Use this to specify the CSS font family for the default font */
    185182$locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' );
    186183$styles[]           = array(
  • trunk/src/wp-includes/blocks/archives.php

    r44262 r44273  
    33 * Server-side rendering of the `core/archives` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
     
    3333
    3434                $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
    35                 $title       = __( 'Archives', 'default' );
     35                $title       = __( 'Archives' );
    3636
    3737                /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
     
    5151                switch ( $dropdown_args['type'] ) {
    5252                        case 'yearly':
    53                                 $label = __( 'Select Year', 'default' );
     53                                $label = __( 'Select Year' );
    5454                                break;
    5555                        case 'monthly':
    56                                 $label = __( 'Select Month', 'default' );
     56                                $label = __( 'Select Month' );
    5757                                break;
    5858                        case 'daily':
    59                                 $label = __( 'Select Day', 'default' );
     59                                $label = __( 'Select Day' );
    6060                                break;
    6161                        case 'weekly':
    62                                 $label = __( 'Select Week', 'default' );
     62                                $label = __( 'Select Week' );
    6363                                break;
    6464                        default:
    65                                 $label = __( 'Select Post', 'default' );
     65                                $label = __( 'Select Post' );
    6666                                break;
    6767                }
     
    102102                                '<div class="%1$s">%2$s</div>',
    103103                                $classnames,
    104                                 __( 'No archives to show.', 'default' )
     104                                __( 'No archives to show.' )
    105105                        );
    106106                } else {
  • trunk/src/wp-includes/blocks/block.php

    r43752 r44273  
    33 * Server-side rendering of the `core/block` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
  • trunk/src/wp-includes/blocks/categories.php

    r44262 r44273  
    33 * Server-side rendering of the `core/categories` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
     
    2828                $id                       = 'wp-block-categories-' . $block_id;
    2929                $args['id']               = $id;
    30                 $args['show_option_none'] = __( 'Select Category', 'default' );
     30                $args['show_option_none'] = __( 'Select Category' );
    3131                $wrapper_markup           = '<div class="%1$s">%2$s</div>';
    3232                $items_markup             = wp_dropdown_categories( $args );
  • trunk/src/wp-includes/blocks/latest-comments.php

    r44262 r44273  
    33 * Server-side rendering of the `core/latest-comments` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    8 if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) {
     8if ( ! function_exists( 'wp_latest_comments_draft_or_post_title' ) ) {
    99        /**
    1010         * Get the post title.
     
    2727         * @return string The post title if set; "(no title)" if no title is set.
    2828         */
    29         function gutenberg_draft_or_post_title( $post = 0 ) {
     29        function wp_latest_comments_draft_or_post_title( $post = 0 ) {
    3030                $title = get_the_title( $post );
    3131                if ( empty( $title ) ) {
    32                         $title = __( '(no title)', 'default' );
     32                        $title = __( '(no title)' );
    3333                }
    3434                return esc_html( $title );
     
    4343 * @return string Returns the post content with latest comments added.
    4444 */
    45 function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
     45function render_block_core_latest_comments( $attributes = array() ) {
    4646        // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
    4747        $comments = get_comments(
     
    9595                        // `_draft_or_post_title` calls `esc_html()` so we don't need to wrap that call in
    9696                        // `esc_html`.
    97                         $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . gutenberg_draft_or_post_title( $comment->comment_post_ID ) . '</a>';
     97                        $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . wp_latest_comments_draft_or_post_title( $comment->comment_post_ID ) . '</a>';
    9898
    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', 'default' ),
     101                                __( '%1$s on %2$s' ),
    102102                                $author_markup,
    103103                                $post_title
     
    144144                '<div class="%1$s">%2$s</div>',
    145145                $classnames,
    146                 __( 'No comments to show.', 'default' )
     146                __( 'No comments to show.' )
    147147        );
    148148
     
    180180                        ),
    181181                ),
    182                 'render_callback' => 'gutenberg_render_block_core_latest_comments',
     182                'render_callback' => 'render_block_core_latest_comments',
    183183        )
    184184);
  • trunk/src/wp-includes/blocks/latest-posts.php

    r44262 r44273  
    33 * Server-side rendering of the `core/latest-posts` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
     
    2222
    2323        if ( isset( $attributes['categories'] ) ) {
    24                 $args['categories'] = $attributes['categories'];
     24                $args['category'] = $attributes['categories'];
    2525        }
    2626
     
    3434                $title = get_the_title( $post_id );
    3535                if ( ! $title ) {
    36                         $title = __( '(Untitled)', 'default' );
     36                        $title = __( '(Untitled)' );
    3737                }
    3838                $list_items_markup .= sprintf(
  • trunk/src/wp-includes/blocks/shortcode.php

    r43752 r44273  
    33 * Server-side rendering of the `core/shortcode` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
  • trunk/src/wp-includes/script-loader.php

    r44271 r44273  
    211211                'a11y'                               => '2.0.2',
    212212                'annotations'                        => '1.0.3',
    213                 'api-fetch'                          => '2.2.5',
    214213                'autop'                              => '2.0.2',
    215214                'blob'                               => '2.1.0',
    216                 'block-library'                      => '2.2.6',
     215                'block-library'                      => '2.2.8',
    217216                'block-serialization-default-parser' => '2.0.0',
    218217                'blocks'                             => '6.0.2',
    219                 'components'                         => '7.0.1',
     218                'components'                         => '7.0.3',
    220219                'compose'                            => '3.0.0',
    221220                'core-data'                          => '2.0.14',
     
    225224                'dom'                                => '2.0.7',
    226225                'dom-ready'                          => '2.0.2',
    227                 'edit-post'                          => '3.1.1',
    228                 'editor'                             => '9.0.1',
     226                'edit-post'                          => '3.1.3',
     227                'editor'                             => '9.0.3',
    229228                'element'                            => '2.1.8',
    230229                'escape-html'                        => '1.0.1',
    231                 'format-library'                     => '1.2.4',
     230                'format-library'                     => '1.2.6',
    232231                'hooks'                              => '2.0.3',
    233232                'html-entities'                      => '2.0.3',
     
    235234                'is-shallow-equal'                   => '1.1.4',
    236235                'keycodes'                           => '2.0.5',
    237                 'list-reusable-blocks'               => '1.1.14',
     236                'list-reusable-blocks'               => '1.1.16',
    238237                'notices'                            => '1.1.0',
    239                 'nux'                                => '3.0.2',
     238                'nux'                                => '3.0.4',
    240239                'plugins'                            => '2.0.9',
    241240                'redux-routine'                      => '3.0.3',
     
    278277                        'editor',
    279278                        'lodash',
    280                         'moment',
    281279                        'wp-api-fetch',
    282280                        'wp-autop',
Note: See TracChangeset for help on using the changeset viewer.