mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-29 08:54:28 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@33067 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -663,7 +663,7 @@ Manage = MediaFrame.extend({
|
||||
this.$window = $( window );
|
||||
this.$adminBar = $( '#wpadminbar' );
|
||||
this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
|
||||
$( document ).on( 'click', '.add-new-h2', _.bind( this.addNewClickHandler, this ) );
|
||||
$( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) );
|
||||
|
||||
// Ensure core and media grid view UI is enabled.
|
||||
this.$el.addClass('wp-core-ui');
|
||||
|
||||
@@ -41,7 +41,7 @@ Manage = MediaFrame.extend({
|
||||
this.$window = $( window );
|
||||
this.$adminBar = $( '#wpadminbar' );
|
||||
this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
|
||||
$( document ).on( 'click', '.add-new-h2', _.bind( this.addNewClickHandler, this ) );
|
||||
$( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) );
|
||||
|
||||
// Ensure core and media grid view UI is enabled.
|
||||
this.$el.addClass('wp-core-ui');
|
||||
|
||||
Reference in New Issue
Block a user