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/edit-tags.php

    r30356 r30649  
    352352 * Fires after the taxonomy list table.
    353353 *
    354  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     354 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    355355 *
    356356 * @since 3.0.0
     
    421421     * Fires before the Add Term form for all taxonomies.
    422422     *
    423      * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     423     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    424424     *
    425425     * @since 3.0.0
     
    432432<div class="form-wrap">
    433433<h3><?php echo $tax->labels->add_new_item; ?></h3>
     434<form id="addtag" method="post" action="edit-tags.php" class="validate"
    434435<?php
    435436/**
    436437 * Fires at the beginning of the Add Tag form.
    437438 *
    438  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     439 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    439440 *
    440441 * @since 3.7.0
    441442 */
    442 ?>
    443 <form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_new_form_tag" ); ?>>
     443do_action( "{$taxonomy}_term_new_form_tag" );
     444?>>
    444445<input type="hidden" name="action" value="add-tag" />
    445446<input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" />
     
    522523 * Fires after the Add Term form fields for hierarchical taxonomies.
    523524 *
    524  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     525 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    525526 *
    526527 * @since 3.0.0
     
    567568 * Fires at the end of the Add Term form for all taxonomies.
    568569 *
    569  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     570 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    570571 *
    571572 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.