Empty widget button after update.
There is a problem with the SiteOrigin Widgets Bundle buttons. It came after the updates on April 26-27. Next updates did not fix anything. The reinstallation did not help either.
All the global variables are empty ($button_attributes, $align, $icon, $href, etc.) in the widget instance.
This part of code in “/wp-content/plugins/so-widgets-bundle/widgets/button/tpl/default.php” helps to fix this issue until the next plugin update.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Here is the code I wrote above (images are not displayed).
$align = $instance['design']['align']; $href = $instance['url']; $text = $instance['text']; $icon_image_url = ''; if( ! empty( $instance['button_icon']['icon'] ) ) { $attachment = wp_get_attachment_image_src( $instance['button_icon']['icon'] ); if ( ! empty( $attachment ) ) { $icon_image_url = $attachment[0]; } } $icon = $instance['button_icon']['icon_selected']; $icon_color = $instance['button_icon']['icon_color'];Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.