WordPress.org

Make WordPress Core

Ticket #15785: 15785.link.patch

File 15785.link.patch, 1.1 KB (added by ocean90, 7 years ago)
  • wp-admin/plugins.php

     
    360360
    361361<div class="wrap">
    362362<?php screen_icon(); ?>
    363 <h2><?php echo esc_html( $title ); if ( current_user_can('install_plugins') ) { ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a><?php } ?></h2>
     363<h2>
     364<?php echo esc_html( $title );
     365if ( current_user_can('install_plugins') ) {
     366$href = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' ); ?>
     367<a href="<?php echo $href; ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     368<?php } ?>
     369</h2>
    364370
    365371<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
    366372
  • wp-admin/themes.php

     
    8383        <?php endif;
    8484else : ?>
    8585<h2>
    86 <?php esc_html_e( $title ); ?>
     86<?php echo esc_html( $title ); ?>
    8787<?php endif; ?>
    8888</h2>
    8989