You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(was not transferred over from NPR repo)
anytime wp_trash_post or trash_post actions are called, nprstory_api_delete is called -- including when someone is deleting their own posts!!! The result is a big fat error message, including when there's nothing to do with the NPR Story API. Offending code below: function nprstory_api_delete ( $post_ID ) { if ( ! current_user_can( 'delete_others_posts' ) ) { wp_die( __('You do not have permission to delete posts in the NPR API. Users that can delete other users\' posts have that ability: administrators and editors.'), __('NPR Story API Error'), 403 ); }
The text was updated successfully, but these errors were encountered:
(was not transferred over from NPR repo)
anytime wp_trash_post or trash_post actions are called, nprstory_api_delete is called -- including when someone is deleting their own posts!!! The result is a big fat error message, including when there's nothing to do with the NPR Story API. Offending code below:
function nprstory_api_delete ( $post_ID ) { if ( ! current_user_can( 'delete_others_posts' ) ) { wp_die( __('You do not have permission to delete posts in the NPR API. Users that can delete other users\' posts have that ability: administrators and editors.'), __('NPR Story API Error'), 403 ); }
The text was updated successfully, but these errors were encountered: