PluginProbe
WP Ultimate Post Grid / 2.0
WP Ultimate Post Grid v2.0
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 -14 2.8.22.0 View file →
@@ -14,9 +14,9 @@
14 14 if ( !isset( $_POST['wpupg_nonce'] ) || !wp_verify_nonce( $_POST['wpupg_nonce'], 'grid' ) ) {
15 15 return;
16 16 }
17 17
18 - $grid = WPUPG_Grid_Manager::get( $post_id );
18 + $grid = new WPUPG_Grid( $post_id );
19 19
20 20 // Basic metadata
21 21 $fields = $grid->fields();
22 22
@@ -38,21 +38,8 @@
38 38 if( isset( $new ) && $new != $old ) {
39 39 update_post_meta( $post_id, $field, $new );
40 40 } elseif ( $new == '' && $old ) {
41 41 delete_post_meta( $post_id, $field, $old );
42 - }
43 - }
44 -
45 - // Limit terms
46 - if( isset( $_POST['wpupg_limit_terms'] ) && $_POST['wpupg_limit_terms'] ) {
47 - $taxonomy = isset( $_POST['wpupg_taxonomies'] ) ? $_POST['wpupg_taxonomies'] : false;
48 -
49 - if ( $taxonomy ) {
50 - $limit_terms_terms = isset( $_POST['wpupg_form_limit_terms_' . $taxonomy . '_terms'] ) ? $_POST['wpupg_form_limit_terms_' . $taxonomy . '_terms'] : array();
51 - $limit_terms_type = isset( $_POST['wpupg_form_limit_terms_' . $taxonomy . '_type'] ) ? $_POST['wpupg_form_limit_terms_' . $taxonomy . '_type'] : 'restrict';
52 -
53 - update_post_meta( $post_id, 'wpupg_limit_terms_terms', $limit_terms_terms );
54 - update_post_meta( $post_id, 'wpupg_limit_terms_type', $limit_terms_type );
55 42 }
56 43 }
57 44
58 45 // Limit rules