[wp-trac] [WordPress Trac] #27550: Incorrect slashing in `wp_trash_post()` and `wp_untrash_post()`

WordPress Trac noreply at wordpress.org
Thu Mar 27 15:08:45 UTC 2014


#27550: Incorrect slashing in `wp_trash_post()` and `wp_untrash_post()`
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 `wp_trash_post()` uses `get_post($post_id, ARRAY_A)`, but then fails to
 slash the data prior to calling `wp_insert_post()`. The same for
 `wp_untrash_post()`.

 I'm pretty certain `wp_insert_post()` expects slashed data when receiving
 an array of data.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27550>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list