Changeset 55844
- Timestamp:
- 05/21/2023 10:39:52 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55760 r55844 3832 3832 * Determines the difference between two timestamps. 3833 3833 * 3834 * The difference is returned in a human 3834 * The difference is returned in a human-readable format such as "1 hour", 3835 3835 * "5 mins", "2 days". 3836 3836 * … … 3840 3840 * @param int $from Unix timestamp from which the difference begins. 3841 3841 * @param int $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set. 3842 * @return string Human 3842 * @return string Human-readable time difference. 3843 3843 */ 3844 3844 function human_time_diff( $from, $to = 0 ) { … … 3901 3901 3902 3902 /** 3903 * Filters the human 3903 * Filters the human-readable difference between two timestamps. 3904 3904 * 3905 3905 * @since 4.0.0 3906 3906 * 3907 * @param string $since The difference in human 3907 * @param string $since The difference in human-readable text. 3908 3908 * @param int $diff The difference in seconds. 3909 3909 * @param int $from Unix timestamp from which the difference begins. … … 3918 3918 * Returns a maximum of 55 words with an ellipsis appended if necessary. 3919 3919 * 3920 * The 55 3920 * The 55-word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter 3921 3921 * The ' […]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter 3922 3922 * … … 4355 4355 * Performs a deep string replace operation to ensure the values in $search are no longer present. 4356 4356 * 4357 * Repeats the replacement operation until it no longer replaces anything so asto remove "nested" values4357 * Repeats the replacement operation until it no longer replaces anything to remove "nested" values 4358 4358 * e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that 4359 4359 * str_replace would return … … 4387 4387 * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string, 4388 4388 * this prevents certain SQLi attacks from taking place. This change in behavior 4389 * may cause issues for code that expects the return value of esc_sql() to be us eable4389 * may cause issues for code that expects the return value of esc_sql() to be usable 4390 4390 * for other purposes. 4391 4391 * … … 5156 5156 5157 5157 /** 5158 * WordPress implementation of PHP sprintf() with filters.5158 * WordPress' implementation of PHP sprintf() with filters. 5159 5159 * 5160 5160 * @since 2.5.0 … … 5334 5334 * Adds a base URL to relative links in passed content. 5335 5335 * 5336 * By default it supports the 'src' and 'href' attributes. However this can be5337 * changed via the 3rd param.5336 * By default, this function supports the 'src' and 'href' attributes. 5337 * However, this can be modified via the `$attrs` parameter. 5338 5338 * 5339 5339 * @since 2.7.0 … … 5378 5378 * Adds a target attribute to all links in passed content. 5379 5379 * 5380 * This function by default only applies to `<a>` tags, however this can be5381 * modified bythe `$tags` parameter.5380 * By default, this function only applies to `<a>` tags. 5381 * However, this can be modified via the `$tags` parameter. 5382 5382 * 5383 5383 * *NOTE:* Any current target attribute will be stripped and replaced.
Note: See TracChangeset
for help on using the changeset viewer.