Skip to content

Commit cdfa9f5

Browse files
authored
Merge branch 'trunk' into fix/59956-feed-build-date-empty-array
2 parents 5b79996 + a1c062c commit cdfa9f5

78 files changed

Lines changed: 1994 additions & 636 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-pclzip.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function create($p_filelist)
296296
$v_size--;
297297

298298
// ----- Look for first arg
299-
if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
299+
if ((is_int($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
300300

301301
// ----- Parse the options
302302
$v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
@@ -479,7 +479,7 @@ function add($p_filelist)
479479
$v_size--;
480480

481481
// ----- Look for first arg
482-
if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
482+
if ((is_int($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
483483

484484
// ----- Parse the options
485485
$v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
@@ -732,7 +732,7 @@ function extract()
732732
$v_arg_list = func_get_args();
733733

734734
// ----- Look for first arg
735-
if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
735+
if ((is_int($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
736736

737737
// ----- Parse the options
738738
$v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
@@ -893,7 +893,7 @@ function extractByIndex($p_index)
893893
$v_size--;
894894

895895
// ----- Look for first arg
896-
if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
896+
if ((is_int($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
897897

898898
// ----- Parse the options
899899
$v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
@@ -1479,7 +1479,7 @@ function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_request
14791479

14801480
// ----- Check the value
14811481
$v_value = $p_options_list[$i+1];
1482-
if ((!is_integer($v_value)) || ($v_value<0)) {
1482+
if ((!is_int($v_value)) || ($v_value<0)) {
14831483
PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'");
14841484
return PclZip::errorCode();
14851485
}
@@ -1646,7 +1646,7 @@ function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_request
16461646
// ----- Parse items
16471647
$v_work_list = explode(",", $p_options_list[$i+1]);
16481648
}
1649-
else if (is_integer($p_options_list[$i+1])) {
1649+
else if (is_int($p_options_list[$i+1])) {
16501650
$v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1];
16511651
}
16521652
else if (is_array($p_options_list[$i+1])) {
@@ -1944,7 +1944,7 @@ function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requ
19441944
break;
19451945

19461946
case PCLZIP_ATT_FILE_MTIME :
1947-
if (!is_integer($v_value)) {
1947+
if (!is_int($v_value)) {
19481948
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'");
19491949
return PclZip::errorCode();
19501950
}

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
/**

0 commit comments

Comments
 (0)