mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Fixes for hooks documentation in wp-admin/admin-footer.php.
Adds some new lines, some hook-line spacing, docs-specific variables, and other language tweaks. See #26869, #25229, [25252]. Built from https://develop.svn.wordpress.org/trunk@27145 git-svn-id: http://core.svn.wordpress.org/trunk@27012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f6ef530ce
commit
7d9b9027bd
@ -30,7 +30,8 @@ if ( !defined('ABSPATH') )
|
||||
* Filter the "Thank you" text displayed in the admin footer.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @param string The content that will be printed.
|
||||
*
|
||||
* @param string $text The content that will be printed.
|
||||
*/
|
||||
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
|
||||
?>
|
||||
@ -40,11 +41,14 @@ if ( !defined('ABSPATH') )
|
||||
/**
|
||||
* Filter the version/update text displayed in the admin footer.
|
||||
*
|
||||
* @see core_update_footer() WordPress prints the current version and update information,
|
||||
* WordPress prints the current version and update information,
|
||||
* using core_update_footer() at priority 10.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @param string The content that will be printed.
|
||||
*
|
||||
* @see core_update_footer()
|
||||
*
|
||||
* @param string $content The content that will be printed.
|
||||
*/
|
||||
echo apply_filters( 'update_footer', '' );
|
||||
?>
|
||||
@ -56,7 +60,8 @@ if ( !defined('ABSPATH') )
|
||||
* Print scripts or data before the default footer scripts.
|
||||
*
|
||||
* @since 1.2.0
|
||||
* @param string The data to print.
|
||||
*
|
||||
* @param string $data The data to print.
|
||||
*/
|
||||
do_action( 'admin_footer', '' );
|
||||
|
||||
@ -70,9 +75,12 @@ 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'],
|
||||
* refers to the global hook suffix of the current page.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $GLOBALS['hook_suffix'] The current admin page.
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user