Title: wp-insert hijacking content
Last modified: August 20, 2016

---

# wp-insert hijacking content

 *  Resolved [erwpacc](https://wordpress.org/support/users/erwpacc/)
 * (@erwpacc)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-insert-hijacking-content/)
 * 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/](http://wordpress.org/extend/plugins/wp-insert/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Namith Jawahar](https://wordpress.org/support/users/namithjawahar/)
 * (@namithjawahar)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-insert-hijacking-content/#post-3391737)
 * 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](https://wordpress.org/support/users/erwpacc/)
 * (@erwpacc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-insert-hijacking-content/#post-3391769)
 * 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/](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.

 * ![](https://ps.w.org/wp-insert/assets/icon-256x256.png?rev=984289)
 * [Wp-Insert](https://wordpress.org/plugins/wp-insert/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-insert/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-insert/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-insert/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-insert/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-insert/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [erwpacc](https://wordpress.org/support/users/erwpacc/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/wp-insert-hijacking-content/#post-3391769)
 * Status: resolved