Make WordPress Core


Ignore:
Timestamp:
01/04/2021 05:16:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false or WP_Error.

Follow-up to [46696], [47060], [49926], [49927].

See #51800.

File:
1 edited

Legend:

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

    r49927 r49929  
    744744 * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names.
    745745 * @param array|string $args       Change the order of the object_ids, either ASC or DESC.
    746  * @return WP_Error|array If the taxonomy does not exist, then WP_Error will be returned. On success.
    747  *  the array can be empty meaning that there are no $object_ids found or it will return the $object_ids found.
     746 * @return array|WP_Error An array of $object_ids on success, WP_Error if the taxonomy does not exist.
    748747 */
    749748function get_objects_in_term( $term_ids, $taxonomies, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.