Skip to content

Commit

Permalink
Fix default image in related posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza authored Dec 21, 2024
1 parent a7627eb commit 0fd0d74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function wzkb_get_the_post_thumbnail( $args = array() ) {

$defaults = array(
'post' => get_post(),
'thumb_default' => __DIR__ . '/frontend/images/default-thumb.png',
'thumb_default' => plugins_url( 'frontend/images/default-thumb.png', __FILE__ ),
'class' => 'wzkb-relatd-article-thumb',
'size' => 'thumbnail',
'scan_images' => true,
Expand Down
2 changes: 1 addition & 1 deletion knowledgebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Plugin Name: WebberZone Knowledge Base
* Plugin URI: https://github.com/WebberZone/knowledgebase
* Description: Create a multi-product knowledge base on your WordPress site.
* Version: 2.3.0
* Version: 2.3.1-beta1
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: knowledge base, knowledgebase, FAQ, frequently asked questions, support, d
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 2.3.0
Stable tag: 2.3.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Upgrade Notice ==

= 2.3.0 =
= 2.3.1 =
Completely rewritten. Several new features and enhancements.

== Changelog ==

= 2.3.1

* Bug fix:
* Default thumbnail didn't work properly in the related posts.

= 2.3.0 =

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

0 comments on commit 0fd0d74

Please sign in to comment.