Make WordPress Core


Ignore:
Timestamp:
11/30/2014 11:42:00 AM (10 years ago)
Author:
DrewAPicture
Message:

Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/*.

Also includes some changes to move hook docs to directly precede hook lines. This is necessary to prevent DocBlock-matching confusion when core is parsed.

Affects DocBlocks for the following hooks:

  • wp_ajax_ . $_REQUEST['action']
  • wp_ajax_nopriv_ . $_REQUEST['action']
  • admin_footer- . $GLOBALS['hook_suffix']
  • admin_head-$hook_suffix
  • admin_post_nopriv_{$action}
  • admin_post_{$action}
  • load- . $page_hook
  • load- . $plugin_page
  • load-importer- . $importer
  • load- . $pagenow
  • admin_action_ . $_REQUEST['action']
  • async_upload_{$type}
  • add_meta_boxes_ . $post_type
  • {$taxonomy}_pre_edit_form
  • {$taxonomy}_term_edit_form_tag
  • {$taxonomy}_edit_form_fields
  • {$taxonomy}_edit_form
  • after-{$taxonomy}-table
  • {$taxonomy}_pre_add_form
  • {$taxonomy}_term_new_form_tag
  • {$taxonomy}_add_form_fields
  • {$taxonomy}_add_form
  • media_upload_$type
  • media_upload_$tab
  • install_plugins_pre_$tab
  • install_plugins_$tab
  • install_themes_pre_{$tab}
  • install_themes_{$tab}
  • update-core-custom_{$action}
  • update-custom_{$action}
  • user_{$name}_label

See #30552.

File:
1 edited

Legend:

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

    r29959 r30649  
    5656wp_enqueue_script( 'theme' );
    5757
    58 /**
    59  * Fires before each of the tabs are rendered on the Install Themes page.
    60  *
    61  * The dynamic portion of the hook name, $tab, refers to the current
    62  * theme install tab. Possible values are 'dashboard', 'search', 'upload',
    63  * 'featured', 'new', or 'updated'.
    64  *
    65  * @since 2.8.0
    66  */
    6758if ( $tab ) {
     59    /**
     60     * Fires before each of the tabs are rendered on the Install Themes page.
     61     *
     62     * The dynamic portion of the hook name, `$tab`, refers to the current
     63     * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     64     * 'featured', 'new', or 'updated'.
     65     *
     66     * @since 2.8.0
     67     */
    6868    do_action( "install_themes_pre_{$tab}" );
    6969}
     
    178178    <br class="clear" />
    179179<?php
    180 /**
    181  * Fires at the top of each of the tabs on the Install Themes page.
    182  *
    183  * The dynamic portion of the hook name, $tab, refers to the current
    184  * theme install tab. Possible values are 'dashboard', 'search', 'upload',
    185  * 'featured', 'new', or 'updated'.
    186  *
    187  * @since 2.8.0
    188  *
    189  * @param int $paged Number of the current page of results being viewed.
    190  */
    191180if ( $tab ) {
     181    /**
     182     * Fires at the top of each of the tabs on the Install Themes page.
     183     *
     184     * The dynamic portion of the hook name, `$tab`, refers to the current
     185     * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     186     * 'featured', 'new', or 'updated'.
     187     *
     188     * @since 2.8.0
     189     *
     190     * @param int $paged Number of the current page of results being viewed.
     191     */
    192192    do_action( "install_themes_{$tab}", $paged );
    193193}
Note: See TracChangeset for help on using the changeset viewer.