PluginProbe
WP Ultimate Post Grid / 1.6
WP Ultimate Post Grid v1.6
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | helpers/grid_save.php +1 -28 2.01.6 View file →
@@ -29,12 +29,8 @@
29 29 if( isset( $new ) && $field == 'wpupg_post_types' ) {
30 30 $new = array( $new );
31 31 }
32 32
33 - if( isset( $new ) && $field == 'wpupg_taxonomies' ) {
34 - $new = array( $new );
35 - }
36 -
37 33 // Update or delete meta data if changed
38 34 if( isset( $new ) && $new != $old ) {
39 35 update_post_meta( $post_id, $field, $new );
40 36 } elseif ( $new == '' && $old ) {
@@ -77,33 +73,10 @@
77 73 // Filter Taxonomies
78 74 $post_type = $_POST['wpupg_post_types'];
79 75
80 76 if( isset( $_POST['wpupg_filter_taxonomy_' . $post_type] ) ) {
81 - $filter_taxonomies = $_POST['wpupg_filter_taxonomy_' . $post_type];
82 - update_post_meta( $post_id, 'wpupg_filter_taxonomies', $filter_taxonomies );
77 + update_post_meta( $post_id, 'wpupg_filter_taxonomies', $_POST['wpupg_filter_taxonomy_' . $post_type] );
83 78 }
84 -
85 - // Filter Limit Terms
86 - $filter_limit_terms = array();
87 - if( isset( $filter_taxonomies ) ) {
88 - foreach( $filter_taxonomies as $filter_taxonomy ) {
89 - if( isset( $_POST['wpupg_filter_limit_terms_' . $filter_taxonomy] ) ) {
90 - $filter_limit_terms[$filter_taxonomy] = $_POST['wpupg_filter_limit_terms_' . $filter_taxonomy];
91 - }
92 - }
93 - }
94 - update_post_meta( $post_id, 'wpupg_filter_limit_terms', $filter_limit_terms );
95 -
96 - // Filter Dropdown Labels
97 - $filter_dropdown_labels = array();
98 - if( isset( $filter_taxonomies ) ) {
99 - foreach( $filter_taxonomies as $filter_taxonomy ) {
100 - if( isset( $_POST['wpupg_filter_dropdown_label_' . $filter_taxonomy] ) ) {
101 - $filter_dropdown_labels[$filter_taxonomy] = $_POST['wpupg_filter_dropdown_label_' . $filter_taxonomy];
102 - }
103 - }
104 - }
105 - update_post_meta( $post_id, 'wpupg_filter_dropdown_labels', $filter_dropdown_labels );
106 79
107 80 // Filter style metadata
108 81 $styles = $grid->filter_style_fields();
109 82 $filter_style = array();