Changeset 13436 for trunk/src/bp-activity/screens/permalink.php
- Timestamp:
- 03/15/2023 08:16:46 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/screens/permalink.php
r13433 r13436 17 17 function bp_activity_action_permalink_router() { 18 18 // Not viewing activity. 19 if ( ! bp_is_activity_component() || ! bp_is_current_action( 'p' ) ) 19 if ( ! bp_is_activity_component() || ! bp_is_current_action( 'p' ) ) { 20 20 return false; 21 } 21 22 22 23 // No activity to display. 23 if ( ! bp_action_variable( 0 ) || ! is_numeric( bp_action_variable( 0 ) ) ) 24 if ( ! bp_action_variable( 0 ) || ! is_numeric( bp_action_variable( 0 ) ) ) { 24 25 return false; 26 } 25 27 26 28 // Get the activity details. … … 78 80 */ 79 81 if ( ! $redirect = apply_filters_ref_array( 'bp_activity_permalink_redirect_url', array( $redirect, &$activity ) ) ) { 80 bp_core_redirect( bp_get_root_ domain() );82 bp_core_redirect( bp_get_root_url() ); 81 83 } 82 84
Note: See TracChangeset
for help on using the changeset viewer.