Ticket #54400: 54400.diff
File 54400.diff, 1.5 KB (added by , 4 years ago) |
---|
-
src/wp-admin/plugins.php
724 724 </h1> 725 725 726 726 <?php 727 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) { 727 if ( current_user_can( 'install_plugins' ) ) { 728 $install_url = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' ); 728 729 ?> 729 <a href="<?php echo self_admin_url( 'plugin-install.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>730 <a href="<?php echo esc_url( $install_url ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a> 730 731 <?php 731 732 } 732 733 -
src/wp-admin/themes.php
250 250 <span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '…' ) : count( $themes ); ?></span> 251 251 </h1> 252 252 253 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 254 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a> 253 <?php if ( current_user_can( 'install_themes' ) ) : 254 $install_url = is_multisite() ? network_admin_url( 'theme-install.php' ) : admin_url( 'theme-install.php' ); 255 ?> 256 <a href="<?php echo esc_url( $install_url ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a> 255 257 <?php endif; ?> 256 258 257 259 <form class="search-form"></form>