[wp-trac] [WordPress Trac] #38035: Clarify function parameters that expect slashed data

WordPress Trac noreply at wordpress.org
Tue Sep 13 09:47:03 UTC 2016


#38035: Clarify function parameters that expect slashed data
--------------------------+------------------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch needs-docs
  Focuses:  docs          |
--------------------------+------------------------------------
 The following functions expect slashed data to be passed to at least one
 of their parameters.

 A note should be added to each affected `@param` doc stating that the
 parameter expects slashed data, in addition to any mention of slashed data
 in the function description.

 * `wp_(insert|update)_(post|user)`
 * `(add|update|delete)_(post|term|user|comment)_meta`
 * `(add|update|delete)_metadata`

 There's most likely a bunch more affected functions.

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


More information about the wp-trac mailing list