Changeset 8443 for trunk/src/bp-members/bp-members-admin.php
- Timestamp:
- 05/22/2014 06:31:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-admin.php
r8441 r8443 115 115 116 116 // The current user id 117 $this->current_user_id = get_current_user_id(); 117 $this->current_user_id = get_current_user_id(); 118 118 119 119 // The user id being edited … … 205 205 * 206 206 * Look for $_GET['user_id']. If anything else, force the user ID to the 207 * current user's ID so they aren't left without a user to edit. 207 * current user's ID so they aren't left without a user to edit. 208 208 * 209 209 * @since BuddyPress (2.1.0) … … 230 230 /** 231 231 * Can the current user edit the one displayed 232 * 232 * 233 233 * self profile editing / or bp_moderate check. 234 234 * This might be replaced by more granular capabilities … … 267 267 private function get_user_notice() { 268 268 269 // Setup empty notice for return value 270 $notice = array(); 271 272 // Updates 269 273 if ( ! empty( $_REQUEST['updated'] ) ) { 270 274 switch ( $_REQUEST['updated'] ) { … … 296 300 } 297 301 302 // Errors 298 303 if ( ! empty( $_REQUEST['error'] ) ) { 299 304 switch ( $_REQUEST['error'] ) { … … 451 456 foreach ( $page_head as $head ) { 452 457 add_action( "admin_head-{$head}", array( $this, 'profile_admin_head' ) ); 453 } 458 } 454 459 } 455 460 … … 763 768 764 769 // Construct URL for form 765 $ form_url= remove_query_arg( array( 'action', 'error', 'updated', 'spam', 'ham' ), $_SERVER['REQUEST_URI'] );766 $form_ url = add_query_arg( 'action', 'update', $form_url );770 $request_url = remove_query_arg( array( 'action', 'error', 'updated', 'spam', 'ham' ), $_SERVER['REQUEST_URI'] ); 771 $form_action_url = add_query_arg( 'action', 'update', $request_url ); 767 772 $wp_http_referer = false; 768 773 if ( ! empty( $_REQUEST['wp_http_referer'] ) ) { … … 812 817 $this->profile_nav( $user, 'BuddyPress' ); ?> 813 818 814 <form action="<?php echo esc_url( $form_ url ); ?>" id="your-profile" method="post">819 <form action="<?php echo esc_url( $form_action_url ); ?>" id="your-profile" method="post"> 815 820 <div id="poststuff"> 816 821 … … 1044 1049 /** 1045 1050 * Add a filter to edit profile url in WP Admin Bar 1046 * 1051 * 1047 1052 * @access public 1048 1053 * @since BuddyPress (2.1.0) … … 1054 1059 /** 1055 1060 * Filter the profile url 1056 * 1061 * 1057 1062 * @access public 1058 1063 * @since BuddyPress (2.1.0) 1059 * 1064 * 1060 1065 * @uses user_admin_url() 1061 1066 */ … … 1069 1074 /** 1070 1075 * Remove the filter to edit profile url in WP Admin Bar 1071 * 1076 * 1072 1077 * @access public 1073 1078 * @since BuddyPress (2.1.0) … … 1387 1392 $notice = array(); 1388 1393 1389 // Update d1394 // Updates 1390 1395 if ( ! empty( $_REQUEST['updated'] ) ) { 1391 1396 switch ( $_REQUEST['updated'] ) { … … 1494 1499 } 1495 1500 1496 // Process error messages1501 // Errors 1497 1502 if ( ! empty( $_REQUEST['error'] ) ) { 1498 1503 switch ( $_REQUEST['error'] ) {
Note: See TracChangeset
for help on using the changeset viewer.