• This issue is very much related to bug #22944 – however this fix here only applies to “scheduled” future post.

    One of my plugins is design to allow users to expire posts in various ways. When I call wp_update_post to change various post attributes via a wp_cron scheduled event, kses is triggered.

    Other than directly running the database query myself, any suggestions on how to work around this?

Viewing 1 replies (of 1 total)
  • Thread Starter Aaron Axelsen

    (@axelseaa)

    I have found that so far my best solution is to call kses_remove_filters before the wp_update_post call – and that seems to do the trick.

    What I don’t know, is this the best way to handle it?

Viewing 1 replies (of 1 total)
  • The topic ‘wp_cron calls to wp_update_post trigger kses’ is closed to new replies.