Support » Plugin: WP Clean Up » NextGEN Gallery Compatibility Solution

  • Hi, as others stated, this plugin breaks NG Gallery. Changing line 21 of wp_clean_up_admin.php to:

    $wcu_sql = "DELETE FROM $wpdb->posts WHERE post_status = 'draft' AND post_type NOT LIKE '%ngg_%' AND post_type NOT LIKE '%display_type&' AND post_type NOT LIKE '%displayed_gallery%'";

    …correctly solves the problem. If this query is run when NG Gallery is detected as active, the compatibility problem will disappear.

    Note that the plugin that is “doing it wrong” is NGG.

    https://wordpress.org/plugins/wp-clean-up/

Viewing 1 replies (of 1 total)
  • There was a typo (“&” instead of “%”):

    $wcu_sql = "DELETE FROM $wpdb->posts WHERE post_status = 'draft' AND post_type NOT LIKE '%ngg_%' AND post_type NOT LIKE '%display_type%' AND post_type NOT LIKE '%displayed_gallery%'"

Viewing 1 replies (of 1 total)
  • The topic ‘NextGEN Gallery Compatibility Solution’ is closed to new replies.