Make WordPress Core


Ignore:
Timestamp:
11/09/2020 03:13:56 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Docblock corrections relating to WP_Post objects.

See #51373, #50768

File:
1 edited

Legend:

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

    r49496 r49544  
    23242324
    23252325/**
    2326  * Sanitize every post field.
     2326 * Sanitizes every post field.
    23272327 *
    23282328 * If the context is 'raw', then the post object or array will get minimal
     
    23332333 * @see sanitize_post_field()
    23342334 *
    2335  * @param object|WP_Post|array $post    The Post Object or Array
     2335 * @param object|WP_Post|array $post    The post object or array
    23362336 * @param string               $context Optional. How to sanitize post fields.
    23372337 *                                      Accepts 'raw', 'edit', 'db', or 'display'.
    23382338 *                                      Default 'display'.
    2339  * @return object|WP_Post|array The now sanitized Post Object or Array (will be the
    2340  *                              same type as $post).
     2339 * @return object|WP_Post|array The now sanitized post object or array (will be the
     2340 *                              same type as `$post`).
    23412341 */
    23422342function sanitize_post( $post, $context = 'display' ) {
Note: See TracChangeset for help on using the changeset viewer.