Make WordPress Core

Changeset 39535


Ignore:
Timestamp:
12/07/2016 06:47:47 PM (8 years ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Plugins screen heading.

See #26601.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r39140 r39535  
    22602260                    $oldSubTitle.replaceWith( $subTitle );
    22612261                } else {
    2262                     $( '.wrap h1' ).append( $subTitle );
     2262                    $( '.wp-header-end' ).before( $subTitle );
    22632263                }
    22642264
  • trunk/src/wp-admin/plugins.php

    r38958 r39535  
    492492
    493493<div class="wrap">
    494 <h1><?php echo esc_html( $title );
     494<h1 class="wp-heading-inline"><?php
     495echo esc_html( $title );
     496?></h1>
     497
     498<?php
    495499if ( ( ! 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>
     500    <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>
    497501<?php
    498502}
     
    503507}
    504508?>
    505 </h1>
     509
     510<hr class="wp-header-end">
    506511
    507512<?php
Note: See TracChangeset for help on using the changeset viewer.