WordPress.org

Make WordPress Core

Ticket #26601: 26601.plugins.patch

File 26601.plugins.patch, 1.3 KB (added by joedolson, 3 years ago)

Headings patch for plugins screen

  • wp-admin/plugins.php

     
    491491<?php endif; ?>
    492492
    493493<div class="wrap">
    494 <h1><?php echo esc_html( $title );
    495 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    496  <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     494<h1 class="wp-heading-inline">
     495<?php
     496        echo esc_html( $title );
     497?>
     498</h1>
    497499<?php
    498 }
     500        if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
     501         <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     502        <?php
     503        }
    499504
    500 if ( strlen( $s ) ) {
    501         /* translators: %s: search keywords */
    502         printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( urldecode( $s ) ) );
    503 }
     505        if ( strlen( $s ) ) {
     506                /* translators: %s: search keywords */
     507                printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( urldecode( $s ) ) );
     508        }
    504509?>
    505 </h1>
    506 
     510<hr class="wp-header-end">
    507511<?php
    508512/**
    509513 * Fires before the plugins list table is rendered.