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
|
|
| 3777 | 3777 | /** |
| 3778 | 3778 | * Determines the difference between two timestamps. |
| 3779 | 3779 | * |
| 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", |
| 3781 | 3781 | * "5 mins", "2 days". |
| 3782 | 3782 | * |
| 3783 | 3783 | * @since 1.5.0 |
| … |
… |
|
| 3785 | 3785 | * |
| 3786 | 3786 | * @param int $from Unix timestamp from which the difference begins. |
| 3787 | 3787 | * @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. |
| 3789 | 3789 | */ |
| 3790 | 3790 | function human_time_diff( $from, $to = 0 ) { |
| 3791 | 3791 | if ( empty( $to ) ) { |
| … |
… |
|
| 3846 | 3846 | } |
| 3847 | 3847 | |
| 3848 | 3848 | /** |
| 3849 | | * Filters the human readable difference between two timestamps. |
| | 3849 | * Filters the human-readable difference between two timestamps. |
| 3850 | 3850 | * |
| 3851 | 3851 | * @since 4.0.0 |
| 3852 | 3852 | * |
| 3853 | | * @param string $since The difference in human readable text. |
| | 3853 | * @param string $since The difference in human-readable text. |
| 3854 | 3854 | * @param int $diff The difference in seconds. |
| 3855 | 3855 | * @param int $from Unix timestamp from which the difference begins. |
| 3856 | 3856 | * @param int $to Unix timestamp to end the time difference. |
| … |
… |
|
| 3863 | 3863 | * |
| 3864 | 3864 | * Returns a maximum of 55 words with an ellipsis appended if necessary. |
| 3865 | 3865 | * |
| 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 |
| 3867 | 3867 | * The ' […]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter |
| 3868 | 3868 | * |
| 3869 | 3869 | * @since 1.5.0 |
| … |
… |
|
| 4305 | 4305 | /** |
| 4306 | 4306 | * Performs a deep string replace operation to ensure the values in $search are no longer present. |
| 4307 | 4307 | * |
| 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 |
| 4309 | 4309 | * e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that |
| 4310 | 4310 | * str_replace would return |
| 4311 | 4311 | * |
| … |
… |
|
| 4337 | 4337 | * |
| 4338 | 4338 | * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string, |
| 4339 | 4339 | * 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 |
| 4341 | 4341 | * for other purposes. |
| 4342 | 4342 | * |
| 4343 | 4343 | * @since 2.8.0 |
| … |
… |
|
| 5104 | 5104 | } |
| 5105 | 5105 | |
| 5106 | 5106 | /** |
| 5107 | | * WordPress implementation of PHP sprintf() with filters. |
| | 5107 | * WordPress' implementation of PHP sprintf() with filters. |
| 5108 | 5108 | * |
| 5109 | 5109 | * @since 2.5.0 |
| 5110 | 5110 | * @since 5.3.0 Formalized the existing and already documented `...$args` parameter |
| … |
… |
|
| 5282 | 5282 | /** |
| 5283 | 5283 | * Adds a base URL to relative links in passed content. |
| 5284 | 5284 | * |
| 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. |
| 5287 | 5287 | * |
| 5288 | 5288 | * @since 2.7.0 |
| 5289 | 5289 | * |