WordPress.org

Make WordPress Core

Ticket #26601: 26601.plugin-install.diff

File 26601.plugin-install.diff, 1.5 KB (added by afercia, 3 years ago)
  • src/wp-admin/plugin-install.php

     
    111111include(ABSPATH . 'wp-admin/admin-header.php');
    112112?>
    113113<div class="wrap <?php echo esc_attr( "plugin-install-tab-$tab" ); ?>">
    114 <h1>
    115         <?php
    116         echo esc_html( $title );
    117         if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
    118                 printf( ' <a href="%s" class="upload-view-toggle page-title-action"><span class="upload">%s</span><span class="browse">%s</span></a>',
    119                         ( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ),
    120                         __( 'Upload Plugin' ),
    121                         __( 'Browse Plugins' )
    122                 );
    123         }
    124         ?>
    125 </h1>
     114<h1 class="wp-heading-inline"><?php
     115echo esc_html( $title );
     116?></h1>
    126117
    127118<?php
     119if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
     120        printf( ' <a href="%s" class="upload-view-toggle page-title-action"><span class="upload">%s</span><span class="browse">%s</span></a>',
     121                ( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ),
     122                __( 'Upload Plugin' ),
     123                __( 'Browse Plugins' )
     124        );
     125}
     126?>
     127
     128<hr class="wp-header-end">
     129
     130<?php
    128131/*
    129132 * Output the upload plugin form on every non-upload plugin install screen, so it can be
    130133 * displayed via JavaScript rather then opening up the devoted upload plugin page.