WordPress.org

Make WordPress Core

Ticket #4950: author-jabber.diff

File author-jabber.diff, 940 bytes (added by Otto42, 11 years ago)

Adds jabber functions.

  • wp-includes/author-template.php

     
    271271}
    272272
    273273/**
     274 * Get the Jabber/GoogleTalk/XMPP address of the author of the current post in the Loop.
     275 * @global object $authordata The current author's DB object.
     276 * @return string The author's Jabber address.
     277 */
     278function get_the_author_jabber() {
     279        global $authordata;
     280        return $authordata->jabber;
     281}
     282
     283/**
     284 * Echo the Jabber/GoogleTalk/XMPP address of the author of the current post in the Loop.
     285 * @see get_the_author_jabber()
     286 * @return null
     287 */
     288function the_author_jabber() {
     289        echo get_the_author_jabber();
     290}
     291
     292/**
    274293 * Get the number of posts by the author of the current post in the Loop.
    275294 * @global object $post The current post in the Loop's DB object.
    276295 * @see get_usernumposts()