Possible issue untrashing topics
I run a couple of different bbpress installations, of course they’re both up-to-date (2.5.4)
I noticed that on both installations, when you trash a topic, and you try to “un-trashit” you receive a nonce error.
I’m not sure if this issue depends on my personal configuration, but of course i disabled all other plugins and used a fresh wp install.
Being a PHP developer I digged inside the core files of bbpress and I noticed that in includes/topics.php on line 818 the nonce is generated with
wp_nonce_url( add_query_arg( array( '_wp_http_referer' => add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ) ), admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $topic->ID ) ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID )
so the “sent” nonce is basically untrash-topic_<ID>, while the nonce check on wordpress (on post.php line 265 is:
check_admin_referer('untrash-post_' . $post_id);
or basically untrash-post_<ID>.
Can anyone tell me if other people found out a similar issue untrashing topics or is it just me? Thanks in advance for your support
- You must be logged in to reply to this topic.