wp/wp-admin/admin-footer.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
     7  */
     7  */
     8 
     8 
     9 // don't load directly
     9 // don't load directly
    10 if ( !defined('ABSPATH') )
    10 if ( !defined('ABSPATH') )
    11 	die('-1');
    11 	die('-1');
       
    12 
       
    13 /**
       
    14  * @global string $hook_suffix
       
    15  */
       
    16 global $hook_suffix;
    12 ?>
    17 ?>
    13 
    18 
    14 <div class="clear"></div></div><!-- wpbody-content -->
    19 <div class="clear"></div></div><!-- wpbody-content -->
    15 <div class="clear"></div></div><!-- wpbody -->
    20 <div class="clear"></div></div><!-- wpbody -->
    16 <div class="clear"></div></div><!-- wpcontent -->
    21 <div class="clear"></div></div><!-- wpcontent -->
    26 	?>
    31 	?>
    27 	<p id="footer-left" class="alignleft">
    32 	<p id="footer-left" class="alignleft">
    28 		<?php
    33 		<?php
    29 		$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
    34 		$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
    30 		/**
    35 		/**
    31 		 * Filter the "Thank you" text displayed in the admin footer.
    36 		 * Filters the "Thank you" text displayed in the admin footer.
    32 		 *
    37 		 *
    33 		 * @since 2.8.0
    38 		 * @since 2.8.0
    34 		 *
    39 		 *
    35 		 * @param string $text The content that will be printed.
    40 		 * @param string $text The content that will be printed.
    36 		 */
    41 		 */
    38 		?>
    43 		?>
    39 	</p>
    44 	</p>
    40 	<p id="footer-upgrade" class="alignright">
    45 	<p id="footer-upgrade" class="alignright">
    41 		<?php
    46 		<?php
    42 		/**
    47 		/**
    43 		 * Filter the version/update text displayed in the admin footer.
    48 		 * Filters the version/update text displayed in the admin footer.
    44 		 *
    49 		 *
    45 		 * WordPress prints the current version and update information,
    50 		 * WordPress prints the current version and update information,
    46 		 * using core_update_footer() at priority 10.
    51 		 * using core_update_footer() at priority 10.
    47 		 *
    52 		 *
    48 		 * @since 2.3.0
    53 		 * @since 2.3.0
    56 	</p>
    61 	</p>
    57 	<div class="clear"></div>
    62 	<div class="clear"></div>
    58 </div>
    63 </div>
    59 <?php
    64 <?php
    60 /**
    65 /**
    61  * Print scripts or data before the default footer scripts.
    66  * Prints scripts or data before the default footer scripts.
    62  *
    67  *
    63  * @since 1.2.0
    68  * @since 1.2.0
    64  *
    69  *
    65  * @param string $data The data to print.
    70  * @param string $data The data to print.
    66  */
    71  */
    67 do_action( 'admin_footer', '' );
    72 do_action( 'admin_footer', '' );
       
    73 
       
    74 /**
       
    75  * Prints scripts and data queued for the footer.
       
    76  *
       
    77  * The dynamic portion of the hook name, `$hook_suffix`,
       
    78  * refers to the global hook suffix of the current page.
       
    79  *
       
    80  * @since 4.6.0
       
    81  */
       
    82 do_action( "admin_print_footer_scripts-{$hook_suffix}" );
    68 
    83 
    69 /**
    84 /**
    70  * Prints any scripts and data queued for the footer.
    85  * Prints any scripts and data queued for the footer.
    71  *
    86  *
    72  * @since 2.8.0
    87  * @since 2.8.0
    73  */
    88  */
    74 do_action( 'admin_print_footer_scripts' );
    89 do_action( 'admin_print_footer_scripts' );
    75 
    90 
    76 /**
    91 /**
    77  * Print scripts or data after the default footer scripts.
    92  * Prints scripts or data after the default footer scripts.
    78  *
    93  *
    79  * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`,
    94  * The dynamic portion of the hook name, `$hook_suffix`,
    80  * refers to the global hook suffix of the current page.
    95  * refers to the global hook suffix of the current page.
    81  *
    96  *
    82  * @since 2.8.0
    97  * @since 2.8.0
    83  *
       
    84  * @param string $hook_suffix The current admin page.
       
    85  */
    98  */
    86 do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
    99 do_action( "admin_footer-{$hook_suffix}" );
    87 
   100 
    88 // get_site_option() won't exist when auto upgrading from <= 2.7
   101 // get_site_option() won't exist when auto upgrading from <= 2.7
    89 if ( function_exists('get_site_option') ) {
   102 if ( function_exists('get_site_option') ) {
    90 	if ( false === get_site_option('can_compress_scripts') )
   103 	if ( false === get_site_option('can_compress_scripts') )
    91 		compression_test();
   104 		compression_test();