WordPress.org

Make WordPress Core

Changeset 36071


Ignore:
Timestamp:
12/23/2015 06:57:12 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Add missing @since and properly mark the optional $type parameter as such in the DocBlock for the deprecated get_others_unpublished_posts() function.

Introduced in [5707].

See #32246.

File:
1 edited

Legend:

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

    r36070 r36071  
    659659
    660660/**
    661  * Retrieve editable posts from other users.
    662  *
     661 * Retrieves editable posts from other users.
     662 *
     663 * @since 2.3.0
    663664 * @deprecated 3.1.0 Use get_posts()
    664665 * @see get_posts()
    665666 *
    666  * @param int $user_id User ID to not retrieve posts from.
    667  * @param string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'.
     667 * @param int    $user_id User ID to not retrieve posts from.
     668 * @param string $type    Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).
     669 *                        Default 'any'.
    668670 * @return array List of posts from others.
    669671 */
    670 function get_others_unpublished_posts($user_id, $type='any') {
     672function get_others_unpublished_posts( $user_id, $type = 'any' ) {
    671673    _deprecated_function( __FUNCTION__, '3.1' );
    672674
Note: See TracChangeset for help on using the changeset viewer.