explaing get_the_author

Discussion in 'WordPress' started by bhuppi890109, May 21, 2011.

  1. #1
    function get_the_author($deprecated = '') {
    global $authordata;

    if ( !empty( $deprecated ) )
    _deprecated_argument( __FUNCTION__, '2.1' );

    return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
    }


    can any one explain this function how it works and what is the meaning of _deprecated_argument(__FUNCTION__, '2.1' ); here


    Thanks in advance
     
    bhuppi890109, May 21, 2011 IP
  2. skynet88

    skynet88 Well-Known Member

    Messages:
    958
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130