Docs: Standardize on "Returning a value from the filter" vs. "Passing a value to the filter".
The filter is the callback function added with `add_filter()`, therefore the hook passes a value to the filter, and the filter returns a value to change its behaviour. The documentation is referring to the latter. Props johnbillion. See #49572, #16557. Built from https://develop.svn.wordpress.org/trunk@48185 git-svn-id: http://core.svn.wordpress.org/trunk@47954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -64,8 +64,8 @@ function wptexturize( $text, $reset = false ) {
|
||||
/**
|
||||
* Filters whether to skip running wptexturize().
|
||||
*
|
||||
* Passing false to the filter will effectively short-circuit wptexturize().
|
||||
* returning the original text passed to the function instead.
|
||||
* Returning false from the filter will effectively short-circuit wptexturize()
|
||||
* and return the original text passed to the function instead.
|
||||
*
|
||||
* The filter runs only once, the first time wptexturize() is called.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user