Skip to content

Commit ccc25c1

Browse files
authored
Merge branch 'trunk' into 64689-polish-customizer-button
2 parents f753791 + e12ddb3 commit ccc25c1

72 files changed

Lines changed: 1912 additions & 610 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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ module.exports = function(grunt) {
18371837
'clean:js',
18381838
'build:webpack',
18391839
'copy:js',
1840+
'copy-vendor-scripts',
18401841
'file_append',
18411842
'uglify:all',
18421843
'concat:tinymce',
@@ -2133,7 +2134,6 @@ module.exports = function(grunt) {
21332134
'build:css',
21342135
'build:codemirror',
21352136
'build:gutenberg',
2136-
'copy-vendor-scripts',
21372137
'build:certificates'
21382138
] );
21392139
} else {
@@ -2145,7 +2145,6 @@ module.exports = function(grunt) {
21452145
'build:css',
21462146
'build:codemirror',
21472147
'build:gutenberg',
2148-
'copy-vendor-scripts',
21492148
'replace:source-maps',
21502149
'verify:build'
21512150
] );

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": "0d133bf7e7437d65d68a06551f3d613a7d8e4361",
10+
"sha": "e2970ba736edb99e08fb369d4fb0c378189468ee",
1111
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
1212
},
1313
"engines": {

src/wp-admin/css/color-picker.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/* Needs higher specificity to override `.wp-core-ui .button`. */
1212
.wp-picker-container .wp-color-result.button {
13-
min-height: 30px;
13+
min-height: 32px;
1414
margin: 0 6px 6px 0;
1515
padding: 0 0 0 30px;
1616
font-size: 11px;
@@ -22,7 +22,7 @@
2222
border-left: 1px solid #c3c4c7;
2323
color: #50575e;
2424
display: block;
25-
line-height: 2.54545455; /* 28px */
25+
line-height: 2.72727273; /* 30px */
2626
padding: 0 6px;
2727
text-align: center;
2828
}
@@ -76,8 +76,8 @@
7676
.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear {
7777
margin-left: 6px;
7878
padding: 0 8px;
79-
line-height: 2.54545455; /* 28px */
80-
min-height: 30px;
79+
line-height: 2.72727273; /* 30px */
80+
min-height: 32px;
8181
}
8282

8383
.wp-picker-container .iris-square-slider .ui-slider-handle:focus {
@@ -97,7 +97,7 @@
9797
margin: 0;
9898
padding: 0 5px;
9999
vertical-align: top;
100-
min-height: 30px;
100+
min-height: 32px;
101101
}
102102

103103
.wp-color-picker::-webkit-input-placeholder {

src/wp-admin/css/common.css

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,22 +1473,22 @@ div.error p,
14731473
color: #1e1e1e;
14741474
}
14751475

1476-
.notice a,
1477-
.error a,
1478-
.updated a {
1476+
div.notice a,
1477+
div.error a,
1478+
div.updated a {
14791479
color: var(--wp-admin-theme-color-darker-10);
14801480
text-decoration: underline;
14811481
}
14821482

1483-
.notice a:hover,
1484-
.error a:hover,
1485-
.updated a:hover {
1483+
div.notice a:hover,
1484+
div.error a:hover,
1485+
div.updated a:hover {
14861486
color: var(--wp-admin-theme-color-darker-20);
14871487
}
14881488

1489-
.notice a:focus,
1490-
.error a:focus,
1491-
.updated a:focus {
1489+
div.notice a:focus,
1490+
div.error a:focus,
1491+
div.updated a:focus {
14921492
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
14931493
outline: 2px solid transparent;
14941494
border-radius: 2px;
@@ -2077,17 +2077,6 @@ p.auto-update-status {
20772077
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 1px 0 rgba(0, 0, 0, 0.02);
20782078
}
20792079

2080-
.contextual-help-tabs .active::after {
2081-
content: "";
2082-
position: absolute;
2083-
top: 0;
2084-
right: -1px;
2085-
width: 2px;
2086-
height: 100%;
2087-
background: inherit;
2088-
z-index: 2;
2089-
}
2090-
20912080
.contextual-help-tabs .active a {
20922081
border-color: #c3c4c7;
20932082
color: #2c3338;
@@ -2292,7 +2281,7 @@ html.wp-toolbar {
22922281
line-height: 1;
22932282
}
22942283

2295-
.postbox.closed {
2284+
.postbox.closed .postbox-header {
22962285
border-bottom: 0;
22972286
}
22982287

src/wp-admin/css/edit.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,15 +994,16 @@ form#tags-filter {
994994
}
995995

996996
.privacy-settings-accordion-actions {
997-
text-align: right;
998-
display: block;
997+
justify-content: right;
998+
display: flex;
999+
align-items: center;
1000+
flex-wrap: wrap;
1001+
gap: 1em;
9991002
}
10001003

10011004
.privacy-settings-accordion-actions .success {
10021005
display: none;
10031006
color: #007017;
1004-
padding-right: 1em;
1005-
padding-top: 6px;
10061007
}
10071008

10081009
.privacy-settings-accordion-actions .success.visible {

src/wp-admin/css/list-tables.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ th.sorted a span {
682682
}
683683

684684
.tablenav-pages .current-page {
685+
vertical-align: top;
685686
margin: 0 2px 0 0;
686687
font-size: 13px;
687688
text-align: center;

src/wp-admin/includes/class-wp-importer.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,14 @@ public function get_imported_comments( $blog_id ) {
135135
}
136136

137137
/**
138-
* @param int $blog_id
139-
* @return int|void
138+
* Sets the blog to import to.
139+
*
140+
* Accepts a numeric blog ID or a URL string. When given a URL,
141+
* the blog is looked up by domain and path. On multisite, switches
142+
* to the resolved blog. Exits with an error if the blog cannot be found.
143+
*
144+
* @param int|string $blog_id Blog ID or URL.
145+
* @return int Blog ID on success. Exits on failure.
140146
*/
141147
public function set_blog( $blog_id ) {
142148
if ( is_numeric( $blog_id ) ) {
@@ -177,7 +183,7 @@ public function set_blog( $blog_id ) {
177183

178184
/**
179185
* @param int $user_id
180-
* @return int|void
186+
* @return int
181187
*/
182188
public function set_user( $user_id ) {
183189
if ( is_numeric( $user_id ) ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ protected function get_bulk_actions() {
437437
if ( $this->is_trash ) {
438438
$actions['untrash'] = __( 'Restore' );
439439
} else {
440-
$actions['edit'] = __( 'Bulk edit' );
440+
$actions['edit'] = _x( 'Bulk edit', 'verb' );
441441
}
442442
}
443443

src/wp-admin/includes/class-wp-privacy-requests-table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function column_cb( $item ) {
435435
* @since 4.9.6
436436
*
437437
* @param WP_User_Request $item Item being shown.
438-
* @return string|void Status column markup. Returns a string if no status is found,
438+
* @return string|null Status column markup. Returns a string if no status is found,
439439
* otherwise it displays the markup.
440440
*/
441441
public function column_status( $item ) {
@@ -465,6 +465,7 @@ public function column_status( $item ) {
465465
}
466466

467467
echo '</span>';
468+
return null;
468469
}
469470

470471
/**

src/wp-admin/includes/class-wp-site-health.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,17 @@ public function enqueue_scripts() {
167167
* @since 5.4.0
168168
*
169169
* @param callable $callback
170-
* @return mixed|void
170+
* @return array{
171+
* label: string,
172+
* status: 'good'|'recommended'|'critical',
173+
* badge: array{
174+
* label: string,
175+
* color: string,
176+
* },
177+
* description: string,
178+
* actions: string,
179+
* test: string,
180+
* }
171181
*/
172182
private function perform_test( $callback ) {
173183
/**

0 commit comments

Comments
 (0)