[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions
WordPress Trac
noreply at wordpress.org
Thu Feb 7 13:33:47 UTC 2013
#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
Reporter: alexkingorg | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.6
Component: Formatting | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- |
tests 3.6-early |
-------------------------------------------------+-------------------------
Comment (by ryan):
Replying to [comment:51 dave1010]:
> Are any functions / methods going to be deprecated as part of this
change or is that something for the future? Can `$wpdb->escape()` etc be
deprecated in favour of using `$wpdb->prepare()`?
Maybe. *_post_meta() will probably be deprecated in favor of
wp_*_post_meta() or whatever we end up naming the no-slashes-expected
variant. In IRC we tossed around the idea of adding meta methods to
WP_Post instead of introducing new wp_ prefixed functions. It is likely
time to deprecate $wpdb->escape() and esc_sql().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21767#comment:52>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list