Changeset 2818689
- Timestamp:
- 11/16/2022 02:56:59 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dyggrid/tags/1.2.3/dyg-post-grid/includes/class-dygpg-postgrid.php
r2818007 r2818689 144 144 public function dyg_post_grid($shortcode_atts = [], $inner = false) { 145 145 $shortcode_atts = apply_filters('dygpg-shortcode-atts', $shortcode_atts); 146 146 147 147 $this->atts = $shortcode_atts; 148 148 $this->args = $shortcode_atts; 149 149 $this->doing_full_wrapper = TRUE; // this will not be set during load more. used to check if filter widgets etc are required 150 151 150 //dont continue if no shortcode is provided 152 151 if (empty($shortcode_atts['id'] ?? '') && empty($shortcode_atts['post-id'] ?? '')) 153 152 return "<div>Your dyggrid shortcode is missing 'id=put-id-here'</div>"; 154 153 155 154 $this->handle_id($shortcode_atts['id'] ?? ''); 156 155 … … 382 381 'project_category' => $this->args['projectcategory'], 383 382 'post_parent' => $this->args['postparent'], 384 'orderby' => $this->args['orderby'],385 'order' => $this->args['order'],383 'orderby' => empty($this->args['orderby']) ? 'ID' : $this->args['orderby'], //empty sort order causes issues with paging 384 'order' => empty($this->args['order']) ? 'ASC' : $this->args['order'], 386 385 'meta_key' => $this->args['meta-key'], 387 386 'posts_per_page' => $this->args['pagesize'], … … 614 613 return $this->public_edit_id(); 615 614 616 if (isset($_POST['is_fb_preview']) || !is_user_logged_in() or !current_user_can('administrator'))615 if (isset($_POST['is_fb_preview']) || !is_user_logged_in() or!current_user_can('administrator')) 617 616 return ''; 618 617
Note: See TracChangeset
for help on using the changeset viewer.