Fix tags suggest for bulk edit, for post_type post and taxonomy post_tag. Address all non-hierarchical taxonomies in 3.4. fixes #19716, props scottbasgaard.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ede56505b
commit
798ccd0c97
|
@ -117,7 +117,7 @@ inlineEditPost = {
|
||||||
if ( 'post' == type ) {
|
if ( 'post' == type ) {
|
||||||
// support multi taxonomies?
|
// support multi taxonomies?
|
||||||
tax = 'post_tag';
|
tax = 'post_tag';
|
||||||
$('tr.inline-editor textarea[name="tags_input"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
$('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
||||||
}
|
}
|
||||||
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -349,7 +349,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407', 1 );
|
$scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407', 1 );
|
||||||
|
|
||||||
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20111107', 1 );
|
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20111129', 1 );
|
||||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||||
'error' => __('Error while saving the changes.'),
|
'error' => __('Error while saving the changes.'),
|
||||||
'ntdeltitle' => __('Remove From Bulk Edit'),
|
'ntdeltitle' => __('Remove From Bulk Edit'),
|
||||||
|
|
Loading…
Reference in New Issue