WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
[resolved] Users can't delete their posts (3 posts)

  1. adnan0777
    Member
    Posted 1 year ago #

    When ever an user click on delete post from the Dashboard, the following message shows up:

    You are not the post author. Cheeting huh!

    The user was the author of the post and editing-deleting was enabled from the WPUF settings.
    Please help me to resolve this problem.

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. Creator2
    Member
    Posted 1 year ago #

    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" );
    }

  3. adnan0777
    Member
    Posted 1 year ago #

    Thanks Creator2. That solved the problem :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.