Make WordPress Core

Ticket #58316: phpdoc.patch

File phpdoc.patch, 3.3 KB (added by apermo, 3 years ago)

Patch of the PHPdoc.

  • wp-includes/formatting.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
    a b  
    37773777/**
    37783778 * Determines the difference between two timestamps.
    37793779 *
    3780  * The difference is returned in a human readable format such as "1 hour",
     3780 * The difference is returned in a human-readable format such as "1 hour",
    37813781 * "5 mins", "2 days".
    37823782 *
    37833783 * @since 1.5.0
     
    37853785 *
    37863786 * @param int $from Unix timestamp from which the difference begins.
    37873787 * @param int $to   Optional. Unix timestamp to end the time difference. Default becomes time() if not set.
    3788  * @return string Human readable time difference.
     3788 * @return string Human-readable time difference.
    37893789 */
    37903790function human_time_diff( $from, $to = 0 ) {
    37913791        if ( empty( $to ) ) {
     
    38463846        }
    38473847
    38483848        /**
    3849          * Filters the human readable difference between two timestamps.
     3849         * Filters the human-readable difference between two timestamps.
    38503850         *
    38513851         * @since 4.0.0
    38523852         *
    3853          * @param string $since The difference in human readable text.
     3853         * @param string $since The difference in human-readable text.
    38543854         * @param int    $diff  The difference in seconds.
    38553855         * @param int    $from  Unix timestamp from which the difference begins.
    38563856         * @param int    $to    Unix timestamp to end the time difference.
     
    38633863 *
    38643864 * Returns a maximum of 55 words with an ellipsis appended if necessary.
    38653865 *
    3866  * The 55 word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter
     3866 * The 55-word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter
    38673867 * The ' [&hellip;]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter
    38683868 *
    38693869 * @since 1.5.0
     
    43054305/**
    43064306 * Performs a deep string replace operation to ensure the values in $search are no longer present.
    43074307 *
    4308  * Repeats the replacement operation until it no longer replaces anything so as to remove "nested" values
     4308 * Repeats the replacement operation until it no longer replaces anything to remove "nested" values
    43094309 * e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that
    43104310 * str_replace would return
    43114311 *
     
    43374337 *
    43384338 * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string,
    43394339 * this prevents certain SQLi attacks from taking place. This change in behaviour
    4340  * may cause issues for code that expects the return value of esc_sql() to be useable
     4340 * may cause issues for code that expects the return value of esc_sql() to be usable
    43414341 * for other purposes.
    43424342 *
    43434343 * @since 2.8.0
     
    51045104}
    51055105
    51065106/**
    5107  * WordPress implementation of PHP sprintf() with filters.
     5107 * WordPress' implementation of PHP sprintf() with filters.
    51085108 *
    51095109 * @since 2.5.0
    51105110 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     
    52825282/**
    52835283 * Adds a base URL to relative links in passed content.
    52845284 *
    5285  * By default it supports the 'src' and 'href' attributes. However this can be
    5286  * changed via the 3rd param.
     5285 * By default, it supports the 'src' and 'href' attributes.
     5286 * However, this can be changed via the 3rd param.
    52875287 *
    52885288 * @since 2.7.0
    52895289 *