[wp-trac] [WordPress Trac] #41744: wp_insert_post() function doesn`t set the taxonomies from AJAX call
WordPress Trac
noreply at wordpress.org
Mon Aug 28 15:29:32 UTC 2017
#41744: wp_insert_post() function doesn`t set the taxonomies from AJAX call
-------------------------------+-----------------------------
Reporter: WeddyWood | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.8.1
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
'''wp_insert_post()''' function doesn`t set the taxonomies from AJAX call
because of:
{{{#!php
<?php
if ( current_user_can( $taxonomy_obj->cap->assign_terms ) ) {
wp_set_post_terms( $post_ID, $tags, $taxonomy );
}
}}}
'''current_user_can()''' does not work with AJAX
''Reference: wp-includes/post.php:3357''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41744>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list