Ticket #30355: 30355.2.diff
| File 30355.2.diff, 1.9 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/author-template.php
223 223 } 224 224 225 225 /** 226 * Displayan HTML link to the author page of the author of the current post.226 * Get an HTML link to the author page of the author of the current post. 227 227 * 228 * Does just echo get_author_posts_url() function, like the others do. The 229 * reason for this, is that another function is used to help in printing the 230 * link to the author's posts. 228 * Returns an HTML-formatted link using get_author_posts_url(). 231 229 * 232 * @link https://codex.wordpress.org/Template_Tags/the_author_posts_link 233 * @since 1.2.0 230 * @since 4.4.0 234 231 * 235 232 * @global object $authordata The current author's DB object. 236 233 * 237 * @ param string $deprecated Deprecated.234 * @return string An HTML link to the author page. 238 235 */ 239 function the_author_posts_link($deprecated = '') { 240 if ( !empty( $deprecated ) ) 241 _deprecated_argument( __FUNCTION__, '2.1' ); 242 236 function get_the_author_posts_link() { 243 237 global $authordata; 244 238 if ( ! is_object( $authordata ) ) { 245 239 return; … … 259 253 * 260 254 * @param string $link HTML link. 261 255 */ 262 echoapply_filters( 'the_author_posts_link', $link );256 return apply_filters( 'the_author_posts_link', $link ); 263 257 } 264 258 265 259 /** 260 * Display an HTML link to the author page of the author of the current post. 261 * 262 * Echoes get_author_posts_link() function. 263 * 264 * @link https://codex.wordpress.org/Template_Tags/the_author_posts_link 265 * @since 1.2.0 266 * 267 * @param string $deprecated Deprecated. 268 */ 269 function the_author_posts_link($deprecated = '') { 270 if ( ! empty( $deprecated ) ) { 271 _deprecated_argument( __FUNCTION__, '2.1' ); 272 } 273 echo get_the_author_posts_link(); 274 } 275 276 /** 266 277 * Retrieve the URL to the author page for the user with the ID provided. 267 278 * 268 279 * @since 2.1.0