You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
@westonruter Well, it seems the issue is now much bigger than it was. I cannot see any new widgets in the Snapshot, regardless of if I'm authenticated or not. Even if I comment out that return.
@westonruter It appears to be an issue with the widget value not being set when saving the Snapshot for new widgets. I'm trying to hunt down the root issue, but if you have any suggestions that would be great. Perhaps there was a change in the widgets API that is causing this?
The constructor for
WP_Customize_Widgets
has this bit of code before it does theadd_action()
andadd_filter()
calls:This will cause a problem for previewing widgets on the frontend for unauthenticated users because these filters/actions aren't getting added: https://github.com/xwp/wordpress-develop/blob/885d38edc8de04c3cf7baced5ef0effc8c5a6bd6/src/wp-includes/class-wp-customize-widgets.php#L101-L120
Snapshots should be adding these filters and actions (as required) if
! has_filter()
or! has_action()
.The text was updated successfully, but these errors were encountered: