Wrong param at wp_delete_attachment()
-
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
, notstring
: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.