Skip to content

Commit 597db47

Browse files
authored
Merge branch 'trunk' into html-api/ignore-internal-methods-from-docs
2 parents c01a29b + 976ca47 commit 597db47

22 files changed

Lines changed: 495 additions & 144 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/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/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public function column_title( $post ) {
493493
'<a href="%s">',
494494
get_edit_post_link( $post->ID ),
495495
);
496-
$link_end = '</a>';
496+
$link_end = '</a>';
497497
}
498498

499499
$class = $thumb ? ' class="has-media-icon"' : '';

src/wp-includes/ai-client/class-wp-ai-client-prompt-builder.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,18 @@ class WP_AI_Client_Prompt_Builder {
165165
* conversations. Default null.
166166
*/
167167
public function __construct( ProviderRegistry $registry, $prompt = null ) {
168-
$this->builder = new PromptBuilder( $registry, $prompt );
168+
try {
169+
$this->builder = new PromptBuilder( $registry, $prompt );
170+
} catch ( Exception $e ) {
171+
$this->builder = new PromptBuilder( $registry );
172+
$this->error = new WP_Error(
173+
'prompt_builder_error',
174+
$e->getMessage(),
175+
array(
176+
'exception_class' => get_class( $e ),
177+
)
178+
);
179+
}
169180

170181
/**
171182
* Filters the default request timeout in seconds for AI Client HTTP requests.

src/wp-includes/author-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function get_the_author_posts_link() {
334334

335335
$author = get_the_author();
336336
/* translators: %s: Author's display name. */
337-
$title = sprintf( __( 'Posts by %s' ), $author );
337+
$title = sprintf( __( 'Posts by %s' ), $author );
338338

339339
$link = sprintf(
340340
'<a href="%1$s" rel="author">%2$s</a>',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static function get_instance( $id ) {
210210
*
211211
* @since 4.4.0
212212
*
213-
* @param WP_Comment $comment Comment object.
213+
* @param object $comment Comment object.
214214
*/
215215
public function __construct( $comment ) {
216216
foreach ( get_object_vars( $comment ) as $key => $value ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public static function get_instance( $post_id ) {
260260
*
261261
* @since 3.5.0
262262
*
263-
* @param WP_Post|object $post Post object.
263+
* @param object $post Post object.
264264
*/
265265
public function __construct( $post ) {
266266
foreach ( get_object_vars( $post ) as $key => $value ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static function get_instance( $site_id ) {
190190
*
191191
* @since 4.5.0
192192
*
193-
* @param WP_Site|object $site A site object.
193+
* @param object $site A site object.
194194
*/
195195
public function __construct( $site ) {
196196
foreach ( get_object_vars( $site ) as $key => $value ) {

0 commit comments

Comments
 (0)