Changeset 12680 for trunk/wp-includes/author-template.php
- Timestamp:
- 01/09/2010 10:03:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r12598 r12680 25 25 26 26 if ( !empty( $deprecated ) ) 27 _deprecated_argument( __FUNCTION__, ' 0.0' );27 _deprecated_argument( __FUNCTION__, '2.1' ); 28 28 29 29 return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null); … … 50 50 */ 51 51 function the_author( $deprecated = '', $deprecated_echo = true ) { 52 if ( !empty( $deprecated ) || $deprecated_echo !== true ) 53 _deprecated_argument( __FUNCTION__, '1.5', $deprecated_echo !== true ? __('Use get_the_author() instead if you do not want the value echoed.') : null ); 52 if ( !empty( $deprecated ) ) 53 _deprecated_argument( __FUNCTION__, '2.1' ); 54 if ( $deprecated_echo !== true ) 55 _deprecated_argument( __FUNCTION__, '1.5', __('Use get_the_author() instead if you do not want the value echoed.') ); 54 56 if ( $deprecated_echo ) 55 57 echo get_the_author(); … … 185 187 function the_author_posts_link($deprecated = '') { 186 188 if ( !empty( $deprecated ) ) 187 _deprecated_argument( __FUNCTION__, ' 0.0' );189 _deprecated_argument( __FUNCTION__, '2.1' ); 188 190 189 191 global $authordata;
Note: See TracChangeset
for help on using the changeset viewer.