Changeset 538823
- Timestamp:
- 05/02/2012 08:14:06 AM (14 years ago)
- File:
-
- 1 edited
-
easy-custom-fields/trunk/easy-custom-fields.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-custom-fields/trunk/easy-custom-fields.php
r535214 r538823 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. 47 Version: 0.5 8 8 Author: Thorsten Ott 9 9 Author URI: http://automattic.com … … 429 429 public function save_post_cb($post_id, $post) { 430 430 foreach( (array) $this->_used_fields as $box_id => $field_ids ) { 431 // bypass fields which are not used in this group 432 if ( !in_array( $_POST['post_type'], $this->_field_data[$box_id]['pages'] ) ) 433 continue; 434 431 435 if ( ( ! isset($_REQUEST[$this->_plugin_prefix . '_' . $box_id . '_nonce']) ) || ( ! wp_verify_nonce( $_REQUEST[$this->_plugin_prefix . '_' . $box_id . '_nonce'], $this->_plugin_prefix . '_' . $box_id . '_nonce' ) ) ) { 432 436 return $post->ID; … … 456 460 continue; 457 461 } 458 if ( !$value ) { 459 // delete blanks 460 $this->{$field_id}->delete( $post->ID ); 461 } else { 462 $this->{$field_id}->set( $value, $post->ID ); 463 } 462 $this->{$field_id}->set( $value, $post->ID ); 464 463 } else { 465 464 // delete blanks
Note: See TracChangeset
for help on using the changeset viewer.