Correct misleading verbiage in 'print' hook docs.

Standardizes 'print' hook docs on the concept that hooks are fired when scripts and styles are printed.

Props ericlewis for the initial patch.
Fixes #26924.


git-svn-id: https://develop.svn.wordpress.org/trunk@27695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes (DrewAPicture)
2014-03-25 08:04:44 +00:00
parent a00d98a8c2
commit 0e7a34444d
6 changed files with 20 additions and 16 deletions

View File

@@ -442,7 +442,7 @@ isRtl = <?php echo (int) is_rtl(); ?>;
do_action( 'admin_enqueue_scripts', 'media-upload-popup' );
/**
* Print admin styles enqueued for the legacy (pre-3.5.0) media upload popup.
* Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
*
* @since 2.9.0
*/
@@ -452,7 +452,7 @@ isRtl = <?php echo (int) is_rtl(); ?>;
do_action( 'admin_print_styles' );
/**
* Print admin scripts enqueued for the legacy (pre-3.5.0) media upload popup.
* Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
*
* @since 2.9.0
*/
@@ -462,8 +462,8 @@ isRtl = <?php echo (int) is_rtl(); ?>;
do_action( 'admin_print_scripts' );
/**
* Print scripts enqueued for the admin header for the legacy (pre-3.5.0)
* media upload popup.
* Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
* media upload popup are printed.
*
* @since 2.9.0
*/

View File

@@ -1514,9 +1514,7 @@ if ( is_rtl() )
?>
</head>
<?php
/** This filter is documented in wp-admin/admin-header.php */
?>
<?php /** This filter is documented in wp-admin/admin-header.php */ ?>
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
<script type="text/javascript">
//<![CDATA[