Make WordPress Core

Ticket #25229: admin-footer.diff

File admin-footer.diff, 2.2 KB (added by natejacobs, 11 years ago)

First pass at wp-admin/admin-footer.php

  • wp-admin/admin-footer.php

     
    1616<div class="clear"></div></div><!-- wpcontent -->
    1717
    1818<div id="wpfooter">
    19 <?php do_action( 'in_admin_footer' ); ?>
    20 <p id="footer-left" class="alignleft"><?php
     19<?php
     20/**
     21 * Fires immediatly after the opening div for the admin footer
     22 *
     23 * @since 2.5.0
     24 */
     25do_action( 'in_admin_footer' );
     26?>
     27<p id="footer-left" class="alignleft">
     28<?php
     29/**
     30 * Replace the text displayed in the left side of the admin footer
     31 *
     32 * @since unknown
     33 *
     34 * @param string The content that will be printed in the left footer of the admin pages.
     35 */     
    2136echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
    22 ?></p>
    23 <p id="footer-upgrade" class="alignright"><?php echo apply_filters( 'update_footer', '' ); ?></p>
     37?>
     38</p>
     39<p id="footer-upgrade" class="alignright">
     40<?php
     41/**
     42 * Replace the text displayed in the right side of the admin footer
     43 *
     44 * Need to use a priority higher than 10 in order to overwite the string passed in the function core_update_footer in wp-admin/includes/update.php.
     45 *
     46 * @since unknown
     47 *
     48 * @param string The content that will be printed in the right footer of the admin pages.
     49 */
     50echo apply_filters( 'update_footer', '' );
     51?>
     52</p>
    2453<div class="clear"></div>
    2554</div>
    2655<?php
     56/**
     57 * Prints scripts before the default footer scripts
     58 *
     59 * @since unknown
     60 *
     61 * @param string The script to print.
     62 */
    2763do_action('admin_footer', '');
     64
     65/**
     66 * Prints the default scripts followed by any external scripts that were queued for the footer
     67 *
     68 * @since unknown
     69 */
    2870do_action('admin_print_footer_scripts');
     71
     72/**
     73 * Prints scripts that should appear on a specific admin page only
     74 *
     75 * @since unknown
     76 *
     77 * @param type $GLOBALS['hook_suffix'] The specific admin page the script should appear on.
     78 */
    2979do_action("admin_footer-" . $GLOBALS['hook_suffix']);
    3080
    3181// get_site_option() won't exist when auto upgrading from <= 2.7