• Resolved Ov3rfly

    (@ov3rfly)


    When evaluation plugins for a client, we also took a quick look at this plugin and its code and saw this wrong parameter, did not test any further.

    wp_delete_attachment( $attachment->ID, 'true' );

    Second parameter should be bool, not string:

    wp_delete_attachment( $attachment->ID, true );

    Delete Post with Attachments 1.1.2

  • The topic ‘Wrong param at wp_delete_attachment()’ is closed to new replies.