diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 7e31623ffc..a3571afb58 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -77,7 +77,7 @@ if ( is_user_logged_in() ) { /** * Fires authenticated AJAX actions for logged-in users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.1.0 @@ -87,7 +87,7 @@ if ( is_user_logged_in() ) { /** * Fires non-authenticated AJAX actions for logged-out users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.8.0 diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 0619c86292..f7ef110392 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -76,7 +76,7 @@ do_action( 'admin_print_footer_scripts' ); /** * Print scripts or data after the default footer scripts. * - * The dynamic portion of the hook name, $GLOBALS['hook_suffix'], + * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`, * refers to the global hook suffix of the current page. * * @since 2.8.0 diff --git a/wp-admin/admin-post.php b/wp-admin/admin-post.php index f05cdf4e2d..cb92699efd 100644 --- a/wp-admin/admin-post.php +++ b/wp-admin/admin-post.php @@ -42,7 +42,7 @@ if ( ! wp_validate_auth_cookie() ) { /** * Fires on a non-authenticated admin post request for the given action. * - * The dynamic portion of the hook name, $action, refers to the given + * The dynamic portion of the hook name, `$action`, refers to the given * request action. * * @since 2.6.0 @@ -61,7 +61,7 @@ if ( ! wp_validate_auth_cookie() ) { /** * Fires on an authenticated admin post request for the given action. * - * The dynamic portion of the hook name, $action, refers to the given + * The dynamic portion of the hook name, `$action`, refers to the given * request action. * * @since 2.6.0 diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 65e17af9ce..793dc511f6 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -185,14 +185,14 @@ if ( isset($plugin_page) ) { * The load-* hook fires in a number of contexts. This hook is for plugin screens * where a callback is provided when the screen is registered. * - * The dynamic portion of the hook name, $page_hook, refers to a mixture of plugin + * The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin * page information including: * 1. The page type. If the plugin page is registered as a submenu page, such as for * Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'. * 2. A separator of '_page_'. * 3. The plugin basename minus the file extension. * - * Together, the three parts form the $page_hook. Citing the example above, + * Together, the three parts form the `$page_hook`. Citing the example above, * the hook name used would be 'load-settings_page_pluginbasename'. * * @see get_plugin_page_hook() @@ -223,7 +223,7 @@ if ( isset($plugin_page) ) { * The load-* hook fires in a number of contexts. This hook is for plugin screens * where the file to load is directly included, rather than the use of a function. * - * The dynamic portion of the hook name, $plugin_page, refers to the plugin basename. + * The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename. * * @see plugin_basename() * @@ -263,7 +263,7 @@ if ( isset($plugin_page) ) { /** * Fires before an importer screen is loaded. * - * The dynamic portion of the hook name, $importer, refers to the importer slug. + * The dynamic portion of the hook name, `$importer`, refers to the importer slug. * * @since 3.5.0 */ @@ -308,7 +308,7 @@ if ( isset($plugin_page) ) { * * The load-* hook fires in a number of contexts. This hook is for core screens. * - * The dynamic portion of the hook name, $pagenow, is a global variable + * The dynamic portion of the hook name, `$pagenow`, is a global variable * referring to the filename of the current page, such as 'admin.php', * 'post-new.php' etc. A complete hook for the latter would be * 'load-post-new.php'. @@ -338,8 +338,8 @@ if ( ! empty( $_REQUEST['action'] ) ) { /** * Fires when an 'action' request variable is sent. * - * The dynamic portion of the hook name, $_REQUEST['action'], - * refers to the action derived from the GET or POST request. + * The dynamic portion of the hook name, `$_REQUEST['action']`, + * refers to the action derived from the `GET` or `POST` request. * * @since 2.6.0 */ diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index 829a791af0..08d710d27b 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -104,7 +104,7 @@ if ( $_REQUEST['short'] ) { /** * Filter the returned ID of an uploaded attachment. * - * The dynamic portion of the hook name, $type, refers to the attachment type, + * The dynamic portion of the hook name, `$type`, refers to the attachment type, * such as 'image', 'audio', 'video', 'file', etc. * * @since 2.5.0 diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 52edd1e688..631cb90cf0 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -244,7 +244,7 @@ do_action( 'add_meta_boxes', $post_type, $post ); /** * Fires after all built-in meta boxes have been added, contextually for the given post type. * - * The dynamic portion of the hook, $post_type, refers to the post type of the post. + * The dynamic portion of the hook, `$post_type`, refers to the post type of the post. * * @since 3.0.0 * diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 71c2dd97d3..082086f62e 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -51,7 +51,7 @@ if ( 'category' == $taxonomy ) { /** * Fires before the Edit Term form for all taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to + * The dynamic portion of the hook name, `$taxonomy`, refers to * the taxonomy slug. * * @since 3.0.0 @@ -64,17 +64,18 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>