Add a 'get_sample_permalink' filter.

Props SergeyBiryukov, wenthemes, JustinSainton.
Fixes #22338.

Built from https://develop.svn.wordpress.org/trunk@34309


git-svn-id: http://core.svn.wordpress.org/trunk@34273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-18 19:28:26 +00:00
parent 1d0774e784
commit 04f7a0da2f
2 changed files with 13 additions and 2 deletions

View File

@ -1256,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 );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34308';
$wp_version = '4.4-alpha-34309';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.