Changeset 5822
- Timestamp:
- 07/13/2015 09:46:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/groups.php
r5770 r5822 999 999 */ 1000 1000 public function new_reply_redirect_to( $redirect_url = '', $redirect_to = '', $reply_id = 0 ) { 1001 global $wp_rewrite;1002 1001 1003 1002 if ( bp_is_group() ) { … … 1015 1014 // Include pagination 1016 1015 } 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; 1018 1017 } 1019 1018 … … 1340 1339 * 1341 1340 * @param array $args 1342 * @global $wp_rewrite1343 1341 * @uses bbp_get_forum_id() 1344 1342 * @uses maybe_map_permalink_to_group … … 1352 1350 } 1353 1351 1354 global $wp_rewrite; 1355 1356 $args['base'] = trailingslashit( $new ) . $wp_rewrite->pagination_base . '/%#%/'; 1352 $args['base'] = trailingslashit( $new ) . bbp_get_paged_slug() . '/%#%/'; 1357 1353 1358 1354 return $args; … … 1365 1361 * 1366 1362 * @param array $args 1367 * @global $wp_rewrite1368 1363 * @uses bbp_get_topic_id() 1369 1364 * @uses maybe_map_permalink_to_group … … 1376 1371 } 1377 1372 1378 global $wp_rewrite; 1379 1380 $args['base'] = trailingslashit( $new ) . $wp_rewrite->pagination_base . '/%#%/'; 1373 $args['base'] = trailingslashit( $new ) . bbp_get_paged_slug() . '/%#%/'; 1381 1374 1382 1375 return $args;
Note: See TracChangeset
for help on using the changeset viewer.