[wp-trac] [WordPress Trac] #63076: Site Editor: Remove admin bar from site preview for classic theme

WordPress Trac noreply at wordpress.org
Tue Mar 11 13:18:35 UTC 2025


#63076: Site Editor: Remove admin bar from site preview for classic theme
--------------------------------------+---------------------
 Reporter:  wildworks                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.8
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by joemcgill):

 Thanks @wildworks! While testing the current PR, I noticed that this not
 only affects the admin bar, but also other front-end code gets loaded into
 this preview. For example, in my testing, the Query Monitor panel is
 loading in the preview (cc: @johnbillion).

 While the links and form elements do not seem to be functional, I suspect
 that things like cookie dialogues or ads might also get loaded in these
 previews, so we may need to find a more wholistic way of dealing with
 these concerns.

 There may be some prior art in the way the Customizer loads front end
 previews that we could borrow from here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63076#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list