[wp-trac] [WordPress Trac] #19988: wp-comments-post ineffciency

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 8 12:39:10 UTC 2012


#19988: wp-comments-post ineffciency
-------------------------+------------------------------
 Reporter:  allarem      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  3.3.1
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by allarem):

 Replying to [comment:1 ocean90]:
 > Please don't re-add the closing PHP tag.
 hmm, I can't find that closing PHP tag in my svn repo(revision 19862)..
 {{{
 $location = apply_filters('comment_post_redirect', $location, $comment);
 wp_redirect($location);
 exit;
 EOF
 }}}
 > Related to email check: #17433
 >
 > > I think we should use filter_var to do such jobs to save some memory
 > Any stats?
 here is the result of
 {{{
 var_dump(memory_get_usage());
 }}}
 old:
 int(21705640)
 new:
 int(21700664)

 there is about 5KB less.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19988#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list