Make WordPress Core


Ignore:
Timestamp:
05/28/2021 06:03:06 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for wp_list_filter() and wp_filter_object_list().

This should make the purpose and behavior of these functions more obvious without reading the code.

Props ribaricplusplus.
Fixes #52808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-list-util.php

    r48421 r51044  
    7777    /**
    7878     * Filters the list, based on a set of key => value arguments.
     79     *
     80     * Retrieves the objects from the list that match the given arguments.
     81     * Key represents property name, and value represents property value.
     82     *
     83     * If an object has more properties than those specified in arguments,
     84     * that will not disqualify it. When using the 'AND' operator,
     85     * any missing properties will disqualify it.
    7986     *
    8087     * @since 4.7.0
Note: See TracChangeset for help on using the changeset viewer.