Make WordPress Core

Changeset 17879


Ignore:
Timestamp:
05/12/2011 01:45:42 AM (13 years ago)
Author:
nacin
Message:

Make the footer text code a bit easier to read. see #17383, #17384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-footer.php

    r17878 r17879  
    2020do_action( 'in_admin_footer' );
    2121$upgrade = apply_filters( 'update_footer', '' );
    22 echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.').'</span> &bull; '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' &bull; '.sprintf( __( '<a href="%s">Rights</a>' ), admin_url( 'rights.php' ) ).' &bull; '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>').' &bull; '.sprintf(__('<a href="%s">Credits</a>'), admin_url('credits.php') ) ); ?></p>
     22$footer_text = array(
     23    '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>',
     24    __( '<a href="http://codex.wordpress.org/">Documentation</a>' ),
     25    sprintf( __( '<a href="%s">Rights</a>' ), admin_url( 'rights.php' ) ),
     26    __('<a href="http://wordpress.org/support/forum/4">Feedback</a>'),
     27    sprintf(__('<a href="%s">Credits</a>'), admin_url('credits.php') ),
     28);
     29echo apply_filters( 'admin_footer_text', implode( ' &bull; ', $footer_text ) );
     30unset( $footer_text );
     31?></p>
    2332<p id="footer-upgrade" class="alignright"><?php echo $upgrade; ?></p>
    2433<div class="clear"></div>
Note: See TracChangeset for help on using the changeset viewer.