WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:47:28 PM (19 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/comment.php

    r48167 r48185  
    832832     *
    833833     * @since 2.1.0
    834      * @since 4.9.0 Returning a WP_Error value from the filter will shortcircuit comment insertion
     834     * @since 4.9.0 Returning a WP_Error value from the filter will short-circuit comment insertion
    835835     *              and allow skipping further processing.
    836836     *
Note: See TracChangeset for help on using the changeset viewer.