diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 790b736cdf..6c78a0a716 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1207,9 +1207,9 @@ function postbox_classes( $id, $page ) { * @since 2.5.0 * * @param int $id Post ID or post object. - * @param string $title Optional. Title. Default null. - * @param string $name Optional. Name. Default null. - * @return array Array with two entries of type string. + * @param string $title Optional. Title to override the post's current title when generating the post name. Default null. + * @param string $name Optional. Name to override the post name. Default null. + * @return array Array containing the sample permalink with placeholder for the post name, and the post name. */ function get_sample_permalink($id, $title = null, $name = null) { $post = get_post( $id ); @@ -1270,7 +1270,7 @@ function get_sample_permalink($id, $title = null, $name = null) { * * @since 4.4.0 * - * @param string $permalink Sample permalink. + * @param array $permalink Array containing the sample permalink with placeholder for the post name, and the post name. * @param int $post_id Post ID. * @param string $title Post title. * @param string $name Post name (slug).