Skip to content

Commit 41379ef

Browse files
authored
Merge branch 'trunk' into fix-63068
2 parents 2f6aaa3 + 421ac36 commit 41379ef

35 files changed

Lines changed: 528 additions & 259 deletions

.github/workflows/install-testing.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,13 @@ jobs:
8888
- db-version: '5.0'
8989
- db-version: '5.1'
9090
- db-version: '5.5'
91-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
92-
- php: '7.2'
93-
db-version: '8.4'
94-
- php: '7.3'
95-
db-version: '8.4'
9691
# Only test the latest innovation release.
9792
- db-version: '9.0'
9893
- db-version: '9.1'
9994
- db-version: '9.2'
10095
- db-version: '9.3'
10196
- db-version: '9.4'
97+
- db-version: '9.5'
10298
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
10399
- php: '7.2'
104100
db-version: '9.6'
@@ -118,7 +114,7 @@ jobs:
118114
-e MYSQL_ROOT_PASSWORD="root"
119115
-e MYSQL_DATABASE="test_db"
120116
--entrypoint sh ${{ matrix.db-type }}:${{ matrix.db-version }}
121-
-c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["7.2", "7.3"]'), matrix.php ) && ' --default-authentication-plugin=mysql_native_password' || '' }}"
117+
-c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3"]'), matrix.php ) && ( matrix.db-version == '8.4' && ' --mysql-native-password=ON --authentication-policy=mysql_native_password' || ' --default-authentication-plugin=mysql_native_password' ) || '' }}"
122118
123119
steps:
124120
- name: Set up PHP ${{ matrix.php }}

Gruntfile.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,13 +1589,9 @@ module.exports = function(grunt) {
15891589

15901590
grunt.registerTask( 'gutenberg:download', 'Downloads the built Gutenberg artifact.', function() {
15911591
const done = this.async();
1592-
const args = [ 'tools/gutenberg/download.js' ];
1593-
if ( grunt.option( 'force' ) ) {
1594-
args.push( '--force' );
1595-
}
15961592
grunt.util.spawn( {
15971593
cmd: 'node',
1598-
args,
1594+
args: [ 'tools/gutenberg/download.js' ],
15991595
opts: { stdio: 'inherit' }
16001596
}, function( error ) {
16011597
done( ! error );

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://develop.svn.wordpress.org/trunk"
88
},
99
"gutenberg": {
10-
"sha": "9b8144036fa5faf75de43d4502ff9809fcf689ad",
10+
"sha": "8c78d87453509661a9f28f978ba2c242d515563b",
1111
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
1212
},
1313
"engines": {
@@ -112,7 +112,7 @@
112112
"wicg-inert": "3.1.3"
113113
},
114114
"scripts": {
115-
"postinstall": "npm run gutenberg:download",
115+
"postinstall": "npm run gutenberg:verify",
116116
"build": "grunt build",
117117
"build:dev": "grunt build --dev",
118118
"build:gutenberg": "grunt build:gutenberg",
@@ -140,6 +140,7 @@
140140
"test:visual": "wp-scripts test-playwright --config tests/visual-regression/playwright.config.js",
141141
"typecheck:php": "node ./tools/local-env/scripts/docker.js run --rm php composer phpstan",
142142
"gutenberg:copy": "node tools/gutenberg/copy.js",
143+
"gutenberg:verify": "node tools/gutenberg/utils.js",
143144
"gutenberg:download": "node tools/gutenberg/download.js",
144145
"vendor:copy": "node tools/vendors/copy-vendors.js",
145146
"sync-gutenberg-packages": "grunt sync-gutenberg-packages",

src/wp-admin/admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,22 @@
395395
*/
396396
if ( 'page' === $typenow ) {
397397
if ( 'post-new.php' === $pagenow ) {
398+
/** This action is documented in wp-admin/admin.php */
398399
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
399400
} elseif ( 'post.php' === $pagenow ) {
401+
/** This action is documented in wp-admin/admin.php */
400402
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
401403
}
402404
} elseif ( 'edit-tags.php' === $pagenow ) {
403405
if ( 'category' === $taxnow ) {
406+
/** This action is documented in wp-admin/admin.php */
404407
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
405408
} elseif ( 'link_category' === $taxnow ) {
409+
/** This action is documented in wp-admin/admin.php */
406410
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
407411
}
408412
} elseif ( 'term.php' === $pagenow ) {
413+
/** This action is documented in wp-admin/admin.php */
409414
do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
410415
}
411416
}

src/wp-admin/css/install.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ fieldset {
7979
width: 84px;
8080
height: 84px;
8181
overflow: hidden;
82-
background-image: url(../images/w-logo-blue.png?ver=20131202);
83-
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
82+
background-image: url(../images/w-logo-gray.png?ver=20260303);
83+
background-image: none, url(../images/wordpress-logo-gray.svg?ver=20260303);
8484
background-size: 84px;
8585
background-position: center top;
8686
background-repeat: no-repeat;

src/wp-admin/css/login.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ p {
283283
}
284284

285285
.login h1 a {
286-
background-image: url(../images/w-logo-blue.png?ver=20131202);
287-
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
286+
background-image: url(../images/w-logo-gray.png?ver=20260303);
287+
background-image: none, url(../images/wordpress-logo-gray.svg?ver=20260303);
288288
background-size: 84px;
289289
background-position: center top;
290290
background-repeat: no-repeat;
4.39 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/wp-admin/includes/bookmark.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @since 2.0.0
1313
*
14-
* @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
14+
* @return int The link ID on success. The value 0 on failure.
1515
*/
1616
function add_link() {
1717
return edit_link();
@@ -23,7 +23,7 @@ function add_link() {
2323
* @since 2.0.0
2424
*
2525
* @param int $link_id Optional. ID of the link to edit. Default 0.
26-
* @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
26+
* @return int The link ID on success. The value 0 on failure.
2727
*/
2828
function edit_link( $link_id = 0 ) {
2929
if ( ! current_user_can( 'manage_links' ) ) {
@@ -169,7 +169,7 @@ function get_link_to_edit( $link ) {
169169
* If empty, uses default link category.
170170
* }
171171
* @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
172-
* @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
172+
* @return int|WP_Error The link ID on success. The value 0 or WP_Error on failure.
173173
*/
174174
function wp_insert_link( $linkdata, $wp_error = false ) {
175175
global $wpdb;
@@ -295,7 +295,7 @@ function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
295295
* @since 2.0.0
296296
*
297297
* @param array $linkdata Link data to update. See wp_insert_link() for accepted arguments.
298-
* @return int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success.
298+
* @return int The updated link ID on success. The value 0 on failure.
299299
*/
300300
function wp_update_link( $linkdata ) {
301301
$link_id = (int) $linkdata['link_id'];

src/wp-admin/includes/schema.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam
10331033
}
10341034

10351035
// Check for network collision.
1036-
$network_exists = false;
10371036
if ( is_multisite() ) {
10381037
if ( get_network( $network_id ) ) {
10391038
$errors->add( 'siteid_exists', __( 'The network already exists.' ) );

0 commit comments

Comments
 (0)