Changeset 527186
- Timestamp:
- 04/04/2012 09:16:57 AM (14 years ago)
- Location:
- easy-custom-fields/trunk
- Files:
-
- 2 edited
-
easy-custom-fields.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-custom-fields/trunk/easy-custom-fields.php
r527123 r527186 5 5 Plugin URI: http://wordpress.org/extend/plugins/easy-custom-fields/ 6 6 Description: A set of extendable classes for easy Custom Field Handling 7 Version: 0. 27 Version: 0.3 8 8 Author: Thorsten Ott 9 9 Author URI: http://automattic.com … … 13 13 14 14 require_once( WP_PLUGIN_DIR . '/easy-custom-fields/easy-custom-fields.php' ); 15 15 16 $field_data = array ( 16 17 'testgroup' => array ( // unique group id … … 27 28 28 29 require_once( WP_PLUGIN_DIR . '/easy-custom-fields/easy-custom-fields.php' ); 30 29 31 $field_data = array ( 30 32 'testgroup' => array ( … … 523 525 foreach( (array) $group_data['fields'] as $field_id => $field ) { 524 526 527 $_fields[$field_id] = array( 'id' => $field_id, 'label' => null, 'hint' => null, 'class' => null, 'type' => null, 'validate' => null, 'error_msg' => null, 'input_class' => null ); 528 525 529 // check field id 526 530 if ( empty( $field_id ) ) { … … 541 545 542 546 // check hint 543 if ( !empty( $field_value ) && $field_name == 'hint' && !preg_match( "#^[a-zA-Z0-9_-\s: ]+$#miU", $field_value ) ) {544 $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 ) );547 if ( !empty( $field_value ) && $field_name == 'hint' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.]+$#miU", $field_value ) ) { 548 $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 ) ); 545 549 continue; 546 550 } 547 551 548 552 // check error_msg 549 if ( !empty( $field_value ) && $field_name == 'error_msg' && !preg_match( "#^[a-zA-Z0-9_-\s: ]+$#miU", $field_value ) ) {550 $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 ) );553 if ( !empty( $field_value ) && $field_name == 'error_msg' && !preg_match( "#^[a-zA-Z0-9_-\s:/\.]+$#miU", $field_value ) ) { 554 $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 ) ); 551 555 continue; 552 556 } … … 582 586 $this->_field_data[$group_id] = array( 583 587 'title' => ( ! empty( $group_data['title'] ) ) ? $group_data['title'] : null, 584 'class' => ( ! empty( $group_data['class'] ) ) ? $group_data[' title'] : null,588 'class' => ( ! empty( $group_data['class'] ) ) ? $group_data['class'] : null, 585 589 'fields' => $_fields, 586 590 'pages' => ( ! empty( $group_data['pages'] ) ) ? $group_data['pages'] : null, -
easy-custom-fields/trunk/readme.txt
r527123 r527186 3 3 Tags: custom fields, post meta, post_meta, custom post fields 4 4 Requires at least: 2.9.2 5 Tested up to: 3.3 5 Tested up to: 3.3.1 6 6 Stable tag: trunk 7 7
Note: See TracChangeset
for help on using the changeset viewer.