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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 19 00:00:12 GMT 2009


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

  * keywords:  has-patch =>


Comment:

 I'm giving up on this one jut tried

 {{{
         function the_author_meta($field = '') {

                 $output = '';
                 $output .= ("$authordata->" . $field);
                 global $authordata;
                 if ($field = 'ID') {
                 return (int) $output;
                 }
                 else{
                 return $output;
                 }
                 }
 }}}

 And one again no success with return. Last patch works but echos.

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


More information about the wp-trac mailing list