WordPress.org

Make WordPress Core

Ticket #21422: admin-footer-micro-optimization.patch

File admin-footer-micro-optimization.patch, 1.0 KB (added by TobiasBg, 21 months ago)

Patch to remove unnecessary implode() call and two local variables

  • wp-admin/admin-footer.php

     
    1818<div id="footer"> 
    1919<?php do_action( 'in_admin_footer' ); ?> 
    2020<p id="footer-left" class="alignleft"><?php 
    21 $upgrade = apply_filters( 'update_footer', '' ); 
    22 $footer_text = array( 
    23         '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>', 
    24 ); 
    25 echo apply_filters( 'admin_footer_text', implode( ' &bull; ', $footer_text ) ); 
    26 unset( $footer_text ); 
     21echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' ); 
    2722?></p> 
    28 <p id="footer-upgrade" class="alignright"><?php echo $upgrade; ?></p> 
     23<p id="footer-upgrade" class="alignright"><?php 
     24echo apply_filters( 'update_footer', '' ); 
     25?></p> 
    2926<div class="clear"></div> 
    3027</div> 
    3128<?php