Make WordPress Core


Ignore:
Timestamp:
02/21/2023 04:37:03 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document default values for optional parameters in various DocBlocks.

Props paulkevan, costdev, audrasjb, SergeyBiryukov.
See #56792.

File:
1 edited

Legend:

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

    r55254 r55398  
    261261 *
    262262 * @param int $post_id The post ID.
    263  * @param int $user_id Optional. The post author ID.
     263 * @param int $user_id Optional. The post author ID. Default 0.
    264264 * @return WP_Post|false The autosaved data or false on failure or when no autosave exists.
    265265 */
     
    344344 * @param int|WP_Post|array|null $post     Post ID, post object OR post array.
    345345 * @param bool                   $autosave Optional. Whether the revision is an autosave or not.
     346 *                                         Default false.
    346347 * @return int|WP_Error WP_Error or 0 if error, new revision ID if success.
    347348 */
     
    392393 *                            correspond to a WP_Post object, an associative array, or a numeric array,
    393394 *                            respectively. Default OBJECT.
    394  * @param string      $filter Optional sanitization filter. See sanitize_post().
     395 * @param string      $filter Optional sanitization filter. See sanitize_post(). Default 'raw'.
    395396 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure.
    396397 */
Note: See TracChangeset for help on using the changeset viewer.