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
[start-logic] [theme-preview] [fix] Apply the temporary patch only when WP version is between (inclusive) 6.3 and 6.3.1, after which the bug was fixed in the core (6.3.2+).
// @todo: Remove this code after a few months when WP 6.3 usage is low enough.
51
+
global$wp_version;
52
+
50
53
if (
51
54
! function_exists( 'wp_get_current_user' ) &&
52
55
/**
53
56
* `get_stylesheet()` will rely on `wp_get_current_user()` when it is being filtered by `theme-previews.php`. That happens only when the site editor is loaded or when the site editor is sending REST requests.
0 commit comments