Make WordPress Core

Changeset 38272 for trunk


Ignore:
Timestamp:
08/17/2016 06:29:47 PM (8 years ago)
Author:
johnbillion
Message:

Permalinks: Correct the documentation for the get_sample_permalink filter, and improve the documentation for the get_sample_permalink() function.

Props sebastian.pisula for the original patch
Fixes #37682

File:
1 edited

Legend:

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

    r38147 r38272  
    12081208 *
    12091209 * @param int    $id    Post ID or post object.
    1210  * @param string $title Optional. Title. Default null.
    1211  * @param string $name  Optional. Name. Default null.
    1212  * @return array Array with two entries of type string.
     1210 * @param string $title Optional. Title to override the post's current title when generating the post name. Default null.
     1211 * @param string $name  Optional. Name to override the post name. Default null.
     1212 * @return array Array containing the sample permalink with placeholder for the post name, and the post name.
    12131213 */
    12141214function get_sample_permalink($id, $title = null, $name = null) {
     
    12711271     * @since 4.4.0
    12721272     *
    1273      * @param string  $permalink Sample permalink.
     1273     * @param array   $permalink Array containing the sample permalink with placeholder for the post name, and the post name.
    12741274     * @param int     $post_id   Post ID.
    12751275     * @param string  $title     Post title.
Note: See TracChangeset for help on using the changeset viewer.