-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget Visibility: Widget preview broken on WPCOM when visiblity settings are enabled for legacy widgets #22460
Comments
Tracked it down to the specific WPCOM condition in |
#22457 was for another bug :-) |
I have just run into this issue with the Music Player widget. I can replicate on my simple site. On Chrome. Theme is Twenty Seventeen. Screen.Capture.on.2022-05-24.at.17-27-23.mp4 |
@mreishus or @yoavf Would you be able to help with this one? I see the WordPress.com specific check was added in #20731 The relevant section seems to be: jetpack/projects/plugins/jetpack/modules/widget-visibility/widget-conditions.php Lines 787 to 794 in fd6d18a
But I don't think the if ( wp_verify_nonce( $nonce, 'gutenberg_request' ) &&
1 === preg_match( '~^/wp/v2/sites/\d+~', $current_url ) ) {
return $instance;
} Which seems to work on both the |
Came across this in 36060586-hc (and thought it was just a recurrence of Automattic/wp-calypso#56468). |
Another instance in 37809953-hc. I was able to see the widget previews load on my end through SU, but the user couldn't see any of their widgets (all of which had conditional visibility). |
32848742-hc |
Another report 6351339-zen |
Support References This comment is automatically generated. Please do not edit it.
|
Impacted plugin
Jetpack
Steps to Reproduce
Environment: On a WP.com simple site with a widget-area enabled theme (i.e "Twenty Fourteen")
A clear and concise description of what you expected to happen.
The widget preview should be visible, even when visiblity rules are set (like it happens on a non-wpcom site)
What actually happened
The widget preview is empty when visiblity settings are set
Other information
Screen.Capture.on.2022-01-24.at.10-06-16.mp4
Operating System
No response
OS Version
No response
Browser
Chrome/Chromium, Firefox
Browser Version(s)
No response
The text was updated successfully, but these errors were encountered: