• ResolvedPlugin Author Mej de Castro

    (@mej)


    We’ve introduced significant improvements to the Display Logic system in version 4.2.0 to enhance security and stability.

    The previous Display Logic implementation evaluated PHP logic directly inside widgets. This approach may introduce security risks if the logic is misused.

    This update introduces a centralized Logic Snippet system that provides a more structured and controlled way to manage widget visibility rules. The system stores and processes logic conditions in a dedicated environment, which helps Widget Options validate and sanitize logic more consistently while improving overall security.

    Key changes include:

    • Automatic migration of existing widget logic into Logic Snippets during the update.
    • Existing logic is preserved as Legacy Code, ensuring widgets continue to work exactly as before.
    • A migration notice will appear in the WordPress dashboard, allowing you to review and choose which logic codes to migrate.
    • All new or modified logic must now be managed through the Widget Options Snippet page.
    • Updated role-based restrictions, where administrators manage logic creation while other roles can apply predefined logic rules.

    These improvements provide a more secure and organized way to manage Display Logic while maintaining compatibility with your existing widget settings.

    For full details and setup instructions, please refer to the documentation here: https://widget-options.com/docs/widget-options-new-display-logic-system/

    Need support for Widget Options Extended: Please open a support ticket here.

Viewing 12 replies - 1 through 12 (of 12 total)
  • norwood451

    (@norwood451)

    Thank you. I rolled back to 4.09 version and it says to update to 4.1.3 version – do I need to update to 4.1.3 before I can update to 4.2.0 version, or should I just wait until it shows in wordpress under plugins?

    aparentdesign

    (@aparentdesign)

    We use the is single logic and then specify a post ID or an array of post IDs, for example: is_single(934).

    Does the new logic mean we’d need a snippet for every single instance of this? This may be complicated to manage for many posts. Why not a WYSIWYG tool to select specific posts, or an abstract way of selecting the functions but adding the IDs in a parameter?

    christinahills

    (@christinahills)

    thank you for updating us on the new system here https://widget-options.com/docs/widget-options-new-display-logic-system/

    do you have a video that walks us through these new changes ?

    Plugin Author Mej de Castro

    (@mej)

    Hey @aparentdesign,

    Thanks for your feedback regarding the new Widget Logic Snippet system.

    If you’re using the same logic code, such as is_single(934), for all the widgets you prefer, you’ll only need to apply the same snippet to those widgets by choosing in the dropdown on the Display Logic tab. However, if the ID changes, you’ll need to create a new snippet with a different logic code using the updated ID.

    Regarding your query @christinahills, we don’t have a video walkthrough yet for the new snippet system but we’ll consider adding a video to the documentation. Thanks!

    Kind Regards,
    Mej, Widget Options Team

    commuter

    (@commuter)

    How do I make the “Widget Options – Display Logic Migration Required” notice go away?

    miroruse

    (@miroruse)

    Yes, it doesn’t disappear even after

    No legacy display logic found.

    All widgets are using the new snippet-based system.

    And back to the same message again:

    Widget Options – Display Logic Migration Required

    Some widgets still use legacy inline display logic code that needs to be migrated to the new snippet-based system.

    Go to Migration Page

    It’s a neverending cycle.

    Do some update to remove it after it checks for any problems.

    Plugin Author Mej de Castro

    (@mej)

    Hi @commuter @miroruse,

    We’ve released a new version that fixes the migration notice issue. This update adds a close button and includes a check that automatically hides the notice when no display logic is detected. Let us know if everything works properly on your end!

    Kind Regards,
    Mej, Widget Options Team

    Thank you! Now it is possible to hide the message with X button.

    Plugin Author Mej de Castro

    (@mej)

    Thanks for your update @miroruse!

    tambaqui

    (@tambaqui)

    Hi,
    After updating to version 4.2.1, all the wp core blocks are broken with the error “The block contains unexpected or invalid content,” and if I try to restore them, all customizations are lost. This happens regardless of whether or not I perform the migration.

    I had to revert to version 4.1.1 and restore the broken pages from previous revisions.

    Any solutions?

    Plugin Author Mej de Castro

    (@mej)

    Hi @tambaqui,

    Thanks for the update. Our development team has resolved the issue and will be releasing an update shortly.

    We appreciate your patience!

    Kind Regards,
    Mej, Widget Options Team

    Thanks @mej it works!

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.