WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP User Frontend] Users can't delete their posts

[Resolved] [Plugin: WP User Frontend] Users can't delete their posts

Viewing 2 replies - 1 through 2 (of 2 total)
  • Creator2

    @creator2

    Hi,

    please add global $userdata;
    right under function delete_post() (line 230) in wpuf-dashboard.php. Looks like the function didn’t have access to the info about users.

    e.i.

    function delete_post() {
    global $userdata;

    $nonce = $_REQUEST[‘_wpnonce’];
    if ( !wp_verify_nonce( $nonce, ‘wpuf_del’ ) ) {
    die( “Security check” );
    }

    adnan0777

    @adnan0777

    Thanks Creator2. That solved the problem 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WP User Frontend] Users can't delete their posts’ is closed to new replies.