Make WordPress Core


Ignore:
Timestamp:
06/21/2013 12:45:11 PM (12 years ago)
Author:
SergeyBiryukov
Message:

PHPDoc fixes and additions. fixes #24616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r24377 r24490  
    3838 * @param bool $nicename Optional, default is false. Whether to use nice name for display.
    3939 * @param array $visited Optional. Already linked to categories to prevent duplicates.
    40  * @return string
     40 * @return string|WP_Error A list of category parents on success, WP_Error on failure.
    4141 */
    4242function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) {
     
    132132 *
    133133 * @param int $cat_ID Category ID.
    134  * @return string Category name.
     134 * @return string|WP_Error Category name on success, WP_Error on failure.
    135135 */
    136136function get_the_category_by_ID( $cat_ID ) {
     
    981981 *
    982982 * @param int $id Post ID.
    983  * @return array
     983 * @return array|bool Array of tag objects on success, false on failure.
    984984 */
    985985function get_the_tags( $id = 0 ) {
     
    997997 * @param string $after Optional. After tags.
    998998 * @param int $id Optional. Post ID. Defaults to the current post.
    999  * @return string
     999 * @return string|bool|WP_Error A list of tags on success, false or WP_Error on failure.
    10001000 */
    10011001function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) {
     
    10111011 * @param string $sep Optional. Separate items using this.
    10121012 * @param string $after Optional. After list.
    1013  * @return string
    10141013 */
    10151014function the_tags( $before = null, $sep = ', ', $after = '' ) {
     
    10551054 * @since 2.5.0
    10561055 *
    1057  * @param mixed $post Post ID or object.
     1056 * @param int|object $post Post ID or object.
    10581057 * @param string $taxonomy Taxonomy name.
    1059  * @return array|bool False on failure. Array of term objects on success.
     1058 * @return array|bool|WP_Error Array of term objects on success, false or WP_Error on failure.
    10601059 */
    10611060function get_the_terms( $post, $taxonomy ) {
     
    10871086 * @param string $sep Optional. Separate items using this.
    10881087 * @param string $after Optional. After list.
    1089  * @return string
     1088 * @return string|bool|WP_Error A list of terms on success, false or WP_Error on failure.
    10901089 */
    10911090function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '' ) {
Note: See TracChangeset for help on using the changeset viewer.