Changeset 484249
- Timestamp:
- 01/04/2012 02:52:28 AM (14 years ago)
- Location:
- front-end-users
- Files:
-
- 3 edited
- 7 copied
-
tags/1.2.2 (copied) (copied from front-end-users/trunk)
-
tags/1.2.2/example_hooks.php (copied) (copied from front-end-users/trunk/example_hooks.php)
-
tags/1.2.2/front_end_users.php (copied) (copied from front-end-users/trunk/front_end_users.php) (1 diff)
-
tags/1.2.2/functions.php (copied) (copied from front-end-users/trunk/functions.php)
-
tags/1.2.2/lib/front_end_users.php (copied) (copied from front-end-users/trunk/lib/front_end_users.php) (4 diffs)
-
tags/1.2.2/readme.txt (copied) (copied from front-end-users/trunk/readme.txt) (1 diff)
-
tags/1.2.2/views/settings.php (copied) (copied from front-end-users/trunk/views/settings.php)
-
trunk/front_end_users.php (modified) (1 diff)
-
trunk/lib/front_end_users.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
front-end-users/tags/1.2.2/front_end_users.php
r473599 r484249 5 5 Description: Hides the WordPress admin section from specified user roles, allows users to edit their settings from the front-end, and allows for customization of user-specific pages on the front-end. 6 6 Author: Tom Benner 7 Version: 1.2. 17 Version: 1.2.2 8 8 Author URI: 9 9 */ -
front-end-users/tags/1.2.2/lib/front_end_users.php
r473599 r484249 555 555 // Profile settings-related functions 556 556 557 public function update_user_settings(&$user, $ _POST) {558 559 if (empty($ _POST)) {557 public function update_user_settings(&$user, $post) { 558 559 if (empty($post)) { 560 560 return null; 561 561 } … … 580 580 581 581 foreach($required_fields as $field) { 582 if (!isset($ _POST[$field])) {582 if (!isset($post[$field])) { 583 583 $has_required_fields = false; 584 584 break; … … 587 587 588 588 // If everything looks valid, use WP's edit_user() (which handles POST data behind the scenes) to update the user's data. 589 if ($has_required_fields && $user_id == $ _POST['user_id']) {589 if ($has_required_fields && $user_id == $post['user_id']) { 590 590 591 591 require_once ABSPATH.'wp-admin/includes/admin.php'; 592 592 593 do_action('feu_before_update_user', $ _POST);593 do_action('feu_before_update_user', $post); 594 594 595 595 $errors = edit_user($user_id); … … 600 600 if (!is_wp_error($errors)) { 601 601 602 do_action('feu_after_update_user', $user, $ _POST);602 do_action('feu_after_update_user', $user, $post); 603 603 if ($this->get_display_custom_profile_settings()) { 604 604 do_action('personal_options_update', $user_id); -
front-end-users/tags/1.2.2/readme.txt
r473599 r484249 4 4 Requires at least: 3.0 5 5 Tested up to: 3.3 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 7 7 8 8 Hides the WordPress admin section from specified user roles, allows users to edit their settings from the front-end, and more. -
front-end-users/trunk/front_end_users.php
r473599 r484249 5 5 Description: Hides the WordPress admin section from specified user roles, allows users to edit their settings from the front-end, and allows for customization of user-specific pages on the front-end. 6 6 Author: Tom Benner 7 Version: 1.2. 17 Version: 1.2.2 8 8 Author URI: 9 9 */ -
front-end-users/trunk/lib/front_end_users.php
r473599 r484249 555 555 // Profile settings-related functions 556 556 557 public function update_user_settings(&$user, $ _POST) {558 559 if (empty($ _POST)) {557 public function update_user_settings(&$user, $post) { 558 559 if (empty($post)) { 560 560 return null; 561 561 } … … 580 580 581 581 foreach($required_fields as $field) { 582 if (!isset($ _POST[$field])) {582 if (!isset($post[$field])) { 583 583 $has_required_fields = false; 584 584 break; … … 587 587 588 588 // If everything looks valid, use WP's edit_user() (which handles POST data behind the scenes) to update the user's data. 589 if ($has_required_fields && $user_id == $ _POST['user_id']) {589 if ($has_required_fields && $user_id == $post['user_id']) { 590 590 591 591 require_once ABSPATH.'wp-admin/includes/admin.php'; 592 592 593 do_action('feu_before_update_user', $ _POST);593 do_action('feu_before_update_user', $post); 594 594 595 595 $errors = edit_user($user_id); … … 600 600 if (!is_wp_error($errors)) { 601 601 602 do_action('feu_after_update_user', $user, $ _POST);602 do_action('feu_after_update_user', $user, $post); 603 603 if ($this->get_display_custom_profile_settings()) { 604 604 do_action('personal_options_update', $user_id); -
front-end-users/trunk/readme.txt
r473599 r484249 4 4 Requires at least: 3.0 5 5 Tested up to: 3.3 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 7 7 8 8 Hides the WordPress admin section from specified user roles, allows users to edit their settings from the front-end, and more.
Note: See TracChangeset
for help on using the changeset viewer.