Skip to content

Commit 38a0f43

Browse files
committed
Merge branch 'trunk' into 64177-palette-enhancement
2 parents e5b6e12 + 56ac994 commit 38a0f43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2811
-3370
lines changed

Gruntfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ module.exports = function(grunt) {
11591159
}
11601160

11611161
// Fetch a list of the files that Twemoji supplies.
1162-
query = 'query={repository(owner: "jdecked", name: "twemoji") {object(expression: "v17.0.1:assets/svg") {... on Tree {entries {name}}}}}';
1162+
query = 'query={repository(owner: "jdecked", name: "twemoji") {object(expression: "gh-pages:v/17.0.2/svg") {... on Tree {entries {name}}}}}';
11631163
files = spawn( 'gh', [ 'api', 'graphql', '-f', query] );
11641164

11651165
if ( 0 !== files.status ) {
@@ -1785,9 +1785,6 @@ module.exports = function(grunt) {
17851785
const ignoredFiles = [
17861786
'build/wp-includes/js/dist/components.js',
17871787
'build/wp-includes/js/dist/data.js',
1788-
// We have a problem where Yjs is being bundled in core-data.
1789-
// Ignoring this file until we find a solution.
1790-
'build/wp-includes/js/dist/core-data.js',
17911788
];
17921789
const files = buildFiles.reduce( ( acc, path ) => {
17931790
// Skip excluded paths and any path that isn't a file.

package-lock.json

Lines changed: 222 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
3030
"@wordpress/babel-preset-default": "8.33.1",
3131
"@wordpress/dependency-extraction-webpack-plugin": "6.33.1",
32-
"@wordpress/e2e-test-utils-playwright": "1.33.1",
32+
"@wordpress/e2e-test-utils-playwright": "1.33.2",
3333
"@wordpress/prettier-config": "4.33.1",
34-
"@wordpress/scripts": "30.26.1",
34+
"@wordpress/scripts": "30.26.2",
3535
"autoprefixer": "10.4.20",
3636
"chalk": "5.4.1",
3737
"check-node-version": "4.2.1",
@@ -76,76 +76,76 @@
7676
},
7777
"dependencies": {
7878
"@wordpress/a11y": "4.33.1",
79-
"@wordpress/admin-ui": "1.1.1",
79+
"@wordpress/admin-ui": "1.1.2",
8080
"@wordpress/annotations": "3.33.1",
8181
"@wordpress/api-fetch": "7.33.1",
8282
"@wordpress/autop": "4.33.1",
8383
"@wordpress/base-styles": "6.9.1",
8484
"@wordpress/blob": "4.33.1",
85-
"@wordpress/block-directory": "5.33.5",
86-
"@wordpress/block-editor": "15.6.3",
87-
"@wordpress/block-library": "9.33.4",
85+
"@wordpress/block-directory": "5.33.6",
86+
"@wordpress/block-editor": "15.6.4",
87+
"@wordpress/block-library": "9.33.5",
8888
"@wordpress/block-serialization-default-parser": "5.33.1",
8989
"@wordpress/blocks": "15.6.1",
90-
"@wordpress/commands": "1.33.1",
91-
"@wordpress/components": "30.6.1",
90+
"@wordpress/commands": "1.33.2",
91+
"@wordpress/components": "30.6.2",
9292
"@wordpress/compose": "7.33.1",
93-
"@wordpress/core-commands": "1.33.3",
94-
"@wordpress/core-data": "7.33.3",
95-
"@wordpress/customize-widgets": "5.33.4",
93+
"@wordpress/core-commands": "1.33.4",
94+
"@wordpress/core-data": "7.33.4",
95+
"@wordpress/customize-widgets": "5.33.5",
9696
"@wordpress/data": "10.33.1",
9797
"@wordpress/data-controls": "4.33.1",
98-
"@wordpress/dataviews": "10.1.2",
98+
"@wordpress/dataviews": "10.1.3",
9999
"@wordpress/date": "5.33.1",
100100
"@wordpress/deprecated": "4.33.1",
101101
"@wordpress/dom": "4.33.1",
102102
"@wordpress/dom-ready": "4.33.1",
103-
"@wordpress/edit-post": "8.33.5",
104-
"@wordpress/edit-site": "6.33.5",
105-
"@wordpress/edit-widgets": "6.33.4",
106-
"@wordpress/editor": "14.33.5",
103+
"@wordpress/edit-post": "8.33.6",
104+
"@wordpress/edit-site": "6.33.6",
105+
"@wordpress/edit-widgets": "6.33.5",
106+
"@wordpress/editor": "14.33.6",
107107
"@wordpress/element": "6.33.1",
108108
"@wordpress/escape-html": "3.33.1",
109-
"@wordpress/fields": "0.25.5",
110-
"@wordpress/format-library": "5.33.3",
109+
"@wordpress/fields": "0.25.6",
110+
"@wordpress/format-library": "5.33.4",
111111
"@wordpress/hooks": "4.33.1",
112112
"@wordpress/html-entities": "4.33.1",
113113
"@wordpress/i18n": "6.6.1",
114114
"@wordpress/icons": "11.0.1",
115115
"@wordpress/interactivity": "6.33.1",
116116
"@wordpress/interactivity-router": "2.33.1",
117-
"@wordpress/interface": "9.18.1",
117+
"@wordpress/interface": "9.18.2",
118118
"@wordpress/is-shallow-equal": "5.33.1",
119119
"@wordpress/keyboard-shortcuts": "5.33.1",
120120
"@wordpress/keycodes": "4.33.1",
121121
"@wordpress/latex-to-mathml": "1.1.1",
122-
"@wordpress/list-reusable-blocks": "5.33.1",
122+
"@wordpress/list-reusable-blocks": "5.33.2",
123123
"@wordpress/media-utils": "5.33.1",
124124
"@wordpress/notices": "5.33.1",
125-
"@wordpress/nux": "9.33.1",
126-
"@wordpress/patterns": "2.33.3",
127-
"@wordpress/plugins": "7.33.1",
128-
"@wordpress/preferences": "4.33.1",
125+
"@wordpress/nux": "9.33.2",
126+
"@wordpress/patterns": "2.33.4",
127+
"@wordpress/plugins": "7.33.2",
128+
"@wordpress/preferences": "4.33.2",
129129
"@wordpress/preferences-persistence": "2.33.1",
130130
"@wordpress/primitives": "4.33.1",
131131
"@wordpress/priority-queue": "3.33.1",
132132
"@wordpress/private-apis": "1.33.1",
133133
"@wordpress/redux-routine": "5.33.1",
134-
"@wordpress/reusable-blocks": "5.33.3",
134+
"@wordpress/reusable-blocks": "5.33.4",
135135
"@wordpress/rich-text": "7.33.1",
136136
"@wordpress/router": "1.33.1",
137-
"@wordpress/server-side-render": "6.9.1",
137+
"@wordpress/server-side-render": "6.9.2",
138138
"@wordpress/shortcode": "4.33.1",
139139
"@wordpress/style-engine": "2.33.1",
140140
"@wordpress/sync": "1.33.1",
141141
"@wordpress/token-list": "3.33.1",
142142
"@wordpress/undo-manager": "1.33.1",
143-
"@wordpress/upload-media": "0.18.1",
143+
"@wordpress/upload-media": "0.18.2",
144144
"@wordpress/url": "4.33.1",
145145
"@wordpress/viewport": "6.33.1",
146-
"@wordpress/views": "1.0.3",
146+
"@wordpress/views": "1.0.4",
147147
"@wordpress/warning": "3.33.1",
148-
"@wordpress/widgets": "4.33.3",
148+
"@wordpress/widgets": "4.33.4",
149149
"@wordpress/wordcount": "4.33.1",
150150
"backbone": "1.6.0",
151151
"clipboard": "2.0.11",

phpcompat.xml.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,12 @@
114114
<exclude-pattern>/sodium_compat/src/PHP52/SplFixedArray\.php$</exclude-pattern>
115115
</rule>
116116

117+
<!--
118+
Excluded while waiting for PHPCompatibility v10.
119+
See <https://github.com/PHPCompatibility/PHPCompatibility/issues/1481>.
120+
-->
121+
<rule ref="PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundInStatic">
122+
<exclude-pattern>/src/wp-includes/script-loader\.php$</exclude-pattern>
123+
</rule>
124+
117125
</ruleset>

src/js/_enqueues/vendor/twemoji.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ var twemoji = (function (
44
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
55
*/
66

7+
/*
8+
* Note: this file was modified in two places to add support for a doNotParse() callback.
9+
* The modifications are surrounded by `// WP start` and `// WP end` comments.
10+
*/
11+
712
// WARNING: this file is generated automatically via
813
// `node scripts/build.js`
914
// please update its `createTwemoji` function
@@ -305,6 +310,14 @@ var twemoji = (function (
305310
// should not be parsed as script, style, and others
306311
else if (nodeType === 1 && !('ownerSVGElement' in subnode) &&
307312
!shouldntBeParsed.test(subnode.nodeName.toLowerCase())) {
313+
314+
// WP start
315+
// Use doNotParse() callback if set.
316+
if ( twemoji.doNotParse && twemoji.doNotParse( subnode ) ) {
317+
continue;
318+
}
319+
// WP end
320+
308321
grabAllTextNodes(subnode, allText);
309322
}
310323
}
@@ -520,6 +533,14 @@ var twemoji = (function (
520533
if (!how || typeof how === 'function') {
521534
how = {callback: how};
522535
}
536+
537+
// WP start
538+
// Allow passing of the doNotParse() callback in the settings.
539+
// The callback is used in `grabAllTextNodes()` (DOM mode only) as a filter
540+
// that allows bypassing of some of the text nodes. It gets the current subnode as argument.
541+
twemoji.doNotParse = how.doNotParse;
542+
// WP end
543+
523544
// if first argument is string, inject html <img> tags
524545
// otherwise use the DOM tree and parse text nodes only
525546
return (typeof what === 'string' ? parseString : parseNode)(what, {

src/wp-admin/includes/class-theme-installer-skin.php

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,24 @@ public function after() {
121121

122122
$install_actions = array();
123123

124-
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) && ! $theme_info->is_block_theme() ) {
125-
$customize_url = add_query_arg(
126-
array(
127-
'theme' => urlencode( $stylesheet ),
128-
'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ),
129-
),
130-
admin_url( 'customize.php' )
131-
);
124+
if ( current_user_can( 'edit_theme_options' ) && ( $theme_info->is_block_theme() || current_user_can( 'customize' ) ) ) {
125+
if ( $theme_info->is_block_theme() ) {
126+
$customize_url = add_query_arg(
127+
array(
128+
'wp_theme_preview' => urlencode( $stylesheet ),
129+
'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ),
130+
),
131+
admin_url( 'site-editor.php' )
132+
);
133+
} else {
134+
$customize_url = add_query_arg(
135+
array(
136+
'theme' => urlencode( $stylesheet ),
137+
'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ),
138+
),
139+
admin_url( 'customize.php' )
140+
);
141+
}
132142

133143
$install_actions['preview'] = sprintf(
134144
'<a href="%s" class="hide-if-no-customize load-customize">' .

src/wp-admin/includes/class-wp-comments-list-table.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ public function prepare_items() {
9999
$comment_status = 'all';
100100
}
101101

102-
$comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';
102+
$comment_type = '';
103+
104+
if ( ! empty( $_REQUEST['comment_type'] ) && 'note' !== $_REQUEST['comment_type'] ) {
105+
$comment_type = $_REQUEST['comment_type'];
106+
}
103107

104108
$search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
105109

src/wp-admin/includes/dashboard.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
10741074
$comments_query['status'] = 'approve';
10751075
}
10761076

1077+
$comments_count = 0;
10771078
do {
10781079
$possible = get_comments( $comments_query );
10791080

src/wp-admin/includes/schema.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ function populate_options( array $options = array() ) {
560560

561561
// 6.4.0
562562
'wp_attachment_pages_enabled' => 0,
563+
564+
// 6.9.0
565+
'wp_notes_notify' => 1,
563566
);
564567

565568
// 3.3.0

0 commit comments

Comments
 (0)