[wp-trac] [WordPress Trac] #50635: Deprecate wp_slash_strings_only() in favour of wp_slash()
WordPress Trac
noreply at wordpress.org
Sun Oct 18 06:55:31 UTC 2020
#50635: Deprecate wp_slash_strings_only() in favour of wp_slash()
-------------------------+-----------------------------
Reporter: ocean90 | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.6
Component: Formatting | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
-------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"49188" 49188]:
{{{
#!CommitTicketReference repository="" revision="49188"
Formatting: Deprecate `wp_slash_strings_only()` in favor of `wp_slash()`.
The reason for introducing `wp_slash_strings_only()` in [46454] was to
keep non-string values untouched.
Later, `wp_slash()` itself was updated in [48433] to prevent changing non-
string values.
To avoid confusion, `wp_slash_strings_only()` is now deprecated.
Props ayeshrajans, ocean90.
Fixes #50635.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50635#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list