Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
Fixed bugs:
 - widget wetory_favourite_posts was not querying custom post types
  • Loading branch information
wetory committed May 7, 2020
1 parent 3d2e4ae commit c37564d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions includes/widgets/widget-wetory-support-favourite-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ public function widget($args, $instance) {
$list_style = !empty($instance['list_style']) ? $instance['list_style'] : 'ol';
$show_date = !empty($instance['show_date']) ? (bool) $instance['show_date'] : false;
$show_thumb = !empty($instance['show_thumb']) ? (bool) $instance['show_thumb'] : false;

// query posts
$r = new WP_Query(array(
'post_type' => 'any',
'post__in' => $selected_posts,
'no_found_rows' => true,
'post_status' => 'publish',
Expand Down Expand Up @@ -301,7 +302,7 @@ public function form($instance) {
echo '</select></p>';
?>

<div class="widget-link-options" style="<?php echo $link_style === 'none' ? 'display: none;' : '';?>">
<div class="widget-link-options" style="<?php echo $link_style === 'none' ? 'display: none;' : ''; ?>">

<p>
<label for="<?php echo $this->get_field_id('link_title'); ?>"><?php esc_html_e('Link title:', 'wetory-support'); ?></label>
Expand Down
2 changes: 1 addition & 1 deletion wetory-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Wetory Support
* Plugin URI: https://www.wetory.eu/
* Description: Contains some basics for website projects, that improve usability and development. Brings new reusable elements and third party libraries to WordPress. Prerequisite for other Wetory plugins. More info on plugin's website.
* Version: 1.0.6
* Version: 1.0.7
* Author: Tomáš Rybnický
* Author URI: https://www.wetory.eu/
* License: GPL-2.0+
Expand Down

0 comments on commit c37564d

Please sign in to comment.