WordPress.org

Make WordPress Core

Ticket #26601: 26601.upload.patch

File 26601.upload.patch, 1.6 KB (added by joedolson, 3 years ago)

Patch for media uploads screen.

  • wp-admin/upload.php

     
    7373        require_once( ABSPATH . 'wp-admin/admin-header.php' );
    7474        ?>
    7575        <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
    76                 <h1>
     76                <h1 class="wp-heading-inline">
    7777                <?php
    7878                echo esc_html( $title );
     79                ?>
     80                </h1>
     81                <?php
    7982                if ( current_user_can( 'upload_files' ) ) { ?>
    8083                        <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
    8184                }
    8285                ?>
    83                 </h1>
     86                <hr class="wp-header-end">
    8487                <div class="error hide-if-js">
    8588                        <p><?php printf(
    8689                                /* translators: %s: list view URL */
     
    221224?>
    222225
    223226<div class="wrap">
    224 <h1>
     227<h1 class="wp-heading-inline">
    225228<?php
    226229echo esc_html( $title );
     230?>
     231</h1>
     232<?php
    227233if ( current_user_can( 'upload_files' ) ) { ?>
    228         <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
     234        <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
    229235}
    230236if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    231237        /* translators: %s: search keywords */
     
    232238        printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
    233239}
    234240?>
    235 </h1>
     241<hr class="wp-header-end">
    236242
     243
    237244<?php
    238245$message = '';
    239246if ( ! empty( $_GET['posted'] ) ) {