Plugin Directory

Changeset 725851


Ignore:
Timestamp:
06/12/2013 07:06:12 PM (13 years ago)
Author:
mpvanwinkle77
Message:

version 2.2.3

Location:
simplr-registration-form/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simplr-registration-form/trunk/readme.txt

    r716214 r725851  
    55Requires at least: 3.0
    66Tested up to: 3.6
    7 Stable tag: 2.2.2
     7Stable tag: 2.2.3
    88
    99This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode.
     
    140140= 2.2.2 =
    141141-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  
    22/*
    33Plugin Name: Simplr User Registration Form Plus
    4 Version: 2.2.2
     4Version: 2.2.3
    55Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode.
    66Author: Mike Van Winkle
     
    788788            $data = (array) $data['data'];
    789789            $data['blogname'] = get_option('blogname');
     790            do_action('simplr_activated_user', $data);
    790791            $subj = simplr_token_replace( $simplr_options->mod_email_activated_subj, $data );
    791792            $content = simplr_token_replace( $simplr_options->mod_email_activated, $data );
     
    914915    return $query;
    915916}
     917
     918add_filter('wp_authenticate_user','simplr_disable_login_inactive', 0);
     919function 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.