[wp-trac] Re: [WordPress Trac] #6608: get_posts() needs a default argument

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 7 17:03:15 GMT 2008


#6608: get_posts() needs a default argument
------------------------+---------------------------------------------------
 Reporter:  karlkatzke  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  low         |    Milestone:  2.5.1    
Component:  General     |      Version:  2.5      
 Severity:  normal      |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by karlkatzke):

  * type:  enhancement => defect

Comment:

 When a function's parameters all have defaults, then a user shouldn't
 always be expected to pass in a parameter when they can just use those
 defaults.

 It's the community's job to write good code with reasonable defaults and
 to write code that doesn't throw errors when those defaults are used.

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


More information about the wp-trac mailing list