WordPress.org

Plugin Directory

Changeset 570646


Ignore:
Timestamp:
07/11/12 14:45:41 (22 months ago)
Author:
tott
Message:

allow commas in field hints and error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • easy-custom-fields/trunk/easy-custom-fields.php

    r538896 r570646  
    55Plugin URI: http://wordpress.org/extend/plugins/easy-custom-fields/ 
    66Description: A set of extendable classes for easy Custom Field Handling 
    7 Version: 0.5 
     7Version: 0.6 
    88Author: Thorsten Ott 
    99Author URI: http://automattic.com 
     
    552552     
    553553                        // check hint 
    554                         if ( !empty( $field_value ) && $field_name == 'hint' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.]+$#miU", $field_value ) ) { 
     554                        if ( !empty( $field_value ) && $field_name == 'hint' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.\,]+$#miU", $field_value ) ) { 
    555555                            $this->add_admin_notice( sprintf( __( "Field hint %s for group %s contains invalid chars use only [a-zA-Z0-9_-\s:/\.]" ), $field_value, $group_id ) ); 
    556556                            continue; 
     
    558558     
    559559                        // check error_msg 
    560                         if ( !empty( $field_value ) && $field_name == 'error_msg' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.]+$#miU", $field_value ) ) { 
     560                        if ( !empty( $field_value ) && $field_name == 'error_msg' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.\,]+$#miU", $field_value ) ) { 
    561561                            $this->add_admin_notice( sprintf( __( "Field error_msg %s for group %s contains invalid chars use only [a-zA-Z0-9_-\s:/\.]" ), $field_value, $group_id ) ); 
    562562                            continue; 
Note: See TracChangeset for help on using the changeset viewer.