Make WordPress Core

Ticket #37682: 37682.2.patch

File 37682.2.patch, 1.2 KB (added by johnbillion, 9 years ago)
  • src/wp-admin/includes/post.php

     
    12071207 * @since 2.5.0
    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) {
    12151215        $post = get_post( $id );
     
    12701270         *
    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.
    12761276         * @param string  $name      Post name (slug).