Skip to content

Commit 0fd0d74

Browse files
authored
Fix default image in related posts.
1 parent a7627eb commit 0fd0d74

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function wzkb_get_the_post_thumbnail( $args = array() ) {
153153

154154
$defaults = array(
155155
'post' => get_post(),
156-
'thumb_default' => __DIR__ . '/frontend/images/default-thumb.png',
156+
'thumb_default' => plugins_url( 'frontend/images/default-thumb.png', __FILE__ ),
157157
'class' => 'wzkb-relatd-article-thumb',
158158
'size' => 'thumbnail',
159159
'scan_images' => true,

knowledgebase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Plugin Name: WebberZone Knowledge Base
1414
* Plugin URI: https://github.com/WebberZone/knowledgebase
1515
* Description: Create a multi-product knowledge base on your WordPress site.
16-
* Version: 2.3.0
16+
* Version: 2.3.1-beta1
1717
* Author: WebberZone
1818
* Author URI: https://webberzone.com
1919
* License: GPL-2.0+

readme.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: knowledge base, knowledgebase, FAQ, frequently asked questions, support, d
55
Requires at least: 6.3
66
Tested up to: 6.7
77
Requires PHP: 7.4
8-
Stable tag: 2.3.0
8+
Stable tag: 2.3.1
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -113,11 +113,16 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
113113

114114
== Upgrade Notice ==
115115

116-
= 2.3.0 =
116+
= 2.3.1 =
117117
Completely rewritten. Several new features and enhancements.
118118

119119
== Changelog ==
120120

121+
= 2.3.1
122+
123+
* Bug fix:
124+
* Default thumbnail didn't work properly in the related posts.
125+
121126
= 2.3.0 =
122127

123128
Release post: [https://webberzone.com/blog/knowledge-base-v2-3-0/](https://webberzone.com/blog/knowledge-base-v2-3-0/)

0 commit comments

Comments
 (0)