WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/03/2015 04:41:18 PM (6 years ago)
Author:
obenland
Message:

Use a less element-specific class name for links within page titles.

After [32974] these links are no longer within an h2, making the class name
inaccurate. add-new-h1 has the potential to expose the same problem for in a
possible future change.

Fixes #31650.

File:
1 edited

Legend:

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

    r32974 r33067  
    7676        echo esc_html( $title );
    7777        if ( current_user_can( 'upload_files' ) ) { ?>
    78             <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
     78            <a href="media-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
    7979        }
    8080        ?>
     
    211211echo esc_html( $title );
    212212if ( current_user_can( 'upload_files' ) ) { ?>
    213     <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
     213    <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
    214214}
    215215if ( ! empty( $_REQUEST['s'] ) )
Note: See TracChangeset for help on using the changeset viewer.