[wp-trac] [WordPress Trac] #21527: post_type_supports(), no arguments case

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 9 15:47:15 UTC 2012


#21527: post_type_supports(), no arguments case
-------------------------+-----------------------------
 Reporter:  bilalcoder   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Post Types   |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 At line '''1388''' in '''wp-includes/post.php''' when checking for number
 of arguments passed to '''post_type_supports()''':


 ''if( function_num_args() <= 2 )
    return true;''

 Obviously it does not hurt, but absolutely it's just an extra code.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21527>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list