From b770b16862bfab39909c5c81abaa3cd80748edb0 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 12 Mar 2026 19:29:05 +0000 Subject: [PATCH 1/6] Docs: Add missing hook cross-reference docblock comments. Developed in https://github.com/WordPress/wordpress-develop/pull/11205 Props apermo, mukesh27. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61994 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin.php | 5 +++++ src/wp-includes/block-editor.php | 1 + src/wp-includes/deprecated.php | 5 +++++ 3 files changed, 11 insertions(+) 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/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