[wp-trac] [WordPress Trac] #41593: Document every function parameter that expects slashed data
WordPress Trac
noreply at wordpress.org
Wed Aug 9 19:12:26 UTC 2017
#41593: Document every function parameter that expects slashed data
----------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: docs
----------------------------+-----------------------------
Comment (by jdgrimes):
[attachment:old-wip.patch] is a jumble of slashing related changes that I
had made a year or more ago when I was looking into this for the WPCS
sniff. It includes some added/modified `expected_slashed` comments, as
well as some changed uses of slashing where I discovered it was being done
wrong. It also has `// WPCS: slashing OK` comments in places where I had
reviewed a call to a function that expects slashed data and found that the
data was handled properly. (These comments were mainly added so that the
WPCS sniff wouldn't keep reporting those places as needing slashing.)
I don't know if the patch will still apply cleanly or not, haven't tried
it yet. Everything in it probably also needs review; things could have
changed or I might have been mistaken.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41593#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list