Make WordPress Core


Ignore:
Timestamp:
11/09/2016 10:59:02 PM (10 years ago)
Author:
johnbillion
Message:

Docs: Improve the documentation for parameters which accept OBJECT, ARRAY_A, and ARRAY_N as parameters.

See #37770

File:
1 edited

Legend:

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

    r37586 r39188  
    1515 *
    1616 * @param int|stdClass $bookmark
    17  * @param string $output Optional. Either OBJECT, ARRAY_N, or ARRAY_A constant
     17 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
     18 *                       an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT.
    1819 * @param string $filter Optional, default is 'raw'.
    1920 * @return array|object|null Type returned depends on $output value.
     
    301302 * @since 2.3.0
    302303 *
    303  * @param object|array $bookmark Bookmark row
     304 * @param stdClass|array $bookmark Bookmark row
    304305 * @param string $context Optional, default is 'display'. How to filter the
    305306 *              fields
    306  * @return object|array Same type as $bookmark but with fields sanitized.
     307 * @return stdClass|array Same type as $bookmark but with fields sanitized.
    307308 */
    308309function sanitize_bookmark($bookmark, $context = 'display') {
Note: See TracChangeset for help on using the changeset viewer.