Make WordPress Core

Changeset 62610


Ignore:
Timestamp:
07/01/2026 04:37:25 PM (6 weeks ago)
Author:
jorbin
Message:

Editor: Bump Gutenberg SHA for WordPress 7.0.1

Reviewed-by cbravobernal.

Fixes #65566.

Location:
branches/7.0
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0/Gruntfile.js

    r62600 r62610  
    10241024                                        'js/_enqueues/**/*.js',
    10251025                                        // Third party scripts.
    1026                                         '!js/_enqueues/vendor/**/*.js'
     1026                                        '!js/_enqueues/vendor/**/*.js',
     1027                                        'js/_enqueues/vendor/thickbox/thickbox.js',
    10271028                                ],
    10281029                                // Remove once other JSHint errors are resolved.
  • branches/7.0/package.json

    r62600 r62610  
    88        },
    99        "gutenberg": {
    10                 "sha": "a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd",
     10                "sha": "a685aba7d3b3e898e87e97d6e8bf6b4cc53e4ceb",
    1111                "ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
    1212        },
  • branches/7.0/src/js/_enqueues/vendor/thickbox/thickbox.js

    r58167 r62610  
     1'use strict';
    12/*
    23 * Thickbox 3.1 - One Box To Rule Them All.
     
    45 * Copyright (c) 2007 cody lindley
    56 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
    6 */
     7 */
     8
     9/* global thickboxL10n, unescape */
     10/* jshint -W018 */
     11/* jshint -W038 */
     12/* jshint -W040 */
     13/* jshint -W069 */
     14/* jshint -W097 */
     15/* jshint -W098 */
     16/* jshint -W109 */
     17/* jshint -W116 */
    718
    819if ( typeof tb_pathToImage != 'string' ) {
    920        var tb_pathToImage = thickboxL10n.loadingAnimation;
    1021}
     22
     23var imgLoader, TB_PrevCaption, TB_PrevURL, TB_PrevHTML, TB_NextCaption, TB_NextURL,
     24        TB_NextHTML, TB_imageCount, TB_FoundURL, TB_TempArray, TB_Counter, TB_WIDTH, TB_HEIGHT;
    1125
    1226/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
     
    88102                        urlType == '.avif'
    89103                ){//code to show images
     104                        var imgPreloader = new Image();
    90105
    91106                        TB_PrevCaption = "";
     
    118133                        }
    119134
    120                         imgPreloader = new Image();
    121135                        imgPreloader.onload = function(){
    122136                        imgPreloader.onload = null;
     
    151165                        jQuery("#TB_closeWindowButton").on( 'click', tb_remove );
    152166
     167                        // Declared in the function scope (not the blocks below) so the keydown handler can reach them under strict mode.
     168                        var goPrev = function(){
     169                                if(jQuery(document).off("click",goPrev)){jQuery(document).off("click",goPrev);}
     170                                jQuery("#TB_window").remove();
     171                                jQuery("body").append("<div id='TB_window'></div>");
     172                                tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
     173                                return false;
     174                        };
     175                        var goNext = function(){
     176                                jQuery("#TB_window").remove();
     177                                jQuery("body").append("<div id='TB_window'></div>");
     178                                tb_show(TB_NextCaption, TB_NextURL, imageGroup);
     179                                return false;
     180                        };
     181
    153182                        if (!(TB_PrevHTML === "")) {
    154                                 function goPrev(){
    155                                         if(jQuery(document).off("click",goPrev)){jQuery(document).off("click",goPrev);}
    156                                         jQuery("#TB_window").remove();
    157                                         jQuery("body").append("<div id='TB_window'></div>");
    158                                         tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
    159                                         return false;
    160                                 }
    161183                                jQuery("#TB_prev").on( 'click', goPrev );
    162184                        }
    163185
    164186                        if (!(TB_NextHTML === "")) {
    165                                 function goNext(){
    166                                         jQuery("#TB_window").remove();
    167                                         jQuery("body").append("<div id='TB_window'></div>");
    168                                         tb_show(TB_NextCaption, TB_NextURL, imageGroup);
    169                                         return false;
    170                                 }
    171187                                jQuery("#TB_next").on( 'click', goNext );
    172188
     
    202218                        var queryString = url.replace(/^[^\?]+\??/,'');
    203219                        var params = tb_parseQuery( queryString );
     220                        var ajaxContentW, ajaxContentH;
    204221
    205222                        TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no parameters were added to URL
     
    209226
    210227                        if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window
    211                                         urlNoQuery = url.split('TB_');
     228                                        var urlNoQuery = url.split('TB_');
    212229                                        jQuery("#TB_iframeContent").remove();
    213230                                        if(params['modal'] != "true"){//iframe no modal
     
    334351        var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
    335352        var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
    336         arrayPageSize = [w,h];
    337         return arrayPageSize;
     353        return [w,h];
    338354}
    339355
  • branches/7.0/src/wp-includes/assets/script-loader-packages.php

    r62382 r62610  
    101101                        'wp-warning'
    102102                ),
    103                 'version' => '93c3566b7f24c15b7e17'
     103                'version' => 'f3d941bcb2e86c269881'
    104104        ),
    105105        'block-library.js' => array(
     
    143143                        )
    144144                ),
    145                 'version' => '2dffdfe77b9c5cba960e'
     145                'version' => '998f328cb929aeb1d5a8'
    146146        ),
    147147        'block-serialization-default-parser.js' => array(
     
    229229                        'wp-undo-manager'
    230230                ),
    231                 'version' => 'edb5a8c0b5bf71686403'
     231                'version' => 'fbe37f6b46750554f947'
    232232        ),
    233233        'core-commands.js' => array(
     
    520520                        )
    521521                ),
    522                 'version' => '37faadbdf6c40cb0c71c'
     522                'version' => '425fffc30511d9d52e5f'
    523523        ),
    524524        'element.js' => array(
  • branches/7.0/src/wp-includes/blocks/blocks-json.php

    r62143 r62610  
    44844484                        'isTopLevelItem' => array(
    44854485                                'type' => 'boolean'
    4486                         )
     4486                        ),
     4487                        'isParentSubmenu' => array(
     4488                                'type' => 'boolean',
     4489                                'default' => true
     4490                        )
     4491                ),
     4492                'providesContext' => array(
     4493                        'core/isInsideSubmenu' => 'isParentSubmenu'
    44874494                ),
    44884495                'usesContext' => array(
     
    45734580                                'type' => 'integer',
    45744581                                'default' => 0
    4575                         ),
    4576                         'isNested' => array(
    4577                                 'type' => 'boolean',
    4578                                 'default' => false
    45794582                        )
    45804583                ),
     
    45934596                        'style',
    45944597                        'openSubmenusOnClick',
    4595                         'submenuVisibility'
     4598                        'submenuVisibility',
     4599                        'core/isInsideSubmenu'
    45964600                ),
    45974601                'supports' => array(
  • branches/7.0/src/wp-includes/blocks/image.php

    r62335 r62610  
    251251                                        'customAriaLabel'        => $custom_aria_label ?? null,
    252252                                        'navigationButtonType'   => $block_instance->context['navigationButtonType'] ?? 'icon',
    253                                         'triggerButtonAriaLabel' => null,
     253                                        'triggerButtonAriaLabel' => __( 'Enlarge' ),
    254254                                ),
    255255                        ),
  • branches/7.0/src/wp-includes/blocks/navigation-link.php

    r62143 r62610  
    263263        if ( isset( $block->context['showSubmenuIcon'] ) && $block->context['showSubmenuIcon'] && $has_submenu ) {
    264264                // The submenu icon can be hidden by a CSS rule on the Navigation Block.
    265                 $html .= '<span class="wp-block-navigation__submenu-icon">' . block_core_navigation_render_submenu_icon() . '</span>';
     265                $html .= '<span class="wp-block-navigation__submenu-icon">';
     266                if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
     267                        $html .= gutenberg_block_core_shared_navigation_render_submenu_icon();
     268                } else {
     269                        $html .= block_core_shared_navigation_render_submenu_icon();
     270                }
     271                $html .= '</span>';
    266272        }
    267273
  • branches/7.0/src/wp-includes/blocks/navigation-submenu.php

    r62143 r62610  
    55 * @package WordPress
    66 */
     7
     8/**
     9 * Renders the submenu icon SVG for the Navigation Submenu block.
     10 *
     11 * @since 5.9.0
     12 * @deprecated 7.0.0 Use block_core_shared_navigation_render_submenu_icon() instead.
     13 *
     14 * @return string SVG markup for the submenu icon.
     15 */
     16function block_core_navigation_submenu_render_submenu_icon() {
     17        _deprecated_function( __FUNCTION__, '7.0.0', 'block_core_shared_navigation_render_submenu_icon()' );
     18        return block_core_shared_navigation_render_submenu_icon();
     19}
    720
    821/**
     
    241254                        // The submenu icon is rendered in a button here
    242255                        // so that there's a clickable element to open the submenu.
    243                         $html .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_render_submenu_icon() . '</button>';
     256                        $html .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
     257                        if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
     258                                $html .= gutenberg_block_core_shared_navigation_render_submenu_icon();
     259                        } else {
     260                                $html .= block_core_shared_navigation_render_submenu_icon();
     261                        }
     262                        $html .= '</button>';
    244263                }
    245264        } else {
     
    263282
    264283                if ( $has_submenu ) {
    265                         $html .= '<span class="wp-block-navigation__submenu-icon">' . block_core_navigation_render_submenu_icon() . '</span>';
     284                        $html .= '<span class="wp-block-navigation__submenu-icon">';
     285                        if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
     286                                $html .= gutenberg_block_core_shared_navigation_render_submenu_icon();
     287                        } else {
     288                                $html .= block_core_shared_navigation_render_submenu_icon();
     289                        }
     290                        $html .= '</span>';
    266291                }
    267292        }
  • branches/7.0/src/wp-includes/blocks/navigation-submenu/block.json

    r62123 r62610  
    4141                "isTopLevelItem": {
    4242                        "type": "boolean"
     43                },
     44                "isParentSubmenu": {
     45                        "type": "boolean",
     46                        "default": true
    4347                }
     48        },
     49        "providesContext": {
     50                "core/isInsideSubmenu": "isParentSubmenu"
    4451        },
    4552        "usesContext": [
  • branches/7.0/src/wp-includes/blocks/navigation.php

    r62360 r62610  
    13561356
    13571357/**
    1358  * Returns the top-level submenu SVG chevron icon.
    1359  *
    1360  * @since 5.9.0
    1361  *
    1362  * @return string
    1363  */
    1364 function block_core_navigation_render_submenu_icon() {
    1365         return '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg>';
    1366 }
    1367 
    1368 /**
    13691358 * Filter out empty "null" blocks from the block list.
    13701359 * 'parse_blocks' includes a null block with '\n\n' as the content when
  • branches/7.0/src/wp-includes/blocks/page-list.php

    r62143 r62610  
    298298
    299299        $parent_page_id = $attributes['parentPageID'];
    300         $is_nested      = $attributes['isNested'];
     300        $is_nested      = ! empty( $block->context['core/isInsideSubmenu'] );
    301301
    302302        $all_pages = get_pages(
  • branches/7.0/src/wp-includes/blocks/page-list/block.json

    r62123 r62610  
    1313                        "type": "integer",
    1414                        "default": 0
    15                 },
    16                 "isNested": {
    17                         "type": "boolean",
    18                         "default": false
    1915                }
    2016        },
     
    3329                "style",
    3430                "openSubmenusOnClick",
    35                 "submenuVisibility"
     31                "submenuVisibility",
     32                "core/isInsideSubmenu"
    3633        ],
    3734        "supports": {
  • branches/7.0/src/wp-includes/build/pages/font-library/page-wp-admin.php

    r62382 r62610  
    244244                /* Critical styles to prevent layout shifts - inlined for immediate application */
    245245
    246                 /* Background colors */
    247246                #wpwrap {
    248                         background: var(--wpds-color-fg-content-neutral, #1e1e1e);
    249247                        overflow-y: auto;
    250248                }
  • branches/7.0/src/wp-includes/build/pages/options-connectors/page-wp-admin.php

    r62382 r62610  
    244244                /* Critical styles to prevent layout shifts - inlined for immediate application */
    245245
    246                 /* Background colors */
    247246                #wpwrap {
    248                         background: var(--wpds-color-fg-content-neutral, #1e1e1e);
    249247                        overflow-y: auto;
    250248                }
Note: See TracChangeset for help on using the changeset viewer.