WordPress.org

Make WordPress Core

Ticket #4950: 4950-the_author_jabber.diff

File 4950-the_author_jabber.diff, 937 bytes (added by johnbillion, 5 years ago)

the_author_jabber() and get_the_author_jabber()

  • wp-includes/author-template.php

     
    350350} 
    351351 
    352352/** 
     353 * Retrieve the Jabber / Google Talk address of the author of the current post. 
     354 * 
     355 * @since 2.7.1 
     356 * @uses $authordata The current author's DB object. 
     357 * @return string The author's Jabber / Google Talk address. 
     358 */ 
     359function get_the_author_jabber() { 
     360        global $authordata; 
     361        return $authordata->jabber; 
     362} 
     363 
     364/** 
     365 * Display the Jabber / Google Talk address of the author of the current post. 
     366 * 
     367 * @link http://codex.wordpress.org/Template_Tags/the_author_jabber 
     368 * @since 2.7.1 
     369 * @see get_the_author_jabber() 
     370 */ 
     371function the_author_jabber() { 
     372        echo get_the_author_jabber(); 
     373} 
     374 
     375/** 
    353376 * Retrieve the number of posts by the author of the current post. 
    354377 * 
    355378 * @since 1.5