• Resolved erwpacc

    (@erwpacc)


    in this file:
    wp-insert/includes/legal-pages/content.php

    this filter:
    add_filter(‘the_content’, ‘wp_insert_legal_filter_the_content’);

    is replacing my content with the privacy policy from this page:
    wp-insert/includes/legal-pages/data.php

    it appears as though the following conditional evaluates to true when an empty string is compared to an empty string:
    if(in_array($page_details[‘ID’], explode(‘,’, $options[‘privacy-policy’][‘pages’])))

    http://wordpress.org/extend/plugins/wp-insert/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Namith Jawahar

    (@namithjawahar)

    In the above code $page_details[‘ID’] will never be empty…Its the same as global $post; $post->ID. I am not sure whats happening in your particular installation. Do let me know any additional details you might have which might be contributing to the issue

    Thread Starter erwpacc

    (@erwpacc)

    sorry for the late reply, i have been on travel.

    two conditions need to be present for this to occur(at least as far as I have seen):

    1. I have only seen this happen for scheduled posts, maybe it has something to do with the way wp-cron publishes articles vs manually publishing.

    2. Another plugin needs to attempt to apply “the_content” filter. The problem shows when I use the WP Book Lite plugin.
    http://wordpress.org/extend/plugins/wpbook-lite/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-insert hijacking content’ is closed to new replies.