Changeset 11281
- Timestamp:
- 12/08/2016 03:36:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r11099 r11281 853 853 $front_page_component = array_search( $page_on_front, bp_core_get_directory_page_ids() ); 854 854 855 // If requesting the front page component directory, canonical 856 // URL is the front page. We detect whether we're detecting a 857 // component *directory* by checking that bp_current_action() 858 // is empty - ie, this not a single item or a feed. 859 if ( false !== $front_page_component && bp_is_current_component( $front_page_component ) && ! bp_current_action() ) { 855 /* 856 * If requesting the front page component directory, canonical 857 * URL is the front page. We detect whether we're detecting a 858 * component *directory* by checking that bp_current_action() 859 * is empty - ie, this not a single item, a feed, or an item 860 * type directory. 861 */ 862 if ( false !== $front_page_component && bp_is_current_component( $front_page_component ) && ! bp_current_action() && ! bp_get_current_member_type() ) { 860 863 $bp->canonical_stack['canonical_url'] = trailingslashit( bp_get_root_domain() ); 861 864
Note: See TracChangeset
for help on using the changeset viewer.