• Resolved Skynin

    (@skynin)


    Hi!

    I found some errors and notices
    Delete Duplicate Posts v 4.0.2

    wp-admin/tools.php?page=delete-duplicate-posts.php
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) ) group by post_title having count(*) > 1 ) as good_rows o’ at line 9]
    select bad_rows.ID, bad_rows.post_title, post_type from sb_posts as bad_rows inner join ( select post_title,id, MIN(id) as min_id from sb_posts WHERE ( post_status = ‘publish’ AND post_type in () ) group by post_title having count(*) > 1 ) as good_rows on good_rows.post_title = bad_rows.post_title and good_rows.min_id <> bad_rows.id and (bad_rows.post_status=’publish’ OR bad_rows.post_status=’draft’) order by post_title,id ;

    and fixed other:
    in getOptions()
    $this->options = array_merge(
    [‘ddp_enabled’ => null, ‘ddp_pts’ => null, ‘ddp_limit’ => null, ‘ddp_statusmail’ => null, ‘ddp_keep’ => null, ‘ddp_schedule’ => null],
    $theOptions);

    // ~ line 504
    foreach ($post_types as $pt) {
    $checked = false;
    if (!empty($pt) && is_array($checked_post_types))
    $checked = array_search($pt,$checked_post_types,true);

  • The topic ‘Some minor fix’ is closed to new replies.