[wp-trac] [WordPress Trac] #56939: Twenty Twenty-Three never calls comments_template

WordPress Trac noreply at wordpress.org
Thu Nov 3 00:57:27 UTC 2022


#56939: Twenty Twenty-Three never calls comments_template
---------------------------+-------------------------
 Reporter:  Justin_K       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  6.1
 Severity:  normal         |  Resolution:  worksforme
 Keywords:  close          |     Focuses:
---------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 If you also want to hide existing templates, you can use the
 `pre_render_block` to shortcircuit the `core/comments` block and return an
 empty string.

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


More information about the wp-trac mailing list