wp/wp-admin/admin-footer.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    13 
    13 
    14 <div class="clear"></div></div><!-- wpbody-content -->
    14 <div class="clear"></div></div><!-- wpbody-content -->
    15 <div class="clear"></div></div><!-- wpbody -->
    15 <div class="clear"></div></div><!-- wpbody -->
    16 <div class="clear"></div></div><!-- wpcontent -->
    16 <div class="clear"></div></div><!-- wpcontent -->
    17 
    17 
    18 <div id="wpfooter">
    18 <div id="wpfooter" role="contentinfo">
    19 	<?php
    19 	<?php
    20 	/**
    20 	/**
    21 	 * Fires after the opening tag for the admin footer.
    21 	 * Fires after the opening tag for the admin footer.
    22 	 *
    22 	 *
    23 	 * @since 2.5.0
    23 	 * @since 2.5.0
    24 	 */
    24 	 */
    25 	do_action( 'in_admin_footer' );
    25 	do_action( 'in_admin_footer' );
    26 	?>
    26 	?>
    27 	<p id="footer-left" class="alignleft">
    27 	<p id="footer-left" class="alignleft">
    28 		<?php
    28 		<?php
       
    29 		$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
    29 		/**
    30 		/**
    30 		 * Filter the "Thank you" text displayed in the admin footer.
    31 		 * Filter the "Thank you" text displayed in the admin footer.
    31 		 *
    32 		 *
    32 		 * @since 2.8.0
    33 		 * @since 2.8.0
    33 		 * @param string The content that will be printed.
    34 		 *
       
    35 		 * @param string $text The content that will be printed.
    34 		 */
    36 		 */
    35 		echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
    37 		echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );
    36 		?>
    38 		?>
    37 	</p>
    39 	</p>
    38 	<p id="footer-upgrade" class="alignright">
    40 	<p id="footer-upgrade" class="alignright">
    39 		<?php
    41 		<?php
    40 		/**
    42 		/**
    41 		 * Filter the version/update text displayed in the admin footer.
    43 		 * Filter the version/update text displayed in the admin footer.
    42 		 *
    44 		 *
    43 		 * @see core_update_footer() WordPress prints the current version and update information,
    45 		 * WordPress prints the current version and update information,
    44 		 *	using core_update_footer() at priority 10.
    46 		 * using core_update_footer() at priority 10.
    45 		 *
    47 		 *
    46 		 * @since 2.3.0
    48 		 * @since 2.3.0
    47 		 * @param string The content that will be printed.
    49 		 *
       
    50 		 * @see core_update_footer()
       
    51 		 *
       
    52 		 * @param string $content The content that will be printed.
    48 		 */
    53 		 */
    49 		echo apply_filters( 'update_footer', '' );
    54 		echo apply_filters( 'update_footer', '' );
    50 		?>
    55 		?>
    51 	</p>
    56 	</p>
    52 	<div class="clear"></div>
    57 	<div class="clear"></div>
    54 <?php
    59 <?php
    55 /**
    60 /**
    56  * Print scripts or data before the default footer scripts.
    61  * Print scripts or data before the default footer scripts.
    57  *
    62  *
    58  * @since 1.2.0
    63  * @since 1.2.0
    59  * @param string The data to print.
    64  *
       
    65  * @param string $data The data to print.
    60  */
    66  */
    61 do_action('admin_footer', '');
    67 do_action( 'admin_footer', '' );
    62 
    68 
    63 /**
    69 /**
    64  * Prints any scripts and data queued for the footer.
    70  * Prints any scripts and data queued for the footer.
    65  *
    71  *
    66  * @since 2.8.0
    72  * @since 2.8.0
    67  */
    73  */
    68 do_action('admin_print_footer_scripts');
    74 do_action( 'admin_print_footer_scripts' );
    69 
    75 
    70 /**
    76 /**
    71  * Print scripts or data after the default footer scripts.
    77  * Print scripts or data after the default footer scripts.
    72  *
    78  *
       
    79  * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`,
       
    80  * refers to the global hook suffix of the current page.
       
    81  *
    73  * @since 2.8.0
    82  * @since 2.8.0
    74  *
    83  *
    75  * @param string $GLOBALS['hook_suffix'] The current admin page.
    84  * @param string $hook_suffix The current admin page.
    76  */
    85  */
    77 do_action("admin_footer-" . $GLOBALS['hook_suffix']);
    86 do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
    78 
    87 
    79 // get_site_option() won't exist when auto upgrading from <= 2.7
    88 // get_site_option() won't exist when auto upgrading from <= 2.7
    80 if ( function_exists('get_site_option') ) {
    89 if ( function_exists('get_site_option') ) {
    81 	if ( false === get_site_option('can_compress_scripts') )
    90 	if ( false === get_site_option('can_compress_scripts') )
    82 		compression_test();
    91 		compression_test();