Skip to content

Commit bb965aa

Browse files
authored
Merge branch 'trunk' into fix/wp_supports_ai
2 parents 007b572 + 202a1f3 commit bb965aa

17 files changed

Lines changed: 146 additions & 16 deletions

src/wp-admin/admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,22 @@
395395
*/
396396
if ( 'page' === $typenow ) {
397397
if ( 'post-new.php' === $pagenow ) {
398+
/** This action is documented in wp-admin/admin.php */
398399
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
399400
} elseif ( 'post.php' === $pagenow ) {
401+
/** This action is documented in wp-admin/admin.php */
400402
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
401403
}
402404
} elseif ( 'edit-tags.php' === $pagenow ) {
403405
if ( 'category' === $taxnow ) {
406+
/** This action is documented in wp-admin/admin.php */
404407
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
405408
} elseif ( 'link_category' === $taxnow ) {
409+
/** This action is documented in wp-admin/admin.php */
406410
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
407411
}
408412
} elseif ( 'term.php' === $pagenow ) {
413+
/** This action is documented in wp-admin/admin.php */
409414
do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
410415
}
411416
}

src/wp-includes/block-editor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ function _wp_get_iframed_editor_assets() {
338338
* front-end assets for the content.
339339
*/
340340
add_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' );
341+
/** This action is documented in wp-includes/script-loader.php */
341342
do_action( 'enqueue_block_assets' );
342343
remove_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' );
343344

src/wp-includes/category-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,8 @@ function tag_description( $tag = 0 ) {
12581258
* @since 2.8.0
12591259
* @since 4.9.2 The `$taxonomy` parameter was deprecated.
12601260
*
1261-
* @param int $term Optional. Term ID. Defaults to the current term ID.
1262-
* @param null $deprecated Deprecated. Not used.
1261+
* @param int $term Optional. Term ID. Defaults to the current term ID.
1262+
* @param mixed $deprecated Not used.
12631263
* @return string Term description, if available.
12641264
*/
12651265
function term_description( $term = 0, $deprecated = null ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function add_node( $args ) {
169169
'my-blogs' => array( 'my-sites', '3.3' ),
170170
);
171171

172-
if ( isset( $back_compat_parents[ $args['parent'] ] ) ) {
172+
if ( is_string( $args['parent'] ) && isset( $back_compat_parents[ $args['parent'] ] ) ) {
173173
list( $new_parent, $version ) = $back_compat_parents[ $args['parent'] ];
174174
_deprecated_argument( __METHOD__, $version, sprintf( 'Use <code>%s</code> as the parent for the <code>%s</code> admin bar node instead of <code>%s</code>.', $new_parent, $args['id'], $args['parent'] ) );
175175
$args['parent'] = $new_parent;

src/wp-includes/class-wp-block-parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public function freeform( $inner_html ) {
318318
*
319319
* @internal
320320
* @since 5.0.0
321-
* @param null $length how many bytes of document text to output.
321+
* @param null|int $length How many bytes of document text to output.
322322
*/
323323
public function add_freeform( $length = null ) {
324324
$length = $length ? $length : strlen( $this->document ) - $this->offset;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ public function form_callback( $widget_args = 1 ) {
546546
*
547547
* @since 2.8.0
548548
*
549-
* @param WP_Widget $widget The widget instance (passed by reference).
550-
* @param null $return Return null if new fields are added.
551-
* @param array $instance An array of the widget's settings.
549+
* @param WP_Widget $widget The widget instance (passed by reference).
550+
* @param null|string $return Default 'noform'. Return null if new fields are added.
551+
* @param array $instance An array of the widget's settings.
552552
*/
553553
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) );
554554
}

src/wp-includes/deprecated.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $
150150

151151
$string = '<a href="'.get_permalink($post->ID).'">'.$previous;
152152
if ( 'yes' == $title )
153+
/** This filter is documented in wp-includes/post-template.php */
153154
$string .= apply_filters('the_title', $post->post_title, $post->ID);
154155
$string .= '</a>';
155156
$format = str_replace('%', $string, $format);
@@ -185,6 +186,7 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat=
185186

186187
$string = '<a href="'.get_permalink($post->ID).'">'.$next;
187188
if ( 'yes' == $title )
189+
/** This filter is documented in wp-includes/post-template.php */
188190
$string .= apply_filters('the_title', $post->post_title, $post->ID);
189191
$string .= '</a>';
190192
$format = str_replace('%', $string, $format);
@@ -1060,6 +1062,7 @@ function get_links_list($order = 'name') {
10601062
// Handle each category.
10611063

10621064
// Display the category name.
1065+
/** This filter is documented in wp-includes/bookmark-template.php */
10631066
echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";
10641067
// Call get_links() with all the appropriate params.
10651068
get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
@@ -2702,6 +2705,7 @@ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex
27022705

27032706
$title = str_replace('%title', $post->post_title, $title);
27042707
$title = str_replace('%date', $date, $title);
2708+
/** This filter is documented in wp-includes/post-template.php */
27052709
$title = apply_filters('the_title', $title, $post->ID);
27062710

27072711
$link = $start ? "<link rel='start' title='" : "<link rel='end' title='";
@@ -2779,6 +2783,7 @@ function get_parent_post_rel_link( $title = '%title' ) {
27792783

27802784
$title = str_replace('%title', $post->post_title, $title);
27812785
$title = str_replace('%date', $date, $title);
2786+
/** This filter is documented in wp-includes/post-template.php */
27822787
$title = apply_filters('the_title', $title, $post->ID);
27832788

27842789
$link = "<link rel='up' title='";

src/wp-includes/functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,7 @@ function _wp_check_existing_file_names( $filename, $files ) {
28862886
* @since 2.0.0
28872887
*
28882888
* @param string $name Filename.
2889-
* @param null|string $deprecated Never used. Set to null.
2889+
* @param null|string $deprecated Not used. Set to null.
28902890
* @param string $bits File content
28912891
* @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
28922892
* @return array {
@@ -5853,6 +5853,7 @@ function _deprecated_file( $file, $version, $replacement = '', $message = '' ) {
58535853
wp_trigger_error( '', $message, E_USER_DEPRECATED );
58545854
}
58555855
}
5856+
58565857
/**
58575858
* Marks a function argument as deprecated and inform when it has been used.
58585859
*

src/wp-includes/ms-blogs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ function update_archived( $id, $archived ) {
755755
* @param int $blog_id Blog ID.
756756
* @param string $pref Field name.
757757
* @param string $value Field value.
758-
* @param null $deprecated Not used.
758+
* @param mixed $deprecated Not used.
759759
* @return string|false $value
760760
*/
761761
function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {

src/wp-includes/ms-deprecated.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ function install_blog_defaults( $blog_id, $user_id ) {
694694
* Previously used in core to mark a user as spam or "ham" (not spam) in Multisite.
695695
*
696696
* @since 3.0.0
697+
* @since 3.0.2 Deprecated fourth argument.
697698
* @deprecated 5.3.0 Use wp_update_user()
698699
* @see wp_update_user()
699700
*
@@ -703,7 +704,7 @@ function install_blog_defaults( $blog_id, $user_id ) {
703704
* @param string $pref The column in the wp_users table to update the user's status
704705
* in (presumably user_status, spam, or deleted).
705706
* @param int $value The new status for the user.
706-
* @param null $deprecated Deprecated as of 3.0.2 and should not be used.
707+
* @param mixed $deprecated Not used.
707708
* @return int The initially passed $value.
708709
*/
709710
function update_user_status( $id, $pref, $value, $deprecated = null ) {

0 commit comments

Comments
 (0)