From d91fe614057ab24712ba1b43adc4b4dc513329eb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 17 Sep 2015 09:06:34 +0000 Subject: [PATCH] Docs: Expand the DocBlock for `get_default_post_to_edit()`. Props rabmalin. Fixes #33910. Built from https://develop.svn.wordpress.org/trunk@34262 git-svn-id: http://core.svn.wordpress.org/trunk@34226 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 16 ++++++++++++++-- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index d3a8024fae..45d9a00b19 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -577,7 +577,8 @@ function bulk_edit_posts( $post_data = null ) { * * @since 2.0.0 * - * @param string $post_type A post type string, defaults to 'post'. + * @param string $post_type Optional. A post type string. Default 'post'. + * @param bool $create_in_db Optional. Whether to insert the post into database. Default false. * @return WP_Post Post object containing all the default post data as attributes */ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) { @@ -1255,7 +1256,18 @@ function get_sample_permalink($id, $title = null, $name = null) { $post->post_name = $original_name; unset($post->filter); - return $permalink; + /** + * Filter the sample permalink. + * + * @since 4.4.0 + * + * @param string $permalink Sample permalink. + * @param int $post_id Post ID. + * @param string $title Post title. + * @param string $name Post name (slug). + * @param WP_Post $post Post object. + */ + return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 41e4c25191..911928a125 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34261'; +$wp_version = '4.4-alpha-34262'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.