Skip to content

Commit 9fc4723

Browse files
committed
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develop into add/isset-checks
2 parents 3736bea + 50d6cf5 commit 9fc4723

18 files changed

Lines changed: 106 additions & 34 deletions

src/js/_enqueues/wp/sanitize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @return {string} Stripped text.
2424
*/
2525
stripTags: function( text ) {
26-
if ( ! text ) {
26+
if ( 'string' !== typeof text ) {
2727
return '';
2828
}
2929

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@
117117

118118
.iris-picker .ui-square-handle:focus,
119119
.iris-picker .iris-strip .ui-slider-handle:focus {
120-
border-color: #3582c4;
120+
border-color: var(--wp-admin-theme-color, #3858e9);
121121
border-style: solid;
122-
box-shadow: 0 0 0 1px #3582c4;
122+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
123123
outline: 2px solid transparent;
124124
}
125125

126126
.iris-picker .iris-palette:focus {
127-
box-shadow: 0 0 0 2px #3582c4;
127+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
128128
}
129129

130130
@media screen and (max-width: 782px) {

src/wp-admin/css/common.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,10 @@ img.emoji {
812812
content: "\f153";
813813
content: "\f153" / '';
814814
display: block;
815-
font: normal 20px/24px dashicons;
816-
height: 24px;
815+
font: normal 20px/1 dashicons;
816+
height: 1em;
817817
text-align: center;
818-
width: 24px;
818+
width: 1em;
819819
-webkit-font-smoothing: antialiased;
820820
-moz-osx-font-smoothing: grayscale;
821821
}

src/wp-admin/css/customize-controls.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ body.trashing #publish-settings {
613613
#customize-controls .control-section .accordion-section-title button:hover,
614614
#customize-controls .control-section.open .accordion-section-title,
615615
#customize-controls .control-section .accordion-section-title button:focus {
616-
color: #2271b1;
616+
color: var(--wp-admin-theme-color, #3858e9);
617617
background: #f6f7f7;
618-
border-left-color: #2271b1;
618+
border-left-color: var(--wp-admin-theme-color, #3858e9);
619619
}
620620

621621
#accordion-section-themes + .control-section {

src/wp-admin/css/dashboard.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
outline-offset: -2px;
7373
border-radius: 8px;
7474
height: 250px;
75+
margin: 4px;
7576
}
7677

7778
/* Only highlight drop zones when dragging. */

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
.vim-current,
258258
.vim-current th,
259259
.vim-current td {
260-
background-color: #f0f6fc !important;
260+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08) !important;
261261
}
262262

263263
th .comment-grey-bubble {
@@ -1194,7 +1194,7 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
11941194
}
11951195

11961196
#bulk-titles .ntdelbutton:focus {
1197-
box-shadow: 0 0 0 2px #3582c4;
1197+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
11981198
/* Only visible in Windows High Contrast mode */
11991199
outline: 2px solid transparent;
12001200
/* Reset inherited offset from Gutenberg */
@@ -1270,7 +1270,7 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
12701270

12711271
.plugins .active td,
12721272
.plugins .active th {
1273-
background-color: #f0f6fc;
1273+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
12741274
}
12751275

12761276
.plugins .update th,
@@ -1311,7 +1311,7 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
13111311

13121312
.plugins .active th.check-column,
13131313
.plugin-update-tr.active td {
1314-
border-left: 4px solid #72aee6;
1314+
border-left: 4px solid var(--wp-admin-theme-color);
13151315
}
13161316

13171317
.wp-list-table.plugins .plugin-title,
@@ -2330,8 +2330,8 @@ div.action-links,
23302330

23312331
.plugins .active.update + .plugin-update-tr:before,
23322332
.plugins .active.updated + .plugin-update-tr:before {
2333-
background-color: #f0f6fc;
2334-
border-left: 4px solid #72aee6;
2333+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
2334+
border-left: 4px solid var(--wp-admin-theme-color);
23352335
}
23362336

23372337
.plugins .plugin-update-tr .update-message {

src/wp-includes/class-wp-duotone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ public static function restore_image_outer_container( $block_content ) {
11931193

11941194
$inner_classnames = explode( ' ', $tags->get_attribute( 'class' ) );
11951195
foreach ( $inner_classnames as $classname ) {
1196-
if ( 0 === strpos( $classname, 'wp-duotone' ) ) {
1196+
if ( str_starts_with( $classname, 'wp-duotone' ) ) {
11971197
$tags->remove_class( $classname );
11981198
$tags->seek( 'wrapper-div' );
11991199
$tags->add_class( $classname );

src/wp-includes/class-wp-recovery-mode-key-service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function generate_recovery_mode_token() {
3939
* @since 5.2.0
4040
* @since 6.8.0 The stored key is now hashed using wp_fast_hash() instead of phpass.
4141
*
42-
* @param string $token A token generated by {@see generate_recovery_mode_token()}.
42+
* @param string $token A token generated by {@see WP_Recovery_Mode_Key_Service::generate_recovery_mode_token()}.
4343
* @return string Recovery mode key.
4444
*/
4545
public function generate_and_store_recovery_mode_key( $token ) {

src/wp-includes/class-wp-recovery-mode-link-service.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public function handle_begin_link( $ttl ) {
101101
*
102102
* @since 5.2.0
103103
*
104-
* @param string $token Recovery Mode token created by {@see generate_recovery_mode_token()}.
105-
* @param string $key Recovery Mode key created by {@see generate_and_store_recovery_mode_key()}.
104+
* @param string $token Recovery Mode token created by {@see WP_Recovery_Mode_Key_Service::generate_recovery_mode_token()}.
105+
* @param string $key Recovery Mode key created by {@see WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key()}.
106106
* @return string Recovery mode begin URL.
107107
*/
108108
private function get_recovery_mode_begin_url( $token, $key ) {

src/wp-includes/php-ai-client/src/AiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class AiClient
8484
/**
8585
* @var string The version of the AI Client.
8686
*/
87-
public const VERSION = '1.1.0';
87+
public const VERSION = '1.2.1';
8888
/**
8989
* @var ProviderRegistry|null The default provider registry instance.
9090
*/

0 commit comments

Comments
 (0)