Changeset 32538
- Timestamp:
- 05/22/2015 04:13:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r32526 r32538 16 16 * @since 1.5.0 17 17 * 18 * @ uses$authordata The current author's DB object.18 * @global object $authordata The current author's DB object. 19 19 * 20 20 * @param string $deprecated Deprecated. … … 104 104 * @link https://codex.wordpress.org/Template_Tags/the_author_meta 105 105 * @since 2.8.0 106 * 107 * @global object $authordata The current author's DB object. 108 * 106 109 * @param string $field selects the field of the users record. 107 110 * @param int $user_id Optional. User ID. … … 135 138 136 139 /** 137 * Retrieve the requested data of the author of the current post. 140 * Outputs the field from the user's DB object. Defaults to current post's author. 141 * 138 142 * @link https://codex.wordpress.org/Template_Tags/the_author_meta 143 * 139 144 * @since 2.8.0 145 * 140 146 * @param string $field selects the field of the users record. 141 147 * @param int $user_id Optional. User ID. 142 * @echo string The author's field from the current author's DB object.143 148 */ 144 149 function the_author_meta( $field = '', $user_id = false ) { … … 223 228 * @link https://codex.wordpress.org/Template_Tags/the_author_posts_link 224 229 * @since 1.2.0 230 * 231 * @global object $authordata The current author's DB object. 232 * 225 233 * @param string $deprecated Deprecated. 226 *227 * @return false|null228 234 */ 229 235 function the_author_posts_link($deprecated = '') { … … 232 238 233 239 global $authordata; 234 if ( !is_object( $authordata ) ) 235 return false; 240 if ( ! is_object( $authordata ) ) { 241 return; 242 } 243 236 244 $link = sprintf( 237 245 '<a href="%1$s" title="%2$s" rel="author">%3$s</a>', … … 255 263 * 256 264 * @since 2.1.0 257 * @uses $wp_rewrite WP_Rewrite 265 * 266 * @global WP_Rewrite $wp_rewrite 267 * 258 268 * @return string The URL to the author's page. 259 269 */ … … 296 306 * 297 307 * @since 1.2.0 308 * 309 * @global wpdb $wpdb 298 310 * 299 311 * @param string|array $args { … … 428 440 * 429 441 * @since 3.2.0 442 * 443 * @global wpdb $wpdb 444 * 430 445 * @return bool Whether or not we have more than one author 431 446 */
Note: See TracChangeset
for help on using the changeset viewer.