Unit Tests for Core #21767 (Remove stripslashes from API functions)
|Reported by:||alexkingorg||Owned by:|
Wanted to start contributing the tests needed for this core ticket:
Coverage is not yet sufficient, but this initial patch does cover posts, post meta and comments.
There is also a change to remove the manual adding of slashes in the methods to create comments. This was the only object that was getting "properly" slashed before the WP model API functions were called (in other words, all other objects were doing it wrong) and the core patch obviates the need for this.