Changeset 13714 for trunk/src/bp-activity/screens/permalink.php
- Timestamp:
- 01/27/2024 03:30:30 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/screens/permalink.php
r13503 r13714 63 63 } 64 64 65 // If set, add the original query string back onto the redirect URL. 66 if ( ! empty( $_SERVER['QUERY_STRING'] ) ) { 65 // Make sure current BP URI query variables are removed. 66 $current_url = remove_query_arg( array( 'bp_activities', 'bp_activity_action', 'bp_activity_action_variables' ) ); 67 $extra_args = wp_parse_url( $current_url, PHP_URL_QUERY ); 68 69 // If there are query variables left, add them back onto the redirect URL. 70 if ( $extra_args ) { 67 71 $query_frags = array(); 68 wp_parse_str( $_SERVER['QUERY_STRING'], $query_frags ); 72 wp_parse_str( $extra_args, $query_frags ); 73 74 // Add extra arguments to the redirect URL. 69 75 $redirect = add_query_arg( urlencode_deep( $query_frags ), $redirect ); 70 76 }
Note: See TracChangeset
for help on using the changeset viewer.