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. Built from https://develop.svn.wordpress.org/trunk@33067 git-svn-id: http://core.svn.wordpress.org/trunk@33038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -70,7 +70,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
|
||||
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
|
||||
|
||||
<?php if ( isset( $_GET['added'] ) ) : ?>
|
||||
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
|
||||
|
||||
Reference in New Issue
Block a user