mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via ['capabilities'] (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -318,7 +318,7 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
|
||||
foreach ( $tax_names as $tax_name ) {
|
||||
$taxonomy_obj = get_taxonomy($tax_name);
|
||||
if( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->assign_cap ) )
|
||||
if( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) )
|
||||
$new_terms = $tax_input[$tax_name];
|
||||
else
|
||||
$new_terms = array();
|
||||
|
||||
Reference in New Issue
Block a user