From 1c2d321ed399ece345dbf84d6ccf991f7d23e1c4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 22 Sep 2016 22:53:01 +0000 Subject: [PATCH] Docs: Add `home` and `commentpaged` as accepted values for `user_trailingslashit` filter. Props sebastian.pisula. Fixes #37734. git-svn-id: https://develop.svn.wordpress.org/trunk@38645 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index b922be0df2..292c98ca80 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -58,8 +58,8 @@ function user_trailingslashit($string, $type_of_url = '') { * * @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', - * 'single_feed', 'single_paged', 'feed', 'category', 'page', 'year', - * 'month', 'day', 'paged', 'post_type_archive'. + * 'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed', + * 'category', 'page', 'year', 'month', 'day', 'post_type_archive'. */ return apply_filters( 'user_trailingslashit', $string, $type_of_url ); }