[Bug] Share text always visible
-
In the configuration of Ultimate FAQ you are able to disable sharing with all social media option. This works as expected only the front-end doesn’t remove the “Share:” text when no social media option is enabled. In order to fix this I made a change in the file .\Shortcodes\DisplayFAQs.php line 18.
Original:
$Socialmedia = explode(",", $Socialmedia_String);Bugfix:
$Socialmedia = strlen($Socialmedia_String) == 0 ? array() : explode(",", $Socialmedia_String);The explode function will always create an array with at least a single element. Therefore the check on line 125 will never be true.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[Bug] Share text always visible’ is closed to new replies.