Changeset 30649
- Timestamp:
- 11/30/2014 11:42:00 AM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-ajax.php
r30333 r30649 78 78 * Fires authenticated AJAX actions for logged-in users. 79 79 * 80 * The dynamic portion of the hook name, $_REQUEST['action'],80 * The dynamic portion of the hook name, `$_REQUEST['action']`, 81 81 * refers to the name of the AJAX action callback being fired. 82 82 * … … 88 88 * Fires non-authenticated AJAX actions for logged-out users. 89 89 * 90 * The dynamic portion of the hook name, $_REQUEST['action'],90 * The dynamic portion of the hook name, `$_REQUEST['action']`, 91 91 * refers to the name of the AJAX action callback being fired. 92 92 * -
trunk/src/wp-admin/admin-footer.php
r27469 r30649 77 77 * Print scripts or data after the default footer scripts. 78 78 * 79 * The dynamic portion of the hook name, $GLOBALS['hook_suffix'],79 * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`, 80 80 * refers to the global hook suffix of the current page. 81 81 * -
trunk/src/wp-admin/admin-post.php
r28478 r30649 43 43 * Fires on a non-authenticated admin post request for the given action. 44 44 * 45 * The dynamic portion of the hook name, $action, refers to the given45 * The dynamic portion of the hook name, `$action`, refers to the given 46 46 * request action. 47 47 * … … 62 62 * Fires on an authenticated admin post request for the given action. 63 63 * 64 * The dynamic portion of the hook name, $action, refers to the given64 * The dynamic portion of the hook name, `$action`, refers to the given 65 65 * request action. 66 66 * -
trunk/src/wp-admin/admin.php
r29206 r30649 186 186 * where a callback is provided when the screen is registered. 187 187 * 188 * The dynamic portion of the hook name, $page_hook, refers to a mixture of plugin188 * The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin 189 189 * page information including: 190 190 * 1. The page type. If the plugin page is registered as a submenu page, such as for … … 193 193 * 3. The plugin basename minus the file extension. 194 194 * 195 * Together, the three parts form the $page_hook. Citing the example above,195 * Together, the three parts form the `$page_hook`. Citing the example above, 196 196 * the hook name used would be 'load-settings_page_pluginbasename'. 197 197 * … … 224 224 * where the file to load is directly included, rather than the use of a function. 225 225 * 226 * The dynamic portion of the hook name, $plugin_page, refers to the plugin basename.226 * The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename. 227 227 * 228 228 * @see plugin_basename() … … 264 264 * Fires before an importer screen is loaded. 265 265 * 266 * The dynamic portion of the hook name, $importer, refers to the importer slug.266 * The dynamic portion of the hook name, `$importer`, refers to the importer slug. 267 267 * 268 268 * @since 3.5.0 … … 309 309 * The load-* hook fires in a number of contexts. This hook is for core screens. 310 310 * 311 * The dynamic portion of the hook name, $pagenow, is a global variable311 * The dynamic portion of the hook name, `$pagenow`, is a global variable 312 312 * referring to the filename of the current page, such as 'admin.php', 313 313 * 'post-new.php' etc. A complete hook for the latter would be … … 339 339 * Fires when an 'action' request variable is sent. 340 340 * 341 * The dynamic portion of the hook name, $_REQUEST['action'],342 * refers to the action derived from the GET or POSTrequest.341 * The dynamic portion of the hook name, `$_REQUEST['action']`, 342 * refers to the action derived from the `GET` or `POST` request. 343 343 * 344 344 * @since 2.6.0 -
trunk/src/wp-admin/async-upload.php
r30354 r30649 105 105 * Filter the returned ID of an uploaded attachment. 106 106 * 107 * The dynamic portion of the hook name, $type, refers to the attachment type,107 * The dynamic portion of the hook name, `$type`, refers to the attachment type, 108 108 * such as 'image', 'audio', 'video', 'file', etc. 109 109 * -
trunk/src/wp-admin/edit-form-advanced.php
r30643 r30649 245 245 * Fires after all built-in meta boxes have been added, contextually for the given post type. 246 246 * 247 * The dynamic portion of the hook, $post_type, refers to the post type of the post.247 * The dynamic portion of the hook, `$post_type`, refers to the post type of the post. 248 248 * 249 249 * @since 3.0.0 -
trunk/src/wp-admin/edit-tag-form.php
r29821 r30649 52 52 * Fires before the Edit Term form for all taxonomies. 53 53 * 54 * The dynamic portion of the hook name, $taxonomy, refers to54 * The dynamic portion of the hook name, `$taxonomy`, refers to 55 55 * the taxonomy slug. 56 56 * … … 65 65 <h2><?php echo $tax->labels->edit_item; ?></h2> 66 66 <div id="ajax-response"></div> 67 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate" 67 68 <?php 68 69 /** 69 70 * Fires inside the Edit Term form tag. 70 71 * 71 * The dynamic portion of the hook name, $taxonomy, refers to72 * The dynamic portion of the hook name, `$taxonomy`, refers to 72 73 * the taxonomy slug. 73 74 * 74 75 * @since 3.7.0 75 76 */ 76 ?> 77 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_edit_form_tag" );?>>77 do_action( "{$taxonomy}_term_edit_form_tag" ); 78 ?>> 78 79 <input type="hidden" name="action" value="editedtag" /> 79 80 <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" /> … … 154 155 * Fires after the Edit Term form fields are displayed. 155 156 * 156 * The dynamic portion of the hook name, $taxonomy, refers to157 * The dynamic portion of the hook name, `$taxonomy`, refers to 157 158 * the taxonomy slug. 158 159 * … … 187 188 * Fires at the end of the Edit Term form for all taxonomies. 188 189 * 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. 190 191 * 191 192 * @since 3.0.0 -
trunk/src/wp-admin/edit-tags.php
r30356 r30649 352 352 * Fires after the taxonomy list table. 353 353 * 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. 355 355 * 356 356 * @since 3.0.0 … … 421 421 * Fires before the Add Term form for all taxonomies. 422 422 * 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. 424 424 * 425 425 * @since 3.0.0 … … 432 432 <div class="form-wrap"> 433 433 <h3><?php echo $tax->labels->add_new_item; ?></h3> 434 <form id="addtag" method="post" action="edit-tags.php" class="validate" 434 435 <?php 435 436 /** 436 437 * Fires at the beginning of the Add Tag form. 437 438 * 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. 439 440 * 440 441 * @since 3.7.0 441 442 */ 442 ?> 443 <form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_new_form_tag" );?>>443 do_action( "{$taxonomy}_term_new_form_tag" ); 444 ?>> 444 445 <input type="hidden" name="action" value="add-tag" /> 445 446 <input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" /> … … 522 523 * Fires after the Add Term form fields for hierarchical taxonomies. 523 524 * 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. 525 526 * 526 527 * @since 3.0.0 … … 567 568 * Fires at the end of the Add Term form for all taxonomies. 568 569 * 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. 570 571 * 571 572 * @since 3.0.0 -
trunk/src/wp-admin/media-upload.php
r30356 r30649 75 75 * media popup based on the current tab. 76 76 * 77 * The dynamic portion of the hook name, $type, refers to the specific77 * The dynamic portion of the hook name, `$type`, refers to the specific 78 78 * media upload type. Possible values include 'image', 'audio', 'video', 79 79 * 'file', etc. 80 80 * 81 * The hook only fires if the current $tabis 'type' (From Computer),81 * The hook only fires if the current `$tab` is 'type' (From Computer), 82 82 * 'type_url' (From URL), or, if the tab does not exist (i.e., has not 83 * been registered via the 'media_upload_tabs'filter.83 * been registered via the {@see 'media_upload_tabs'} filter. 84 84 * 85 85 * @since 2.5.0 … … 91 91 * (pre-3.5.0) media popup. 92 92 * 93 * The dynamic portion of the hook name, $tab, refers to the specific93 * The dynamic portion of the hook name, `$tab`, refers to the specific 94 94 * media upload tab. Possible values include 'library' (Media Library), 95 * or any custom tab registered via the 'media_upload_tabs'filter.95 * or any custom tab registered via the {@see 'media_upload_tabs'} filter. 96 96 * 97 97 * @since 2.5.0 -
trunk/src/wp-admin/plugin-install.php
r29829 r30649 58 58 * Fires before each tab on the Install Plugins screen is loaded. 59 59 * 60 * The dynamic portion of the action hook, $tab, allows for targeting60 * The dynamic portion of the action hook, `$tab`, allows for targeting 61 61 * individual tabs, for instance 'install_plugins_pre_plugin-information'. 62 62 * … … 118 118 * Fires after the plugins list table in each tab of the Install Plugins screen. 119 119 * 120 * The dynamic portion of the action hook, $tab, allows for targeting120 * The dynamic portion of the action hook, `$tab`, allows for targeting 121 121 * individual tabs, for instance 'install_plugins_plugin-information'. 122 122 * … … 125 125 * @param int $paged The current page number of the plugins list table. 126 126 */ 127 ?> 128 <?php do_action( "install_plugins_$tab", $paged ); ?> 127 do_action( "install_plugins_$tab", $paged ); ?> 129 128 </div> 130 129 <?php -
trunk/src/wp-admin/theme-install.php
r29959 r30649 56 56 wp_enqueue_script( 'theme' ); 57 57 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 current62 * theme install tab. Possible values are 'dashboard', 'search', 'upload',63 * 'featured', 'new', or 'updated'.64 *65 * @since 2.8.066 */67 58 if ( $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 */ 68 68 do_action( "install_themes_pre_{$tab}" ); 69 69 } … … 178 178 <br class="clear" /> 179 179 <?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 current184 * theme install tab. Possible values are 'dashboard', 'search', 'upload',185 * 'featured', 'new', or 'updated'.186 *187 * @since 2.8.0188 *189 * @param int $paged Number of the current page of results being viewed.190 */191 180 if ( $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 */ 192 192 do_action( "install_themes_{$tab}", $paged ); 193 193 } -
trunk/src/wp-admin/update-core.php
r30384 r30649 650 650 * Fires for each custom update action on the WordPress Updates screen. 651 651 * 652 * The dynamic portion of the hook name, $action, refers to the652 * The dynamic portion of the hook name, `$action`, refers to the 653 653 * passed update action. The hook fires in lieu of all available 654 654 * default update actions. -
trunk/src/wp-admin/update.php
r29634 r30649 262 262 * Fires when a custom plugin or theme update request is received. 263 263 * 264 * The dynamic portion of the hook name, $action, refers to the action264 * The dynamic portion of the hook name, `$action`, refers to the action 265 265 * provided in the request for wp-admin/update.php. Can be used to 266 266 * provide custom update functionality for themes and plugins. -
trunk/src/wp-admin/user-edit.php
r30632 r30649 437 437 ?> 438 438 <tr class="user-<?php echo $name; ?>-wrap"> 439 <?php 440 /** 441 * Filter a user contactmethod label. 442 * 443 * The dynamic portion of the filter hook, $name, refers to 444 * each of the keys in the contactmethods array. 445 * 446 * @since 2.9.0 447 * 448 * @param string $desc The translatable label for the contactmethod. 449 */ 450 ?> 451 <th><label for="<?php echo $name; ?>"><?php echo apply_filters( "user_{$name}_label", $desc ); ?></label></th> 439 <th><label for="<?php echo $name; ?>"> 440 <?php 441 /** 442 * Filter a user contactmethod label. 443 * 444 * The dynamic portion of the filter hook, `$name`, refers to 445 * each of the keys in the contactmethods array. 446 * 447 * @since 2.9.0 448 * 449 * @param string $desc The translatable label for the contactmethod. 450 */ 451 echo apply_filters( "user_{$name}_label", $desc ); 452 ?> 453 </label></th> 452 454 <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></td> 453 455 </tr>
Note: See TracChangeset
for help on using the changeset viewer.