diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php index 1186f9bedce21..82ab6b93ac99e 100644 --- a/src/wp-admin/admin.php +++ b/src/wp-admin/admin.php @@ -395,17 +395,22 @@ */ if ( 'page' === $typenow ) { if ( 'post-new.php' === $pagenow ) { + /** This action is documented in wp-admin/admin.php */ do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } elseif ( 'post.php' === $pagenow ) { + /** This action is documented in wp-admin/admin.php */ do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } } elseif ( 'edit-tags.php' === $pagenow ) { if ( 'category' === $taxnow ) { + /** This action is documented in wp-admin/admin.php */ do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } elseif ( 'link_category' === $taxnow ) { + /** This action is documented in wp-admin/admin.php */ do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } } elseif ( 'term.php' === $pagenow ) { + /** This action is documented in wp-admin/admin.php */ do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } } diff --git a/src/wp-includes/block-editor.php b/src/wp-includes/block-editor.php index 18152756d5b73..c21e8d9e9feec 100644 --- a/src/wp-includes/block-editor.php +++ b/src/wp-includes/block-editor.php @@ -338,6 +338,7 @@ function _wp_get_iframed_editor_assets() { * front-end assets for the content. */ add_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' ); + /** This action is documented in wp-includes/script-loader.php */ do_action( 'enqueue_block_assets' ); remove_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' ); diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index 790cd3e0d0486..5c304072ed5d8 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -1258,8 +1258,8 @@ function tag_description( $tag = 0 ) { * @since 2.8.0 * @since 4.9.2 The `$taxonomy` parameter was deprecated. * - * @param int $term Optional. Term ID. Defaults to the current term ID. - * @param null $deprecated Deprecated. Not used. + * @param int $term Optional. Term ID. Defaults to the current term ID. + * @param mixed $deprecated Not used. * @return string Term description, if available. */ function term_description( $term = 0, $deprecated = null ) { diff --git a/src/wp-includes/class-wp-admin-bar.php b/src/wp-includes/class-wp-admin-bar.php index 0c6ab15553bb2..e1f7282f82ab9 100644 --- a/src/wp-includes/class-wp-admin-bar.php +++ b/src/wp-includes/class-wp-admin-bar.php @@ -169,7 +169,7 @@ public function add_node( $args ) { 'my-blogs' => array( 'my-sites', '3.3' ), ); - if ( isset( $back_compat_parents[ $args['parent'] ] ) ) { + if ( is_string( $args['parent'] ) && isset( $back_compat_parents[ $args['parent'] ] ) ) { list( $new_parent, $version ) = $back_compat_parents[ $args['parent'] ]; _deprecated_argument( __METHOD__, $version, sprintf( 'Use %s as the parent for the %s admin bar node instead of %s.', $new_parent, $args['id'], $args['parent'] ) ); $args['parent'] = $new_parent; diff --git a/src/wp-includes/class-wp-block-parser.php b/src/wp-includes/class-wp-block-parser.php index bf8a59249d99d..8c619a7b47f2c 100644 --- a/src/wp-includes/class-wp-block-parser.php +++ b/src/wp-includes/class-wp-block-parser.php @@ -318,7 +318,7 @@ public function freeform( $inner_html ) { * * @internal * @since 5.0.0 - * @param null $length how many bytes of document text to output. + * @param null|int $length How many bytes of document text to output. */ public function add_freeform( $length = null ) { $length = $length ? $length : strlen( $this->document ) - $this->offset; diff --git a/src/wp-includes/class-wp-widget.php b/src/wp-includes/class-wp-widget.php index e72b2798cbab9..5ad32f49378a8 100644 --- a/src/wp-includes/class-wp-widget.php +++ b/src/wp-includes/class-wp-widget.php @@ -546,9 +546,9 @@ public function form_callback( $widget_args = 1 ) { * * @since 2.8.0 * - * @param WP_Widget $widget The widget instance (passed by reference). - * @param null $return Return null if new fields are added. - * @param array $instance An array of the widget's settings. + * @param WP_Widget $widget The widget instance (passed by reference). + * @param null|string $return Default 'noform'. Return null if new fields are added. + * @param array $instance An array of the widget's settings. */ do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) ); } diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index b4add654f1fe3..14f5c24aec914 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -150,6 +150,7 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $ $string = ''.$previous; if ( 'yes' == $title ) + /** This filter is documented in wp-includes/post-template.php */ $string .= apply_filters('the_title', $post->post_title, $post->ID); $string .= ''; $format = str_replace('%', $string, $format); @@ -185,6 +186,7 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat= $string = ''.$next; if ( 'yes' == $title ) + /** This filter is documented in wp-includes/post-template.php */ $string .= apply_filters('the_title', $post->post_title, $post->ID); $string .= ''; $format = str_replace('%', $string, $format); @@ -1060,6 +1062,7 @@ function get_links_list($order = 'name') { // Handle each category. // Display the category name. + /** This filter is documented in wp-includes/bookmark-template.php */ echo '
  • ' . apply_filters('link_category', $cat->name ) . "

    \n\t