Home User profile
WTS
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
WTS
tagDiv Member

Hi, why has it not been fixed yet??? Everytime I update the Newspaper theme and the plugins I find this issue again. Please, fix it!.
My website has some widgets which are shown or hidden using WPML, depending on the language of the current page, but there could be any other plugin out there that hides a widget based on any condition and returns false, so this issue MUST be fixed, also considering that the PHP versions before the 8 are not supported anymore.

WTS
tagDiv Member

if( $currentWidgetInstanceSettings !== false && isset($widgetArgs['widget_id']) && strpos($widgetArgs['widget_id'], 'td_block') !== 0 ) {
is better; PLEASE add this fix to next releases.

WTS
tagDiv Member

Hi, this issue can be fixed by checking the value of the $currentWidgetInstanceSettings argument (which could be empty) in the on_widget_display_callback(); e.g. replacing the line 2929:

if( isset($widgetArgs['widget_id']) && strpos($widgetArgs['widget_id'], 'td_block') !== 0 ) {

with

if( $currentWidgetInstanceSettings && isset($widgetArgs['widget_id']) && strpos($widgetArgs['widget_id'], 'td_block') !== 0 ) {

Viewing 3 posts - 1 through 3 (of 3 total)