Plugin Directory

Changeset 713030


Ignore:
Timestamp:
05/14/2013 05:25:33 PM (13 years ago)
Author:
mpvanwinkle77
Message:

Fix PHP 5.2 issue and cleanup styles

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

Legend:

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

    r711000 r713030  
    44Tags: registration, signup, wordpress 3.5, cms, users, user management
    55Requires at least: 3.0
    6 Tested up to: 3.5
    7 Stable tag: 2.2.0
     6Tested up to: 3.6
     7Stable tag: 2.2.1
    88
    99This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode.
     
    134134-enhancement: use new wp-media-modal instead of thickbox
    135135-feature: integrate custom fields with admin tables
     136
     137= 2.2.1 =
     138-Fix for PHP 5.2 backward compatibility
  • simplr-registration-form/trunk/simplr_reg_options.php

    r710995 r713030  
    9090}
    9191
    92 #reg-form input, #reg-form select, #reg-form textarea {
     92#reg-form input[type=text], #reg-form select, #reg-form textarea {
    9393    float:left;
    9494    margin:10px 0;
     
    113113
    114114#sortable .item input {
    115     margin-right:5px;
     115    margin:0 5px 0 0;
    116116}
    117117small {
  • simplr-registration-form/trunk/simplr_reg_page.php

    r710997 r713030  
    22/*
    33Plugin Name: Simplr User Registration Form Plus
    4 Version: 2.2.0
     4Version: 2.2.1
    55Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode.
    66Author: Mike Van Winkle
     
    99License: GPL
    1010*/
    11 //ini_set('display_errors', 1);error_reporting(E_ALL);
    1211//constants
    1312define("SIMPLR_URL", rtrim(WP_PLUGIN_URL,'/') . '/'.basename(dirname(__FILE__)) );
     
    641640
    642641function simplr_print_message() {
    643     $simplr_messages = @$_COOKIE['simplr_messages'] ?: false;
     642    $simplr_messages = @$_COOKIE['simplr_messages'] ? $_COOKIE['simplr_messages'] : false;
    644643    $messages = stripslashes($simplr_messages);
    645644    $messages = str_replace('[','',str_replace(']','',$messages));
     
    723722            $simplr_reg->stylesheet = $data['stylesheet'];
    724723            $simplr_reg->styles = $data['styles'];
    725             $simplr_reg->style_skin = @$data['style_skin'] ?: 'default.css';
     724            $simplr_reg->style_skin = @$data['style_skin'] ? $data['style_skin'] : 'default.css';
    726725            $simplr_reg->register_redirect = $data['register_redirect'];
    727726            $simplr_reg->thank_you = $data['thank_you'];
     
    892891        if( $screen->base != 'users' ) return $query;
    893892       
    894         $var = @$_REQUEST['orderby'] ?: false;
     893        $var = @$_REQUEST['orderby'] ? $_REQUEST['orderby'] : false;
    895894        if( !$var ) return $query;
    896895        //these fields are already sortable by wordpress
    897896        if( in_array( $var, array('first_name','last_name','email','login','name') ) ) return $query;
    898         $order = @esc_attr($_REQUEST['order']) ?: '';
     897        $order = @$_REQUEST['order'] ? esc_attr($_REQUEST['order']) : '';
    899898        //get our custom fields
    900899        $cols = new SREG_Fields();
  • simplr-registration-form/trunk/views/moderation.php

    r710995 r713030  
    1313//setup defaults
    1414foreach($defaults as $k => $v ) {
    15     $simplr_reg->$k = $simplr_reg->$k ?: $defaults->$k;
     15    $simplr_reg->$k = $simplr_reg->$k ? $simplr_reg->$k : $defaults->$k;
    1616}
    1717if(isset($data['mod-submit'])) {
    1818    if(!wp_verify_nonce(-1, $data['reg-mod']) && !current_user_can('manage_options')){ wp_die('Death to hackers!');}
    1919    foreach($data as $k => $v) {
    20         $simplr_reg->$k = $v ?: $defaults->$k;
     20        $simplr_reg->$k = $v ? $v : $defaults->$k;
    2121    }
    2222    update_option('simplr_reg_options', $simplr_reg);
Note: See TracChangeset for help on using the changeset viewer.