[wp-trac] [WordPress Trac] #59732: Theme live preview is broken

WordPress Trac noreply at wordpress.org
Wed Oct 25 12:25:09 UTC 2023


#59732: Theme live preview is broken
--------------------------+-----------------------------
 Reporter:  karl94        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The newly added memoization in 6.4 for `get_stylesheet_directory()` and
 `get_template_directory()` breaks themes live preview.

 https://github.com/WordPress/wordpress-
 develop/commit/ec21b604e0527cff54b774adcb9631036d6b57ec#diff-
 b9f1810ad43acfa11ba58a9f21eb0ee3a8063c80aa155de9b210323252534716R190-R223

 How to reproduce:
  - Load a WP 6.4 beta or RC (playground link:
 https://playground.wordpress.net/?theme=twentynineteen&lazy&wp=beta)
  - Install some classic themes e.g. twentytwenty and twentynineteen
  - Activate twentynineteen
  - Live preview twentytwenty
  - The preview is broken: the HTML comes from twentynineteen but the
 stylesheet is from twentytwenty

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59732>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list