[Bug] using thumb in shortcode
-
In this file: recent-posts-widget-extended/includes/functions.php:
Inside the main function: rpwe_get_recent_posts(), there is an if statement that check if “thumb” exist or not. The if statement is wrong.
The original is:
if ( $args['thumb']) :
No matter what I entered: thumb=”true” or thumb=”false”, the thumb still show, because in this case, thumb is a string, not boolean.
To fix it, I change to:
if ( $args['thumb'] && $args['thumb'] != "false" ) :
It works.
Please fix this bug.
Thank you.
Same problem exists in $args[‘date’].
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Bug] using thumb in shortcode’ is closed to new replies.