Make WordPress Core

Changeset 34262


Ignore:
Timestamp:
09/17/2015 09:05:44 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Docs: Expand the DocBlock for get_default_post_to_edit().

Props rabmalin.
Fixes #33910.

File:
1 edited

Legend:

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

    r34178 r34262  
    578578 * @since 2.0.0
    579579 *
    580  * @param string $post_type A post type string, defaults to 'post'.
     580 * @param string $post_type    Optional. A post type string. Default 'post'.
     581 * @param bool   $create_in_db Optional. Whether to insert the post into database. Default false.
    581582 * @return WP_Post Post object containing all the default post data as attributes
    582583 */
     
    12561257    unset($post->filter);
    12571258
    1258     return $permalink;
     1259    /**
     1260     * Filter the sample permalink.
     1261     *
     1262     * @since 4.4.0
     1263     *
     1264     * @param string  $permalink Sample permalink.
     1265     * @param int     $post_id   Post ID.
     1266     * @param string  $title     Post title.
     1267     * @param string  $name      Post name (slug).
     1268     * @param WP_Post $post      Post object.
     1269     */
     1270    return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );
    12591271}
    12601272
Note: See TracChangeset for help on using the changeset viewer.