Skip to:
Content

bbPress.org

Changeset 5822


Ignore:
Timestamp:
07/13/2015 09:46:59 PM (9 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Use bbp_get_paged_slug() instead of $wp_rewrite->pagination_base directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r5770 r5822  
    999999     */
    10001000    public function new_reply_redirect_to( $redirect_url = '', $redirect_to = '', $reply_id = 0 ) {
    1001         global $wp_rewrite;
    10021001
    10031002        if ( bp_is_group() ) {
     
    10151014            // Include pagination
    10161015            } else {
    1017                 $redirect_url = trailingslashit( $topic_url ) . trailingslashit( $wp_rewrite->pagination_base ) . trailingslashit( $reply_page ) . $reply_hash;
     1016                $redirect_url = trailingslashit( $topic_url ) . trailingslashit( bbp_get_paged_slug() ) . trailingslashit( $reply_page ) . $reply_hash;
    10181017            }
    10191018
     
    13401339     *
    13411340     * @param array $args
    1342      * @global $wp_rewrite
    13431341     * @uses bbp_get_forum_id()
    13441342     * @uses maybe_map_permalink_to_group
     
    13521350        }
    13531351
    1354         global $wp_rewrite;
    1355 
    1356         $args['base'] = trailingslashit( $new ) . $wp_rewrite->pagination_base . '/%#%/';
     1352        $args['base'] = trailingslashit( $new ) . bbp_get_paged_slug() . '/%#%/';
    13571353
    13581354        return $args;
     
    13651361     *
    13661362     * @param array $args
    1367      * @global $wp_rewrite
    13681363     * @uses bbp_get_topic_id()
    13691364     * @uses maybe_map_permalink_to_group
     
    13761371        }
    13771372
    1378         global $wp_rewrite;
    1379 
    1380         $args['base'] = trailingslashit( $new ) . $wp_rewrite->pagination_base . '/%#%/';
     1373        $args['base'] = trailingslashit( $new ) . bbp_get_paged_slug() . '/%#%/';
    13811374
    13821375        return $args;
Note: See TracChangeset for help on using the changeset viewer.