Make WordPress Core


Ignore:
Timestamp:
07/23/2020 07:59:16 PM (3 years ago)
Author:
johnbillion
Message:

Docs: First pass at some inline docs fixes mostly made by PHPCBF.

See #49572, #50744

File:
1 edited

Legend:

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

    r48574 r48586  
    127127 * @param string $separator Optional. Separator between the categories. By default, the links are placed
    128128 *                          in an unordered list. An empty string will result in the default behavior.
    129  * @param string $parents Optional. How to display the parents.
    130  * @param int $post_id Optional. Post ID to retrieve categories.
     129 * @param string $parents   Optional. How to display the parents.
     130 * @param int    $post_id  Optional. Post ID to retrieve categories.
    131131 * @return string
    132132 */
     
    239239 *
    240240 * @since 1.2.0
     241 * @since 2.7.0 The `$post` parameter was added.
    241242 *
    242243 * @param int|string|array $category Category ID, name or slug, or array of said.
    243  * @param int|object $post Optional. Post to check instead of the current post. (since 2.7.0)
     244 * @param int|object       $post     Optional. Post to check instead of the current post.
    244245 * @return bool True if the current post is in any of the given categories.
    245246 */
     
    259260 * @param string $separator Optional. Separator between the categories. By default, the links are placed
    260261 *                          in an unordered list. An empty string will result in the default behavior.
    261  * @param string $parents Optional. How to display the parents.
    262  * @param int $post_id Optional. Post ID to retrieve categories.
     262 * @param string $parents   Optional. How to display the parents.
     263 * @param int    $post_id  Optional. Post ID to retrieve categories.
    263264 */
    264265function the_category( $separator = '', $parents = '', $post_id = false ) {
     
    11621163 * @since 2.3.0
    11631164 *
    1164  * @param string $before Optional. Before tags.
    1165  * @param string $sep Optional. Between tags.
    1166  * @param string $after Optional. After tags.
    1167  * @param int $id Optional. Post ID. Defaults to the current post.
     1165 * @param string $before Optional. String to use before tags.
     1166 * @param string $sep    Optional. String to use between the tags.
     1167 * @param string $after  Optional. String to use after tags.
     1168 * @param int    $id    Optional. Post ID. Defaults to the current post.
    11681169 * @return string|false|WP_Error A list of tags on success, false if there are no terms, WP_Error on failure.
    11691170 */
     
    13341335 * @since 4.8.0
    13351336 *
    1336  * @param int     $term_id  Term ID.
    1337  * @param string  $taxonomy Taxonomy name.
     1337 * @param int          $term_id  Term ID.
     1338 * @param string       $taxonomy Taxonomy name.
    13381339 * @param string|array $args {
    13391340 *     Array of optional arguments.
Note: See TracChangeset for help on using the changeset viewer.