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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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” );
    }

    Thanks Creator2. That solved the problem 🙂

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