Plugin Directory

Changeset 798318


Ignore:
Timestamp:
11/04/2013 12:01:27 AM (12 years ago)
Author:
mpvanwinkle77
Message:

Remove DIR references and add sreg.class.php

Location:
simplr-registration-form/trunk
Files:
1 added
3 edited

Legend:

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

    r776128 r798318  
    148148-Fix "undefined" notices
    149149-Fix incompatibility with login_message filter
     150
     151= 2.2.5 =
     152-fix backwar compatibility and sreg.class.php error
  • simplr-registration-form/trunk/simplr_form_functions.php

    r776128 r798318  
    323323    if( !in_array('username',$fields) OR empty($custom->fields->custom['username']) ) {
    324324        $form .=  '<div class="simplr-field '.apply_filters('username_error_class','') .'">';
    325         $form .=  '<label for="username" class="left">' .esc_attr(@$label_username ).' <span class="required">*</span></label>';
    326         $form .=  '<input type="text" name="username" class="right" value="'.esc_attr(@$data['username']) .'" /><br/>';
     325        $form .=  '<label for="username" class="left">' .@esc_attr($label_username ).' <span class="required">*</span></label>';
     326        $form .=  '<input type="text" name="username" class="right" value="'.@esc_attr($data['username']) .'" /><br/>';
    327327        $form .=  '</div><div class="simplr-clr"></div>';
    328328    }
     
    437437
    438438function sreg_basic($atts) {
    439     require_once __DIR__.'/lib/sreg.class.php';
     439    require_once dirname(__FILE__).'/lib/sreg.class.php';
    440440    //Check if the user is logged in, if so he doesn't need the registration page
    441441    if ( is_user_logged_in() AND !current_user_can('administrator') ) {
  • simplr-registration-form/trunk/simplr_reg_page.php

    r776128 r798318  
    22/*
    33Plugin Name: Simplr User Registration Form Plus
    4 Version: 2.2.4
     4Version: 2.2.5
    55Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode.
    66Author: Mike Van Winkle
Note: See TracChangeset for help on using the changeset viewer.