[wp-trac] [WordPress Trac] #34059: Abstract functionality from wp-comments-post.php

WordPress Trac noreply at wordpress.org
Mon Sep 28 18:53:07 UTC 2015


#34059: Abstract functionality from wp-comments-post.php
----------------------------+-----------------
 Reporter:  johnbillion     |      Owner:
     Type:  task (blessed)  |     Status:  new
 Priority:  normal          |  Milestone:  4.4
Component:  Comments        |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------
 `wp-comments-post.php` is a remnant of days gone past and a great example
 of technical debt. Everything going in is slashed, and every error
 condition results in an `exit`, except when it results in a redirect
 header followed by an `exit`.

 There's not much we can do about this, but what we can do it abstract a
 bunch of the code into a function, in order to make the actual process of
 submitting a comment unit testable.

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


More information about the wp-trac mailing list