Docs: Update some function docs and signatures.
- Update the `_wp_specialchars()` docs to match the function signature. - Update the `human_time_diff()` function signature to match the docs. Props subrataemfluence. Fixes #46845. git-svn-id: https://develop.svn.wordpress.org/trunk@45586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8298f9dad0
commit
008630e97a
@ -949,7 +949,7 @@ function seems_utf8( $str ) {
|
||||
* Also compatible with old values; converting single quotes if set to 'single',
|
||||
* double if set to 'double' or both if otherwise set.
|
||||
* Default is ENT_NOQUOTES.
|
||||
* @param string $charset Optional. The character encoding of the string. Default is false.
|
||||
* @param false|string $charset Optional. The character encoding of the string. Default is false.
|
||||
* @param bool $double_encode Optional. Whether to encode existing html entities. Default is false.
|
||||
* @return string The encoded text with HTML entities.
|
||||
*/
|
||||
@ -3624,7 +3624,7 @@ function sanitize_email( $email ) {
|
||||
* @param int $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set.
|
||||
* @return string Human readable time difference.
|
||||
*/
|
||||
function human_time_diff( $from, $to = '' ) {
|
||||
function human_time_diff( $from, $to = 0 ) {
|
||||
if ( empty( $to ) ) {
|
||||
$to = time();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user