Changeset 560101
- Timestamp:
- 06/18/2012 06:41:47 PM (14 years ago)
- Location:
- masquerade/trunk
- Files:
-
- 2 edited
-
masquerade.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
masquerade/trunk/masquerade.php
r559950 r560101 4 4 Plugin URI: http://castle-creative.com/ 5 5 Description: Adds a link to users.php that allows an administrator to login as that user without knowing the password. 6 Version: 1.0 6 Version: 1.01 7 7 Author: JR King 8 8 Author URI: http://castle-creative.com/ … … 49 49 var data = { 50 50 action: 'masq_user', 51 wponce: '<?php echo wp_create_nonce('masq_once')?>', 51 52 uid: uid 52 53 } … … 64 65 add_action('wp_ajax_masq_user', 'ajax_masq_login'); 65 66 function ajax_masq_login() { 67 $wponce=$_POST['wponce']; 68 if (! wp_verify_nonce($wponce, 'masq_once') ) wp_die('Security check'); 66 69 $uid = (int)($_POST['uid']); 67 70 $user_info = get_userdata($uid); -
masquerade/trunk/readme.txt
r559950 r560101 6 6 Requires at least: 2.8 7 7 Tested up to: 3.3.2 8 Stable tag: 1.0 8 Stable tag: 1.01 9 9 License: General Public License version 2 10 10 … … 28 28 == Change Log == 29 29 30 = 1.01 = 31 * Added nonce security check to POST request 32 30 33 = 1.0 = 31 34 * First stable release
Note: See TracChangeset
for help on using the changeset viewer.