[wp-trac] [WordPress Trac] #62053: Warn logged in users when rendering empty template in the front end

WordPress Trac noreply at wordpress.org
Sun Nov 3 22:53:14 UTC 2024


#62053: Warn logged in users when rendering empty template in the front end
-------------------------+------------------------------
 Reporter:  vcanales     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+------------------------------

Comment (by peterwilsoncc):

 @mikachan Did you empty the template in the code editor or by deleting the
 blocks via the UI? It's possible the template was clear of blocks but had
 some white space causing the white screen.

 I noticed that if I delete all the code, I get the default while logged
 out. But if I make the content `<!-- empty but not empty -->` or even a
 few spaces then the template shows as a white screen for logged out users.

 Maybe WP needs some smarts to figure out if a template is truly empty.
 Unfortunately this will be more complex.

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


More information about the wp-trac mailing list