Docs: Add `home` and `commentpaged` as accepted values for `user_trailingslashit` filter.

Props sebastian.pisula.
Fixes #37734.
Built from https://develop.svn.wordpress.org/trunk@38645


git-svn-id: http://core.svn.wordpress.org/trunk@38588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-09-22 22:54:29 +00:00
parent bb0cec0bfe
commit bae2b337f0
2 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,8 @@ function user_trailingslashit($string, $type_of_url = '') {
* *
* @param string $string URL with or without a trailing slash. * @param string $string URL with or without a trailing slash.
* @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback', * @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback',
* 'single_feed', 'single_paged', 'feed', 'category', 'page', 'year', * 'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed',
* 'month', 'day', 'paged', 'post_type_archive'. * 'category', 'page', 'year', 'month', 'day', 'post_type_archive'.
*/ */
return apply_filters( 'user_trailingslashit', $string, $type_of_url ); return apply_filters( 'user_trailingslashit', $string, $type_of_url );
} }

View File

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