Changeset 3399496
- Timestamp:
- 11/20/2025 08:12:37 AM (8 weeks ago)
- Location:
- emergency-password-reset
- Files:
-
- 4 added
- 2 edited
-
tags/9.2 (added)
-
tags/9.2/index.php (added)
-
tags/9.2/readme.txt (added)
-
tags/9.2/screenshot-1.png (added)
-
trunk/index.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
emergency-password-reset/trunk/index.php
r3399475 r3399496 4 4 Plugin URI: http://www.themoyles.co.uk 5 5 Description: Resets all passwords, emailing them the reset link - <a href="./users.php?page=emergency_password_reset_main">Reset Passwords now</a> 6 Version: 9. 16 Version: 9.2 7 7 Author: andymoyle 8 8 Author URI:http://www.themoyles.co.uk … … 205 205 { 206 206 global $wpdb; 207 if(!is_user_logged in())exit('Nope!');208 if(!current_user_can('manage -options')){exit('Not happening');}207 if(!is_user_logged_in())exit('Nope!'); 208 if(!current_user_can('manage_options')){exit('Not happening');} 209 209 $results=$wpdb->get_results('SELECT ID FROM '.$wpdb->prefix.'users',ARRAY_N); 210 210 … … 222 222 { 223 223 224 if(!empty($results[ 0][$i+($y*10)]))$users[]=$results[0][$i+($y*10)];224 if(!empty($results[$i+($y*10)]))$users[]=$results[$i+($y*10)][0]; 225 225 } 226 226 … … 272 272 add_filter( 'wp_mail_from', 'emergency_password_reset_from_email' ); 273 273 add_filter('wp_mail_content_type','emergency_password_reset_set_html_mail_content_type'); 274 if(wp_mail(get_option('admin_email'),$settings['email_subject'],$message,$headers)) 275 { 276 echo '<p>Email sent BCC to '.esc_html(implode(',',$BCC)).'</p>'; 277 }else 278 { 279 echo '<p>Email failure BCC to '.esc_html(implode(',',$BCC)).'</p>'; 280 echo'<pre>'; 281 print_r($GLOBALS['phpmailer']); 282 echo'</pre>'; 283 } 274 $return = wp_mail(get_option('admin_email'),$settings['email_subject'],$message,$headers); 275 if( is_wp_error( $return ) ) { 276 echo $return->get_error_message(); 277 } 278 284 279 remove_filter( 'wp_mail_from_name', 'emergency_password_reset_from_name'); 285 280 remove_filter( 'wp_mail_from', 'emergency_password_reset_from_email' ); -
emergency-password-reset/trunk/readme.txt
r3399475 r3399496 5 5 Requires at least: 2.7.0 6 6 Tested up to: 6.8 7 Stable tag: 9. 17 Stable tag: 9.2 8 8 Text Domain: emergency-password-reset 9 9 License: GPLv2 or later … … 42 42 43 43 == Changelog = 44 = 9.2 = 45 * Fix not all users password changed 44 46 = 9.1 = 45 47 * Security audit and update
Note: See TracChangeset
for help on using the changeset viewer.