WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:57:00 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove extra spaces from @param tags.

Per the documentation standards, @param tags should be aligned with each other, but not with the @return tag.

See #49572.

File:
1 edited

Legend:

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

    r48109 r48110  
    28332833             * @since 3.0.0
    28342834             *
    2835              * @param  array $mime_to_ext Array of image mime types and their matching extensions.
     2835             * @param array $mime_to_ext Array of image mime types and their matching extensions.
    28362836             */
    28372837            $mime_to_ext = apply_filters(
     
    44184418 * @since 4.7.0
    44194419 *
    4420  * @param  array|string $list List of slugs.
     4420 * @param array|string $list List of slugs.
    44214421 * @return string[] Sanitized array of slugs.
    44224422 */
     
    64046404 * @link https://www.php.net/manual/en/function.checkdate.php
    64056405 *
    6406  * @param  int    $month       Month number.
    6407  * @param  int    $day         Day number.
    6408  * @param  int    $year        Year number.
    6409  * @param  string $source_date The date to filter.
     6406 * @param int    $month       Month number.
     6407 * @param int    $day         Day number.
     6408 * @param int    $year        Year number.
     6409 * @param string $source_date The date to filter.
    64106410 * @return bool True if valid date, false if not valid date.
    64116411 */
     
    70707070 * @since 4.9.6 Abstracted from `WP_Community_Events::get_unsafe_client_ip()`.
    70717071 *
    7072  * @param  string $ip_addr        The IPv4 or IPv6 address to be anonymized.
    7073  * @param  bool   $ipv6_fallback Optional. Whether to return the original IPv6 address if the needed functions
    7074  *                                to anonymize it are not present. Default false, return `::` (unspecified address).
     7072 * @param string $ip_addr       The IPv4 or IPv6 address to be anonymized.
     7073 * @param bool   $ipv6_fallback Optional. Whether to return the original IPv6 address if the needed functions
     7074 *                              to anonymize it are not present. Default false, return `::` (unspecified address).
    70757075 * @return string  The anonymized IP address.
    70767076 */
     
    71407140 * @since 4.9.6
    71417141 *
    7142  * @param  string $type The type of data to be anonymized.
    7143  * @param  string $data Optional The data to be anonymized.
     7142 * @param string $type The type of data to be anonymized.
     7143 * @param string $data Optional The data to be anonymized.
    71447144 * @return string The anonymous data for the requested type.
    71457145 */
Note: See TracChangeset for help on using the changeset viewer.