[wp-trac] [WordPress Trac] #16995: wp_notify_postauthor() pluggable behavior problem

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 30 17:36:15 UTC 2011


#16995: wp_notify_postauthor() pluggable behavior problem
--------------------------+-----------------------------
 Reporter:  dglingren     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------

Comment (by scribu):

 @solarissmoke:
 [http://codex.wordpress.org/WordPress_Coding_Standards#Brace_Style Coding
 standards]:

 Instead of:

 {{{
 if(
 }}}

 it should be:

 {{{
 if (
 }}}

 Easier to prevent than to cure. ;-)

 While you're at it, you can also add spacing to these lines:

 {{{
 $comment = get_comment($comment_id);
 wp_notify_postauthor($comment_id, $comment->comment_type);
 }}}

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


More information about the wp-trac mailing list