Skip to content

Commit 991e191

Browse files
committed
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develop into trac-64108-errors-emitted-during-output-buffer-callback
2 parents 27d9e83 + 3b7373b commit 991e191

File tree

45 files changed

+620
-268
lines changed

Some content is hidden

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

45 files changed

+620
-268
lines changed

.github/workflows/reusable-cleanup-pull-requests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,36 @@ jobs:
5454
5555
for (const ticket of fixedList) {
5656
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ticket}`;
57-
const corePrefix = `Core-${ticket}`;
57+
const corePrefix = `core-${ticket}`;
5858
5959
const query = `
6060
query($searchQuery: String!) {
6161
search(query: $searchQuery, type: ISSUE_ADVANCED, first: 20) {
6262
nodes {
6363
... on PullRequest {
6464
number
65-
state
65+
bodyText
6666
}
6767
}
6868
}
6969
}
7070
`;
7171
72-
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open in:body ( "${tracTicketUrl}" OR "${corePrefix}" )`;
72+
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open ( "${tracTicketUrl}" OR "${corePrefix}" )`;
7373
7474
const result = await github.graphql(query, {
7575
searchQuery,
7676
});
7777
78-
prNumbers.push(...result.search.nodes.map(pr => pr.number));
78+
// Since search queries will match anywhere for any activity on a pull request, the body specifically needs to be manually checked.
79+
const matchingPRs = result.search.nodes
80+
.filter(pr => {
81+
const bodyLower = pr.bodyText.toLowerCase();
82+
83+
return bodyLower.includes(tracTicketUrl.toLowerCase()) || bodyLower.includes(corePrefix.toLowerCase());
84+
}).map(pr => pr.number);
85+
86+
prNumbers.push(...matchingPRs);
7987
}
8088
8189
return prNumbers;

src/js/_enqueues/vendor/plupload/handlers.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,12 @@ function switchUploader( s ) {
276276

277277
if ( typeof( uploader ) == 'object' )
278278
uploader.refresh();
279+
280+
jQuery( '#plupload-browse-button' ).trigger( 'focus' );
279281
} else {
280282
setUserSetting( 'uploader', '1' ); // 1 == html uploader.
281283
jQuery( '.media-upload-form' ).addClass( 'html-uploader' );
284+
jQuery( '#async-upload' ).trigger( 'focus' );
282285
}
283286
}
284287

@@ -420,11 +423,11 @@ jQuery( document ).ready( function( $ ) {
420423
target.parents( '.media-item' ).fadeOut( 200, function() {
421424
$( this ).remove();
422425
} );
423-
} else if ( target.is( '.upload-flash-bypass a' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.
426+
} else if ( target.is( '.upload-flash-bypass button' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.
424427
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', 'none' );
425428
switchUploader( 0 );
426429
e.preventDefault();
427-
} else if ( target.is( '.upload-html-bypass a' ) ) { // Switch uploader to multi-file.
430+
} else if ( target.is( '.upload-html-bypass button' ) ) { // Switch uploader to multi-file.
428431
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', '' );
429432
switchUploader( 1 );
430433
e.preventDefault();

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public function prepare_items() {
151151
'order' => $order,
152152
'post_type' => $post_type,
153153
'update_comment_post_cache' => true,
154-
'type__not_in' => array( 'note' ),
155154
);
156155

157156
/**

src/wp-admin/includes/comment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ function get_comment_to_edit( $id ) {
138138
* Gets the number of pending comments on a post or posts.
139139
*
140140
* @since 2.3.0
141+
* @since 6.9.0 Exclude the 'note' comment type from the count.
141142
*
142143
* @global wpdb $wpdb WordPress database abstraction object.
143144
*

src/wp-admin/includes/media.php

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,27 +3028,15 @@ function wp_media_insert_url_form( $default_view = 'image' ) {
30283028
* Displays the multi-file uploader message.
30293029
*
30303030
* @since 2.6.0
3031-
*
3032-
* @global int $post_ID
30333031
*/
30343032
function media_upload_flash_bypass() {
3035-
$browser_uploader = admin_url( 'media-new.php?browser-uploader' );
3036-
3037-
$post = get_post();
3038-
if ( $post ) {
3039-
$browser_uploader .= '&post_id=' . (int) $post->ID;
3040-
} elseif ( ! empty( $GLOBALS['post_ID'] ) ) {
3041-
$browser_uploader .= '&post_id=' . (int) $GLOBALS['post_ID'];
3042-
}
3043-
30443033
?>
30453034
<p class="upload-flash-bypass">
30463035
<?php
30473036
printf(
3048-
/* translators: 1: URL to browser uploader, 2: Additional link attributes. */
3049-
__( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ),
3050-
$browser_uploader,
3051-
'target="_blank"'
3037+
/* translators: %s: HTML attributes for button. */
3038+
__( 'You are using the multi-file uploader. Problems? Try the <button %s>browser uploader</button> instead.' ),
3039+
'type="button" class="button-link"'
30523040
);
30533041
?>
30543042
</p>
@@ -3063,7 +3051,13 @@ function media_upload_flash_bypass() {
30633051
function media_upload_html_bypass() {
30643052
?>
30653053
<p class="upload-html-bypass hide-if-no-js">
3066-
<?php _e( 'You are using the browser&#8217;s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.' ); ?>
3054+
<?php
3055+
printf(
3056+
/* translators: %s: HTML attributes for button. */
3057+
__( 'You are using the browser&#8217;s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <button %s>Switch to the multi-file uploader</button>.' ),
3058+
'type="button" class="button-link"'
3059+
);
3060+
?>
30673061
</p>
30683062
<?php
30693063
}
@@ -3534,7 +3528,7 @@ function wp_add_id3_tag_data( &$metadata, $data ) {
35343528
if ( ! empty( $data[ $version ]['comments'] ) ) {
35353529
foreach ( $data[ $version ]['comments'] as $key => $list ) {
35363530
if ( 'length' !== $key && ! empty( $list ) ) {
3537-
$metadata[ $key ] = wp_kses_post( reset( $list ) );
3531+
$metadata[ $key ] = is_array( $list ) ? wp_kses_post_deep( reset( $list ) ) : wp_kses_post( $list );
35383532
// Fix bug in byte stream analysis.
35393533
if ( 'terms_of_use' === $key && str_starts_with( $metadata[ $key ], 'yright notice.' ) ) {
35403534
$metadata[ $key ] = 'Cop' . $metadata[ $key ];

src/wp-content/themes/twentyeleven/functions.php

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,27 @@ function twentyeleven_content_nav( $html_id ) {
642642
global $wp_query;
643643

644644
if ( $wp_query->max_num_pages > 1 ) :
645+
$order = get_query_var( 'order', 'DESC' );
646+
$is_desc = ( 'DESC' === $order );
647+
648+
$new_posts_text = __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyeleven' );
649+
$old_posts_text = __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven' );
650+
651+
$prev_link = $is_desc ? get_next_posts_link( $old_posts_text ) : get_previous_posts_link( $old_posts_text );
652+
$next_link = $is_desc ? get_previous_posts_link( $new_posts_text ) : get_next_posts_link( $new_posts_text );
645653
?>
646654
<nav id="<?php echo esc_attr( $html_id ); ?>">
647655
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
648-
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven' ) ); ?></div>
649-
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></div>
650-
</nav><!-- #nav-above -->
656+
<?php if ( $prev_link ) : ?>
657+
<div class="nav-previous"><?php echo $prev_link; ?></div>
658+
<?php endif; ?>
659+
660+
<?php if ( $next_link ) : ?>
661+
<div class="nav-next"><?php echo $next_link; ?></div>
662+
<?php endif; ?>
663+
</nav><!-- #<?php echo esc_attr( $html_id ); ?> -->
651664
<?php
652-
endif;
665+
endif;
653666
}
654667
endif; // twentyeleven_content_nav()
655668

src/wp-content/themes/twentyfifteen/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function twentyfifteen_scripts() {
434434
wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), $font_version );
435435

436436
// Add Genericons, used in the main stylesheet.
437-
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201026' );
437+
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20251202' );
438438

439439
// Load our main stylesheet.
440440
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20250415' );

src/wp-content/themes/twentyfifteen/genericons/genericons.css

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

src/wp-content/themes/twentyfourteen/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function twentyfourteen_scripts() {
342342
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), $font_version );
343343

344344
// Add Genericons font, used in the main stylesheet.
345-
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
345+
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20251202' );
346346

347347
// Load our main stylesheet.
348348
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20250715' );

src/wp-content/themes/twentyfourteen/genericons/genericons.css

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

0 commit comments

Comments
 (0)