Changeset 894393
- Timestamp:
- 04/16/2014 04:14:39 PM (12 years ago)
- Location:
- flux
- Files:
-
- 2 edited
-
tags/0.0.3/plugin.php (modified) (2 diffs)
-
trunk/plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flux/tags/0.0.3/plugin.php
r894376 r894393 189 189 190 190 // if the type is set to metabox 191 if ( $metabox['#type'] == 'metabox' ) {191 if (is_array($metabox) && isset($metabox['#type']) && $metabox['#type'] == 'metabox' ) { 192 192 193 193 // If its has been defined for post types … … 894 894 $meta_to_save = array(); 895 895 foreach ($this->forms as $key => $form) { 896 if ( $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {896 if (is_array($form) && isset($form['#type']) && $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) { 897 897 foreach ($form['#post_types'] as $post_type) { 898 898 if (is_object($post) && $post_type == $post->post_type) { -
flux/trunk/plugin.php
r894373 r894393 189 189 190 190 // if the type is set to metabox 191 if ( $metabox['#type'] == 'metabox' ) {191 if (is_array($metabox) && isset($metabox['#type']) && $metabox['#type'] == 'metabox' ) { 192 192 193 193 // If its has been defined for post types … … 894 894 $meta_to_save = array(); 895 895 foreach ($this->forms as $key => $form) { 896 if ( $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {896 if (is_array($form) && isset($form['#type']) && $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) { 897 897 foreach ($form['#post_types'] as $post_type) { 898 898 if (is_object($post) && $post_type == $post->post_type) {
Note: See TracChangeset
for help on using the changeset viewer.