WordPress.org

Make WordPress Core

Changeset 39536


Ignore:
Timestamp:
12/07/16 19:05:02 (7 months ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Add Plugins screen heading.

See #26601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-install.php

    r39336 r39536  
    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> 
     117 
     118<?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"> 
    126129 
    127130<?php 
Note: See TracChangeset for help on using the changeset viewer.