Skip to content

Commit afd5d3a

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into trunk
2 parents 8f53431 + ee7a6d8 commit afd5d3a

29 files changed

Lines changed: 667 additions & 166 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ext-dom": "*"
2020
},
2121
"require-dev": {
22-
"composer/ca-bundle": "1.5.9",
22+
"composer/ca-bundle": "1.5.10",
2323
"squizlabs/php_codesniffer": "3.13.5",
2424
"wp-coding-standards/wpcs": "~3.3.0",
2525
"phpcompatibility/phpcompatibility-wp": "~2.1.3",

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://develop.svn.wordpress.org/trunk"
88
},
99
"gutenberg": {
10-
"ref": "59a08c5496008ca88f4b6b86f38838c3612d88c8"
10+
"ref": "7a11a53377a95cba4d3786d71cadd4c2f0c5ac52"
1111
},
1212
"engines": {
1313
"node": ">=20.10.0",
@@ -74,7 +74,7 @@
7474
"webpack": "5.98.0"
7575
},
7676
"dependencies": {
77-
"backbone": "1.6.0",
77+
"backbone": "1.6.1",
7878
"clipboard": "2.0.11",
7979
"codemirror": "5.65.20",
8080
"core-js-url-browser": "3.6.4",
@@ -92,7 +92,7 @@
9292
"jquery-hoverintent": "1.10.2",
9393
"json2php": "0.0.12",
9494
"jsonlint": "1.6.3",
95-
"lodash": "4.17.21",
95+
"lodash": "4.17.23",
9696
"masonry-layout": "4.2.2",
9797
"moment": "2.30.1",
9898
"objectFitPolyfill": "2.3.5",
@@ -138,4 +138,4 @@
138138
"sync-gutenberg-packages": "grunt sync-gutenberg-packages",
139139
"postsync-gutenberg-packages": "grunt wp-packages:sync-stable-blocks && grunt build --dev && grunt build"
140140
}
141-
}
141+
}

src/wp-admin/css/common.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@
155155
font-weight: 600;
156156
padding: 15px 23px 14px;
157157
/* Background and color set to prevent false positives in automated accessibility tests. */
158-
background: #f0f0f1;
159-
color: #2271b1;
158+
background: #ffffff;
159+
color: var(--wp-admin-theme-color, #3858e9);
160160
z-index: 100000;
161161
line-height: normal;
162162
}
163163

164164
.screen-reader-shortcut:focus {
165165
top: -25px;
166166
/* Overrides a:focus in the admin. See ticket #56789. */
167-
color: #2271b1;
168-
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
167+
color: var(--wp-admin-theme-color, #3858e9);
168+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
169169
text-decoration: none;
170170
/* Only visible in Windows High Contrast mode */
171171
outline: 2px solid transparent;
@@ -1894,8 +1894,8 @@ p.auto-update-status {
18941894
}
18951895

18961896
#screen-meta-links .show-settings:focus {
1897-
border-color: #2271b1;
1898-
box-shadow: 0 0 0 1px #2271b1;
1897+
border-color: var(--wp-admin-theme-color, #3858e9);
1898+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
18991899
/* Only visible in Windows High Contrast mode */
19001900
outline: 2px solid transparent;
19011901
}
@@ -3445,7 +3445,7 @@ img {
34453445
/* Reset default focus style. */
34463446
box-shadow: none;
34473447
/* Use an inset outline instead, so it's visible also over the current file item. */
3448-
outline: 2px solid #2271b1;
3448+
outline: 2px solid var(--wp-admin-theme-color, #3858e9);
34493449
outline-offset: -2px;
34503450
}
34513451

src/wp-admin/css/login.css

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515
}
1616

1717
a {
18-
color: #2271b1;
18+
color: var(--wp-admin-theme-color-darker-10);
1919
transition-property: border, background, color;
2020
transition-duration: .05s;
2121
transition-timing-function: ease-in-out;
@@ -27,7 +27,7 @@ a {
2727

2828
a:hover,
2929
a:active {
30-
color: #135e96;
30+
color: var(--wp-admin-theme-color-darker-20);
3131
}
3232

3333
a:focus {
@@ -44,22 +44,32 @@ p {
4444
.login .message,
4545
.login .notice,
4646
.login .success {
47-
border-left: 4px solid #72aee6;
48-
padding: 12px;
47+
border-left: 4px solid #3858e9;
48+
padding: 8px 12px;
49+
margin-top: 0;
4950
margin-left: 0;
5051
margin-bottom: 20px;
51-
background-color: #fff;
52-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
52+
background-color: transparent;
5353
word-wrap: break-word;
5454
}
5555

56+
.login .message p,
57+
.login .notice p,
58+
.login .success p {
59+
font-size: 13px;
60+
line-height: 1.54;
61+
margin: 0.5em 0;
62+
}
63+
5664
.login .success {
57-
border-left-color: #00a32a;
65+
border-left-color: #4ab866;
66+
background-color: #eff9f1;
5867
}
5968

6069
/* Match border color from common.css */
6170
.login .notice-error {
62-
border-left-color: #d63638;
71+
border-left-color: #cc1818;
72+
background-color: #fcf0f0;
6373
}
6474

6575
.login .login-error-list {
@@ -113,8 +123,8 @@ p {
113123

114124
.login .button.wp-hide-pw:focus {
115125
background: transparent;
116-
border-color: #3582c4;
117-
box-shadow: 0 0 0 1px #3582c4;
126+
border-color: var(--wp-admin-theme-color);
127+
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
118128
/* Only visible in Windows High Contrast mode */
119129
outline: 2px solid transparent;
120130
}
@@ -360,12 +370,6 @@ p {
360370
padding-right: 2.5rem;
361371
}
362372

363-
.login form .input,
364-
.login input[type="text"],
365-
.login form input[type="checkbox"] {
366-
background: #fff;
367-
}
368-
369373
.js.login-action-resetpass input[type="text"],
370374
.js.login-action-resetpass input[type="password"],
371375
.js.login-action-rp input[type="text"],

src/wp-admin/css/nav-menus.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
221221

222222
.menu-settings-group {
223223
margin: 0 0 10px;
224-
overflow: hidden;
225224
padding-left: 20%;
226225
}
227226

src/wp-admin/css/widgets.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,12 @@ div#widgets-right .closed .widgets-sortables {
582582
padding: 0 15px;
583583
}
584584

585+
.widget-control-actions {
586+
display: flex;
587+
align-items: center;
588+
justify-content: space-between;
589+
}
590+
585591
.editwidget .widget-control-actions {
586592
margin-top: 20px;
587593
}
@@ -724,7 +730,7 @@ div#widgets-right .widget-top:hover,
724730
}
725731

726732
.widgets-chooser .widgets-chooser-selected .widgets-chooser-button {
727-
background: #2271b1;
733+
background: var(--wp-admin-theme-color, #3858e9);
728734
color: #fff;
729735
}
730736

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

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,20 @@ class WP_Media_List_Table extends WP_List_Table {
2323
*/
2424
protected $comment_pending_count = array();
2525

26+
/**
27+
* Whether the list table is for detached media.
28+
*
29+
* @since 3.1.0
30+
* @var bool
31+
*/
2632
private $detached;
2733

34+
/**
35+
* Whether the list table is for trash.
36+
*
37+
* @since 3.1.0
38+
* @var bool
39+
*/
2840
private $is_trash;
2941

3042
/**
@@ -53,17 +65,25 @@ public function __construct( $args = array() ) {
5365
}
5466

5567
/**
68+
* Checks if the current user has permissions to upload files.
69+
*
70+
* @since 3.1.0
71+
*
5672
* @return bool Whether the user can upload files.
5773
*/
5874
public function ajax_user_can() {
5975
return current_user_can( 'upload_files' );
6076
}
6177

6278
/**
79+
* Prepares the list of items for displaying.
80+
*
81+
* @since 3.1.0
82+
*
6383
* @global string $mode List table view mode.
6484
* @global WP_Query $wp_query WordPress Query object.
65-
* @global array $post_mime_types
66-
* @global array $avail_post_mime_types
85+
* @global array $post_mime_types An array of post mime types.
86+
* @global array $avail_post_mime_types An array of available post mime types.
6787
*/
6888
public function prepare_items() {
6989
global $mode, $wp_query, $post_mime_types, $avail_post_mime_types;
@@ -117,8 +137,12 @@ public function prepare_items() {
117137
}
118138

119139
/**
120-
* @global array $post_mime_types
121-
* @global array $avail_post_mime_types
140+
* Gets an array of links for the available views on this table.
141+
*
142+
* @since 3.1.0
143+
*
144+
* @global array $post_mime_types An array of post mime types.
145+
* @global array $avail_post_mime_types An array of available post mime types.
122146
* @return array<string, string> An array of links for the available views.
123147
*/
124148
protected function get_views() {
@@ -198,7 +222,11 @@ protected function get_bulk_actions() {
198222
}
199223

200224
/**
201-
* @param string $which
225+
* Displays extra controls between bulk actions and pagination.
226+
*
227+
* @since 3.1.0
228+
*
229+
* @param string $which The location of the extra table nav: 'top' or 'bottom'.
202230
*/
203231
protected function extra_tablenav( $which ) {
204232
if ( 'bar' !== $which ) {
@@ -253,6 +281,9 @@ public function has_items() {
253281
}
254282

255283
/**
284+
* Displays a message when no media items are found.
285+
*
286+
* @since 3.1.0
256287
*/
257288
public function no_items() {
258289
if ( $this->is_trash ) {
@@ -762,8 +793,12 @@ protected function get_default_primary_column_name() {
762793
}
763794

764795
/**
765-
* @param WP_Post $post
766-
* @param string $att_title
796+
* Gets the row actions for a media item.
797+
*
798+
* @since 3.1.0
799+
*
800+
* @param WP_Post $post The current WP_Post object.
801+
* @param string $att_title The attachment title.
767802
* @return array<string, string> An array of row actions.
768803
*/
769804
private function _get_row_actions( $post, $att_title ) {

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ function wp_iframe( $content_func, ...$args ) {
611611

612612
?>
613613
</head>
614-
<body<?php echo $body_id_attr; ?> class="wp-core-ui no-js">
614+
<body<?php echo $body_id_attr; ?> class="wp-core-ui no-js <?php echo 'admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'modern' ); ?>">
615615
<script>
616616
document.body.className = document.body.className.replace('no-js', 'js');
617617
</script>

src/wp-admin/includes/template.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,6 +2172,7 @@ function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_r
21722172
do_action( 'admin_head' );
21732173

21742174
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
2175+
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'modern' );
21752176

21762177
if ( is_rtl() ) {
21772178
$admin_body_class .= ' rtl';

0 commit comments

Comments
 (0)