[wp-trac] [WordPress Trac] #38514: Comment form performs a lot of unused logic when not open for comments

WordPress Trac noreply at wordpress.org
Wed Oct 26 14:15:02 UTC 2016


#38514: Comment form performs a lot of unused logic when not open for comments
-------------------------+-----------------------------
 Reporter:  jipmoors     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 The `comment_form` function performs a lot of data preparation and logic,
 but when the current object is closed for comments it will not use
 anything and just trigger an action.

 Suggesting to move the check to the start of the function, thus reducing
 complexity and increasing performance.

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


More information about the wp-trac mailing list