Changeset 5827 for trunk/src/includes/core/theme-compat.php
- Timestamp:
- 07/14/2015 12:31:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/theme-compat.php
r5770 r5827 804 804 * 805 805 * @since bbPress (r2628) 806 * 806 807 * @param string $redirect_url Redirect url 807 * @uses WP_Rewrite::using_permalinks() To check if the blog is using permalinks808 * @uses bbp_use_pretty_urls() To check if the blog is using permalinks 808 809 * @uses bbp_get_paged() To get the current page number 809 810 * @uses bbp_is_single_topic() To check if it's a topic page 810 811 * @uses bbp_is_single_forum() To check if it's a forum page 812 * 811 813 * @return bool|string False if it's a topic/forum and their first page, 812 814 * otherwise the redirect url 813 815 */ 814 816 function bbp_redirect_canonical( $redirect_url ) { 815 global $wp_rewrite;816 817 817 818 // Canonical is for the beautiful 818 if ( $wp_rewrite->using_permalinks() ) {819 if ( bbp_use_pretty_urls() ) { 819 820 820 821 // If viewing beyond page 1 of several
Note: See TracChangeset
for help on using the changeset viewer.