Skip to content

Commit b7238e6

Browse files
authored
Merge branch 'trunk' into fix/66244-admin-post-title-html
2 parents 5e153df + c6d9c9b commit b7238e6

264 files changed

Lines changed: 8750 additions & 2225 deletions

File tree

Some content is hidden

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

‎Gruntfile.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@ module.exports = function(grunt) {
811811
// Strip the 'library/' prefix from filePath values so they
812812
// resolve correctly relative to wp-includes/images/icon-library/.
813813
.replace(
814-
/'filePath' => 'library\//g,
815-
'\'filePath\' => \''
814+
/'filePath'(\s+)=> 'library\//g,
815+
'\'filePath\'$1=> \''
816816
);
817817
}
818818
},

‎package.json‎

Lines changed: 1 addition & 1 deletion
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": "5715a61334c4d29f21b67cf34b46061dc1b62502",
10+
"sha": "954fe7f9e04631c41aec4552acd627a7203a2aad",
1111
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
1212
},
1313
"engines": {

‎src/js/_enqueues/admin/common.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ $('.contextual-help-tabs').on( 'click', 'a', function(e) {
692692
$('.contextual-help-tabs .active').removeClass('active');
693693
link.parent('li').addClass('active');
694694

695-
panel = $( link.attr('href') );
695+
panel = $( document ).find( link.attr('href') );
696696

697697
// Panels.
698698
$('.help-tab-content').not( panel ).removeClass('active').hide();

‎src/wp-admin/admin-header.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@
9595
<title><?php echo esc_html( $admin_title ); ?></title>
9696
<?php
9797

98+
/*
99+
* The dependencies of `colors` and the `utils` script are prefetched from the login screen by
100+
* wp_prefetch_admin_assets(), which needs updating if these change.
101+
*/
98102
wp_enqueue_style( 'colors' );
99103
wp_enqueue_script( 'utils' );
100104
wp_enqueue_script( 'svg-painter' );

‎src/wp-admin/admin.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
$date_format = __( 'F j, Y' );
119119
$time_format = __( 'g:i a' );
120120

121+
/*
122+
* The `jquery` dependency of this script is prefetched from the login screen by
123+
* wp_prefetch_admin_assets(), which needs updating if this changes.
124+
*/
121125
wp_enqueue_script( 'common' );
122126

123127
/**

‎src/wp-admin/edit-form-blocks.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static function ( $classes ) {
342342
/**
343343
* Styles
344344
*/
345+
// Prefetched for the block editor by wp_prefetch_admin_assets(), which needs updating if this changes.
345346
wp_enqueue_style( 'wp-edit-post' );
346347

347348
/**

‎src/wp-admin/includes/admin-filters.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
add_action( 'admin_head', 'wp_admin_canonical_url' );
4949
add_action( 'admin_head', 'wp_site_icon' );
5050
add_action( 'admin_head', 'wp_admin_viewport_meta' );
51+
add_action( 'admin_head', 'wp_prefetch_admin_assets' );
5152
add_action( 'customize_controls_head', 'wp_admin_viewport_meta' );
5253
add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );
5354

‎src/wp-admin/includes/class-wp-application-passwords-list-table.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ protected function column_default( $item, $column_name ) {
147147
* @since 5.6.0
148148
*
149149
* @param string $which The location of the bulk actions: Either 'top' or 'bottom'.
150+
*
151+
* @phpstan-param 'top'|'bottom' $which
150152
*/
151153
protected function display_tablenav( $which ) {
152154
?>

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ class WP_List_Table {
3030
* @since 3.1.0
3131
*
3232
* @var array<string, mixed>
33+
* @phpstan-var array{
34+
* plural: string,
35+
* singular: string,
36+
* ajax: bool,
37+
* screen: string|WP_Screen|null,
38+
* ...
39+
* }
3340
*/
3441
protected $_args;
3542

@@ -146,6 +153,14 @@ class WP_List_Table {
146153
* screen, or a `WP_Screen` instance. If left null, the current
147154
* screen will be automatically set. Default null.
148155
* }
156+
*
157+
* @phpstan-param array{
158+
* plural?: string,
159+
* singular?: string,
160+
* ajax?: bool,
161+
* screen?: string|WP_Screen|null,
162+
* ...
163+
* }|string $args
149164
*/
150165
public function __construct( $args = array() ) {
151166
$args = wp_parse_args(
@@ -438,6 +453,10 @@ public function search_box( $text, $input_id ) {
438453
* }
439454
* }
440455
* @return string[] An array of link markup. Keys match the `$link_data` input array.
456+
*
457+
* @phpstan-template TKey of array-key
458+
* @phpstan-param array<TKey, array{ url: string, label: string, current?: bool }>|string $link_data
459+
* @phpstan-return ($link_data is array ? array<TKey, string> : array{ 0: '' })
441460
*/
442461
protected function get_views_links( $link_data = array() ) {
443462
if ( ! is_array( $link_data ) ) {
@@ -1030,6 +1049,8 @@ protected function get_items_per_page( $option, $default_value = 20 ) {
10301049
* @since 3.1.0
10311050
*
10321051
* @param string $which The location of the pagination: Either 'top' or 'bottom'.
1052+
*
1053+
* @phpstan-param 'top'|'bottom' $which
10331054
*/
10341055
protected function pagination( $which ) {
10351056
if ( empty( $this->_pagination_args['total_items'] ) ) {
@@ -1665,6 +1686,8 @@ public function display() {
16651686
* @since 3.1.0
16661687
*
16671688
* @return string[] Array of CSS classes for the table tag.
1689+
*
1690+
* @phpstan-return non-empty-list<string>
16681691
*/
16691692
protected function get_table_classes() {
16701693
$mode = get_user_setting( 'posts_list_mode', 'list' );
@@ -1680,6 +1703,8 @@ protected function get_table_classes() {
16801703
* @since 3.1.0
16811704
*
16821705
* @param string $which The location of the navigation: Either 'top' or 'bottom'.
1706+
*
1707+
* @phpstan-param 'top'|'bottom' $which
16831708
*/
16841709
protected function display_tablenav( $which ) {
16851710
if ( 'bottom' === $which && ! $this->has_items() ) {

‎src/wp-admin/includes/class-wp-ms-sites-list-table.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ protected function get_bulk_actions() {
318318
* @global string $mode List table view mode.
319319
*
320320
* @param string $which The location of the pagination nav markup: Either 'top' or 'bottom'.
321+
*
322+
* @phpstan-param 'top'|'bottom' $which
321323
*/
322324
protected function pagination( $which ) {
323325
global $mode;

0 commit comments

Comments
 (0)