Support » Plugin: Wp-Insert » wp-insert hijacking content

  • Resolved erwpacc


    in this file:

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

    is replacing my content with the privacy policy from this page:

    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’])))

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author namith.jawahar


    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

    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.

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