close

Make WordPress Core

Changeset 61994


Ignore:
Timestamp:
03/12/2026 07:29:05 PM (23 hours ago)
Author:
westonruter
Message:

Docs: Add missing hook cross-reference docblock comments.

Developed in https://github.com/WordPress/wordpress-develop/pull/11205

Props apermo, mukesh27.
See #64224.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r60923 r61994  
    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    }
  • trunk/src/wp-includes/block-editor.php

    r61678 r61994  
    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' );
  • trunk/src/wp-includes/deprecated.php

    r61946 r61994  
    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>';
     
    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>';
     
    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.
     
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.