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/models/grid.php +1 -24 2.32.0 View file →
@@ -5,11 +5,9 @@
5 5 private $post;
6 6 private $meta;
7 7 private $fields = array(
8 8 'wpupg_centered',
9 - 'wpupg_empty_message',
10 9 'wpupg_images_only',
11 - 'wpupg_filter_count',
12 10 'wpupg_filter_inverse',
13 11 'wpupg_filter_limit',
14 12 'wpupg_filter_limit_exclude',
15 13 'wpupg_filter_match_parents',
@@ -14,9 +12,8 @@
14 12 'wpupg_filter_limit_exclude',
15 13 'wpupg_filter_match_parents',
16 14 'wpupg_filter_multiselect',
17 15 'wpupg_filter_multiselect_type',
18 - 'wpupg_filter_show_empty',
19 16 'wpupg_filter_type',
20 17 'wpupg_pagination_type',
21 18 'wpupg_post_types',
22 19 'wpupg_layout_mode',
@@ -92,9 +89,8 @@
92 89 'padding_vertical' => '5',
93 90 'padding_horizontal' => '10',
94 91 'alignment' => 'left',
95 92 'all_button_text' => 'Check Constructor',
96 - 'term_order' => 'alphabetical',
97 93 ),
98 94 );
99 95
100 96 public function __construct( $post )
@@ -161,13 +157,8 @@
161 157 {
162 158 return $this->meta( 'wpupg_centered' );
163 159 }
164 160
165 - public function empty_message()
166 - {
167 - return $this->meta( 'wpupg_empty_message' );
168 - }
169 -
170 161 public function filter()
171 162 {
172 163 return $this->meta( 'wpupg_filter' );
173 164 }
@@ -196,17 +187,8 @@
196 187 $dropdown_labels = maybe_unserialize( $this->meta( 'wpupg_filter_dropdown_labels' ) );
197 188 return is_array( $dropdown_labels ) ? $dropdown_labels : array();
198 189 }
199 190
200 - public function filter_count()
201 - {
202 - if( WPUltimatePostGrid::is_premium_active() ) {
203 - return $this->meta( 'wpupg_filter_count' );
204 - } else {
205 - return false;
206 - }
207 - }
208 -
209 191 public function filter_inverse()
210 192 {
211 193 return $this->meta( 'wpupg_filter_inverse' );
212 194 }
@@ -245,13 +227,8 @@
245 227 {
246 228 return $this->meta( 'wpupg_filter_multiselect_type' );
247 229 }
248 230
249 - public function filter_show_empty()
250 - {
251 - return $this->meta( 'wpupg_filter_show_empty' );
252 - }
253 -
254 231 public function filter_type()
255 232 {
256 233 return $this->meta( 'wpupg_filter_type' );
257 234 }
@@ -465,9 +442,9 @@
465 442 $offset = $page * $posts_per_page;
466 443 }
467 444
468 445 $args = array(
469 - 'post_type' => $this->post_types(), // "any" doesn't work for private post types.
446 + 'post_type' => 'any',
470 447 'post_status' => 'any',
471 448 'order' => $this->order(),
472 449 'posts_per_page' => $posts_per_page,
473 450 'offset' => $offset,