WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/22/2016 10:53:01 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Props sebastian.pisula.
Fixes #37734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r38636 r38645  
    5959     * @param string $string      URL with or without a trailing slash.
    6060     * @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback',
    61      *                            'single_feed', 'single_paged', 'feed', 'category', 'page', 'year',
    62      *                            'month', 'day', 'paged', 'post_type_archive'.
     61     *                            'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed',
     62     *                            'category', 'page', 'year', 'month', 'day', 'post_type_archive'.
    6363     */
    6464    return apply_filters( 'user_trailingslashit', $string, $type_of_url );
Note: See TracChangeset for help on using the changeset viewer.