Changeset 12537 for trunk/wp-includes/author-template.php
- Timestamp:
- 12/24/2009 11:12:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r12284 r12537 42 42 * 43 43 * @param string $deprecated Deprecated. 44 * @param string $deprecated_echo Echo the string or return it.44 * @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it. 45 45 * @return string The author's display name, from get_the_author(). 46 46 */ 47 47 function the_author($deprecated = '', $deprecated_echo = true) { 48 if ( !empty($deprecated) ) 49 _deprecated_argument(__FUNCTION__, 'deprecated', '1.5'); 50 if ( $deprecated_echo !== true ) 51 _deprecated_argument(__FUNCTION__, 'deprecated_echo', '1.5', __('Use get_the_author() instead if you do not want the value echoed.')); 48 52 if ( $deprecated_echo ) 49 53 echo get_the_author(); … … 178 182 */ 179 183 function the_author_posts_link($deprecated = '') { 184 if ( !empty( $deprecated ) ) 185 _deprecated_argument(__FUNCTION__, 'deprecated', '0.0'); 186 180 187 global $authordata; 181 188 $link = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.