WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:47:28 PM (18 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r48121 r48185  
    609609     * Filters the list of a user's sites before it is populated.
    610610     *
    611      * Passing a non-null value to the filter will effectively short circuit
     611     * Returning a non-null value from the filter will effectively short circuit
    612612     * get_blogs_of_user(), returning that value instead.
    613613     *
Note: See TracChangeset for help on using the changeset viewer.