Changeset 5658 for trunk/src/includes/users/functions.php
- Timestamp:
- 03/24/2015 01:32:20 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/users/functions.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/functions.php
r5657 r5658 23 23 * @uses home_url() To get the home url 24 24 * @uses esc_url() To escape the url 25 * @uses wp_safe_redirect() To redirect25 * @uses bbp_redirect() To redirect 26 26 */ 27 27 function bbp_redirect_login( $url = '', $raw_url = '', $user = '' ) { … … 395 395 * @uses bbp_get_favorites_link() To get the favorites page link 396 396 * @uses bbp_get_topic_permalink() To get the topic permalink 397 * @uses wp_safe_redirect() To redirect to the url397 * @uses bbp_redirect() To redirect to the url 398 398 */ 399 399 function bbp_favorites_handler( $action = '' ) { … … 471 471 } 472 472 473 wp_safe_redirect( $redirect ); 474 475 // For good measure 476 exit(); 473 bbp_redirect( $redirect ); 477 474 478 475 // Fail! Handle errors … … 1116 1113 * @uses bbp_is_subscription() To check if it's the subscription page 1117 1114 * @uses bbp_get_forum_permalink() To get the forum permalink 1118 * @uses wp_safe_redirect() To redirect to the url1115 * @uses bbp_redirect() To redirect to the url 1119 1116 */ 1120 1117 function bbp_forum_subscriptions_handler( $action = '' ) { … … 1192 1189 } 1193 1190 1194 wp_safe_redirect( $redirect ); 1195 1196 // For good measure 1197 exit(); 1191 bbp_redirect( $redirect ); 1198 1192 1199 1193 // Fail! Handle errors … … 1222 1216 * @uses bbp_is_subscription() To check if it's the subscription page 1223 1217 * @uses bbp_get_topic_permalink() To get the topic permalink 1224 * @uses wp_safe_redirect() To redirect to the url1218 * @uses bbp_redirect() To redirect to the url 1225 1219 */ 1226 1220 function bbp_subscriptions_handler( $action = '' ) { … … 1298 1292 } 1299 1293 1300 wp_safe_redirect( $redirect ); 1301 1302 // For good measure 1303 exit(); 1294 bbp_redirect( $redirect ); 1304 1295 1305 1296 // Fail! Handle errors … … 1327 1318 * @uses delete_option() To delete the displayed user's email id option 1328 1319 * @uses bbp_get_user_profile_edit_url() To get the edit profile url 1329 * @uses wp_safe_redirect() To redirect to the url1320 * @uses bbp_redirect() To redirect to the url 1330 1321 * @uses bbp_verify_nonce_request() To verify the nonce and check the request 1331 1322 * @uses current_user_can() To check if the current user can edit the user … … 1371 1362 delete_option( $user_id . '_new_email' ); 1372 1363 1373 wp_safe_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 1374 exit(); 1364 bbp_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 1375 1365 } 1376 1366 … … 1378 1368 } elseif ( is_multisite() && bbp_is_user_home_edit() && ! empty( $_GET['dismiss'] ) && ( $user_id . '_new_email' === $_GET['dismiss'] ) ) { 1379 1369 delete_option( $user_id . '_new_email' ); 1380 wp_safe_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 1381 exit(); 1370 bbp_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 1382 1371 } 1383 1372 … … 1420 1409 $redirect = add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $edit_user ) ); 1421 1410 1422 wp_safe_redirect( $redirect ); 1423 exit; 1411 bbp_redirect( $redirect ); 1424 1412 } 1425 1413 } … … 1704 1692 * @uses current_user_can() 1705 1693 * @uses bbp_get_displayed_user_id() 1706 * @uses wp_safe_redirect()1694 * @uses bbp_redirect() 1707 1695 * @uses bbp_get_user_profile_url() 1708 1696 */ … … 1744 1732 1745 1733 // Redirect 1746 wp_safe_redirect( $redirect_to ); 1747 exit(); 1734 bbp_redirect( $redirect_to ); 1748 1735 } 1749 1736
Note: See TracChangeset
for help on using the changeset viewer.