Changeset 11450 for trunk/wp-includes/author-template.php
- Timestamp:
- 05/24/2009 11:47:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r11416 r11450 81 81 82 82 /** 83 * Retrieve the requested data of the author of the current post. 84 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 85 * @since 2.8.0 83 * Retrieve the requested data of the author of the current post. 84 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 85 * @since 2.8.0 86 86 * @uses $authordata The current author's DB object (if $user_id not specified). 87 * @param string $field selects the field of the users record. 87 * @param string $field selects the field of the users record. 88 88 * @param int $user_id Optional. User ID. 89 * @return string The author's field from the current author's DB object. 89 * @return string The author's field from the current author's DB object. 90 90 */ 91 91 function get_the_author_meta($field = '', $user_id = false) { … … 97 97 $field = strtolower($field); 98 98 $user_field = "user_$field"; 99 99 100 100 if ( 'id' == $field ) 101 101 $value = isset($authordata->ID) ? (int)$authordata->ID : 0; … … 109 109 110 110 /** 111 * Retrieve the requested data of the author of the current post. 112 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 113 * @since 2.8.0 114 * @param string $field selects the field of the users record. 111 * Retrieve the requested data of the author of the current post. 112 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 113 * @since 2.8.0 114 * @param string $field selects the field of the users record. 115 115 * @param int $user_id Optional. User ID. 116 * @echo string The author's field from the current author's DB object. 116 * @echo string The author's field from the current author's DB object. 117 117 */ 118 118 function the_author_meta($field = '', $user_id = false) {
Note: See TracChangeset
for help on using the changeset viewer.