Changeset 725851
- Timestamp:
- 06/12/2013 07:06:12 PM (13 years ago)
- Location:
- simplr-registration-form/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simplr_reg_page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simplr-registration-form/trunk/readme.txt
r716214 r725851 5 5 Requires at least: 3.0 6 6 Tested up to: 3.6 7 Stable tag: 2.2. 27 Stable tag: 2.2.3 8 8 9 9 This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode. … … 140 140 = 2.2.2 = 141 141 -Fix moderation comments and default email. 142 143 = 2.2.3 = 144 -Fix moderation login bug 145 -Add 'simplr_activated_user' action -
simplr-registration-form/trunk/simplr_reg_page.php
r716214 r725851 2 2 /* 3 3 Plugin Name: Simplr User Registration Form Plus 4 Version: 2.2. 24 Version: 2.2.3 5 5 Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode. 6 6 Author: Mike Van Winkle … … 788 788 $data = (array) $data['data']; 789 789 $data['blogname'] = get_option('blogname'); 790 do_action('simplr_activated_user', $data); 790 791 $subj = simplr_token_replace( $simplr_options->mod_email_activated_subj, $data ); 791 792 $content = simplr_token_replace( $simplr_options->mod_email_activated, $data ); … … 914 915 return $query; 915 916 } 917 918 add_filter('wp_authenticate_user','simplr_disable_login_inactive', 0); 919 function simplr_disable_login_inactive($user) { 920 921 if( empty($user) || is_wp_error($user) ) 922 return $user; 923 924 if( $user->user_status == 2 ) 925 return new WP_Error("error", __("<strong>ERROR</strong>: This account has not yet been approved by the moderator", 'simplr-reg') ); 926 927 return $user; 928 }
Note: See TracChangeset
for help on using the changeset viewer.