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/themes.php

    r32974 r33067  
    128128        <span class="title-count theme-count"><?php echo count( $themes ); ?></span>
    129129    <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    130         <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
     130        <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
    131131    <?php endif; ?>
    132132    </h1>
Note: See TracChangeset for help on using the changeset viewer.