Make WordPress Core


Ignore:
Timestamp:
11/30/2014 11:42:00 AM (12 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-tag-form.php

    r29821 r30649  
    5252 * Fires before the Edit Term form for all taxonomies.
    5353 *
    54  * The dynamic portion of the hook name, $taxonomy, refers to
     54 * The dynamic portion of the hook name, `$taxonomy`, refers to
    5555 * the taxonomy slug.
    5656 *
    … …  
    6565<h2><?php echo $tax->labels->edit_item; ?></h2>
    6666<div id="ajax-response"></div>
     67<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"
    6768<?php
    6869/**
    6970 * Fires inside the Edit Term form tag.
    7071 *
    71  * The dynamic portion of the hook name, $taxonomy, refers to
     72 * The dynamic portion of the hook name, `$taxonomy`, refers to
    7273 * the taxonomy slug.
    7374 *
    7475 * @since 3.7.0
    7576 */
    76 ?>
    77 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_edit_form_tag" ); ?>>
     77do_action( "{$taxonomy}_term_edit_form_tag" );
     78?>>
    7879<input type="hidden" name="action" value="editedtag" />
    7980<input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
    … …  
    154155                 * Fires after the Edit Term form fields are displayed.
    155156                 *
    156                  * The dynamic portion of the hook name, $taxonomy, refers to
     157                 * The dynamic portion of the hook name, `$taxonomy`, refers to
    157158                 * the taxonomy slug.
    158159                 *
    … …  
    187188 * Fires at the end of the Edit Term form for all taxonomies.
    188189 *
    189  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
     190 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    190191 *
    191192 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.