[wp-trac] [WordPress Trac] #55437: Bugfix: Display correct theme in site editor

WordPress Trac noreply at wordpress.org
Mon Nov 21 15:14:33 UTC 2022


#55437: Bugfix: Display correct theme in site editor
-------------------------------------------------+-------------------------
 Reporter:  ptahdunbar                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.2
Component:  Themes                               |     Version:  5.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  ui,
  tests                                          |  administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch needs-testing 2nd-opinion needs-unit-tests => has-
     patch needs-testing has-unit-tests
 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing


Comment:

 Hi there, thanks for the ticket!

 On a closer look, it appears that the change to
 `_build_block_template_result_from_post()` is not needed, as it already
 retrieves the correct theme from the post's associated terms in the
 `wp_theme` taxonomy.

 [attachment:"55437.diff"] adds unit tests.

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


More information about the wp-trac mailing list