Changeset 9471 for trunk/src/bp-core/bp-core-catchuri.php
- Timestamp:
- 02/10/2015 02:49:16 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-catchuri.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r9467 r9471 34 34 */ 35 35 function bp_core_set_uri_globals() { 36 global $ bp, $current_blog, $wp_rewrite;36 global $current_blog, $wp_rewrite; 37 37 38 38 // Don't catch URIs on non-root blogs unless multiblog mode is on 39 39 if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) 40 40 return false; 41 42 $bp = buddypress(); 41 43 42 44 // Define local variables … … 419 421 */ 420 422 function bp_core_catch_no_access() { 421 global $bp, $wp_query; 423 global $wp_query; 424 425 $bp = buddypress(); 422 426 423 427 // If coming from bp_core_redirect() and $bp_no_status_set is true, … … 550 554 */ 551 555 function bp_redirect_canonical() { 552 global $bp;553 556 554 557 if ( !bp_is_blog_page() && apply_filters( 'bp_do_redirect_canonical', true ) ) { … … 574 577 if ( $canonical_url !== $req_url_clean ) { 575 578 579 $bp = buddypress(); 580 576 581 // Template messages have been deleted from the cookie by this point, so 577 582 // they must be readded before redirecting … … 619 624 */ 620 625 function bp_get_canonical_url( $args = array() ) { 621 global $bp;622 626 623 627 // For non-BP content, return the requested url, and let WP do the work … … 625 629 return bp_get_requested_url(); 626 630 } 631 632 $bp = buddypress(); 627 633 628 634 $defaults = array( … … 701 707 */ 702 708 function bp_get_requested_url() { 703 global $bp;709 $bp = buddypress(); 704 710 705 711 if ( empty( $bp->canonical_stack['requested_url'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.