Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jQuery( function($) {
$(this).attr( 'aria-selected', 'true' ).removeAttr( 'tabindex' );
$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
$('.tabs-panel').hide();
$(t).show();
$( document ).find( t ).show();
if ( '#categories-all' == t ) {
deleteUserSetting('cats');
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/plugin-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jQuery( function( $ ) {

// Flip the content.
$( '#section-holder div.section' ).hide(); // Hide 'em all.
$( '#section-' + tab ).show();
$( '#section-' + CSS.escape( tab ) ).show();
});

/*
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ jQuery( function($) {
$(this).attr( 'aria-selected', 'true' ).removeAttr( 'tabindex' );
$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
$('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide();
$(t).show();
$( document ).find( t ).show();
if ( '#' + taxonomy + '-all' == t ) {
deleteUserSetting( settingName );
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/site-health.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jQuery( function( $ ) {
var hash = window.location.hash;

if ( hash ) {
var requestedPanel = $( hash );
var requestedPanel = $( document ).find( hash );
Comment thread
sirreal marked this conversation as resolved.
Resolved

if ( requestedPanel.is( '.health-check-accordion-trigger' ) ) {
requestedPanel.trigger( 'click' );
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/wp/media/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ media.transition = function( selector, sensitivity ) {

if ( $.support.transition ) {
if ( ! (selector instanceof $) ) {
selector = $( selector );
selector = $( document ).find( selector );
}

// Resolve the deferred when the first element finishes animating.
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/wp/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
*
*/
wp.updates.addAdminNotice = function( data ) {
var $notice = $( data.selector ),
var $notice = $( document ).find( data.selector ),
$headerEnd = $( '.wp-header-end' ),
$adminNotice;

Expand Down
2 changes: 1 addition & 1 deletion src/js/media/views/frame/edit-attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ EditAttachments = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.EditAtta
* @param {string} which A CSS selector to target the button to focus.
*/
focusNavButton: function( which ) {
$( which ).trigger( 'focus' );
$( document ).find( which ).trigger( 'focus' );
},

getCurrentIndex: function() {
Expand Down
Loading