mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Make Categories/Tags columns on edit.php properly aware of post types. Also ensure AJAX add-tag on edit-tags.php is given the post type. fixes #14061 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -552,7 +552,7 @@ case 'add-link-cat' : // From Blogroll -> Categories
|
||||
break;
|
||||
case 'add-tag' : // From Manage->Tags
|
||||
check_ajax_referer( 'add-tag' );
|
||||
|
||||
$post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post';
|
||||
$taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
|
||||
$tax = get_taxonomy($taxonomy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user