[wp-trac] [WordPress Trac] #11386: New _deprecated_argument() function

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 10 15:01:41 UTC 2010


#11386: New _deprecated_argument() function
------------------------------+---------------------------------------------
 Reporter:  nacin             |        Owner:  westi 
     Type:  enhancement       |       Status:  closed
 Priority:  normal            |    Milestone:  3.0   
Component:  Inline Docs       |      Version:        
 Severity:  normal            |   Resolution:  fixed 
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by westi):

 Replying to [comment:41 strider72]:
 > I thought the $version argument was being added to the end of the
 arguments for backwards compatibility?
 >
 > Because in trunk WP, $version is the middle of the three, e.g. in
 _deprecated_function:
 >
 > {{{$function, $version, $replacement=null}}}
 >
 > shouldn't that be:
 >
 > {{{$function, $replacement=null, $version=null}}}
 >
 > ?

 {{{$version}}} has always been in that place in the function call
 arguments as the {{{$replacement}}} is optional.

 {{{$version}}} has been added to the actions as an extra argument at the
 end.

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


More information about the wp-trac mailing list