[wp-trac] Re: [WordPress Trac] #8776: Deprecate all get_the_author_ and the_author_

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 30 19:48:14 GMT 2009


#8776: Deprecate all get_the_author_ and the_author_
------------------------------+---------------------------------------------
 Reporter:  thee17            |        Owner:  anonymous
     Type:  enhancement       |       Status:  reopened 
 Priority:  normal            |    Milestone:  2.8      
Component:  Template          |      Version:  2.8      
 Severity:  normal            |   Resolution:           
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------
Changes (by coffee2code):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 MichaelH is correct, the wrong variable name is being used.  `$auth_id` is
 an artifact of the now deprecated functions.  `$user_id` needs to be used
 to be able to use `get_the_author_meta()` for someone other than the
 current user.

 I've attached an amended version of 8776_4.diff which also includes some
 additional documentation for the `$user_id` arguments for the new
 functions, as 8776.5.diff

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


More information about the wp-trac mailing list