Skip to content

Commit 917c95e

Browse files
committed
Merge remote-tracking branch 'origin/trunk' into feature/add-on-to-pr9641
2 parents 9081c19 + cb003b0 commit 917c95e

Some content is hidden

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

43 files changed

+2386
-3214
lines changed

Gruntfile.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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-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/schema.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ 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,
566+
563567
);
564568

565569
// 3.3.0

src/wp-admin/options-discussion.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@
160160
<label for="moderation_notify">
161161
<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked( '1', get_option( 'moderation_notify' ) ); ?> />
162162
<?php _e( 'A comment is held for moderation' ); ?> </label>
163+
<br />
164+
<label for="wp_notes_notify">
165+
<input name="wp_notes_notify" type="checkbox" id="wp_notes_notify" value="1" <?php checked( '1', get_option( 'wp_notes_notify' ) ); ?> />
166+
<?php _e( 'Anyone posts a note' ); ?> </label>
167+
163168
</fieldset></td>
164169
</tr>
165170
<?php $before_comment_appears_title = __( 'Before a comment appears' ); ?>

src/wp-admin/options.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
'comment_order',
126126
'comment_registration',
127127
'show_comments_cookies_opt_in',
128+
'wp_notes_notify',
128129
),
129130
'media' => array(
130131
'thumbnail_size_w',

src/wp-admin/site-editor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ static function ( $classes ) {
244244
);
245245
}
246246
}
247-
} elseif ( isset( $_GET['p'] ) && '/' !== $_GET['p'] ) {
248-
// Only prefetch for the root. If we preload it for all pages and it's not
249-
// used it won't be possible to invalidate.
247+
} else {
250248
$preload_paths[] = '/wp/v2/templates/lookup?slug=front-page';
251249
$preload_paths[] = '/wp/v2/templates/lookup?slug=home';
252250
}

0 commit comments

Comments
 (0)