Use a more generous selector when setting up tag suggestion.
This allows taxonomy metaboxes to be registered in a greater variety of locations on the Dashboard. Props johnjamesjacoby.. Fixes #35349. git-svn-id: https://develop.svn.wordpress.org/trunk@36227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8dbc62d267
commit
ca642a8562
@ -412,7 +412,7 @@ jQuery(document).ready( function($) {
|
|||||||
if ( $('#tagsdiv-post_tag').length ) {
|
if ( $('#tagsdiv-post_tag').length ) {
|
||||||
window.tagBox && window.tagBox.init();
|
window.tagBox && window.tagBox.init();
|
||||||
} else {
|
} else {
|
||||||
$('#side-sortables, #normal-sortables, #advanced-sortables').children('div.postbox').each(function(){
|
$('.meta-box-sortables').children('div.postbox').each(function(){
|
||||||
if ( this.id.indexOf('tagsdiv-') === 0 ) {
|
if ( this.id.indexOf('tagsdiv-') === 0 ) {
|
||||||
window.tagBox && window.tagBox.init();
|
window.tagBox && window.tagBox.init();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user