Changeset 10497 for trunk/src/bp-core/bp-core-catchuri.php
- Timestamp:
- 02/03/2016 05:01:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r10487 r10497 25 25 * - OUTSIDE ROOT: http:// example.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ... 26 26 * 27 * 27 * Example: 28 28 * - http://example.com/members/andy/profile/edit/group/5/ 29 29 * - $bp->current_component: string 'xprofile' … … 78 78 } 79 79 80 // If running off blog other than root, any subdirectory names must be 81 // removed from $bp_uri. This includes two cases: 82 // 83 // 1. when WP is installed in a subdirectory, 84 // 2. when BP is running on secondary blog of a subdirectory 85 // multisite installation. Phew! 80 /* 81 * If running off blog other than root, any subdirectory names must be 82 * removed from $bp_uri. This includes two cases: 83 * 84 * 1. when WP is installed in a subdirectory, 85 * 2. when BP is running on secondary blog of a subdirectory 86 * multisite installation. Phew! 87 */ 86 88 if ( is_multisite() && !is_subdomain_install() && ( bp_is_multiblog_mode() || 1 != bp_get_root_blog_id() ) ) { 87 89 … … 131 133 $bp_uri = array_merge( array(), $bp_uri ); 132 134 133 // If a component is set to the front page, force its name into $bp_uri 134 // so that $current_component is populated (unless a specific WP post is being requested 135 // via a URL parameter, usually signifying Preview mode). 135 /* 136 * If a component is set to the front page, force its name into $bp_uri 137 * so that $current_component is populated (unless a specific WP post is being requested 138 * via a URL parameter, usually signifying Preview mode). 139 */ 136 140 if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) && empty( $bp_uri ) && empty( $_GET['p'] ) && empty( $_GET['page_id'] ) ) { 137 141 $post = get_post( get_option( 'page_on_front' ) ); … … 391 395 * wp-content/themes/[activated_theme]/members/index.php 392 396 * 397 * @since 1.0.0 398 * 393 399 * @param array $templates Array of templates to attempt to load. 394 400 */ … … 494 500 /** 495 501 * Redirect away from /profile URIs if XProfile is not enabled. 502 * 503 * @since 1.0.0 496 504 */ 497 505 function bp_core_catch_profile_uri() {
Note: See TracChangeset
for help on using the changeset viewer.