Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:47:28 PM (5 years 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-admin/includes/media.php

    r48109 r48185  
    209209     * @since 2.6.0
    210210     *
    211      * @param bool $bool Whether to disable appending captions. Returning true to the filter
     211     * @param bool $bool Whether to disable appending captions. Returning true from the filter
    212212     *                   will disable captions. Default empty string.
    213213     */
Note: See TracChangeset for help on using the changeset viewer.