Changeset 55398 for trunk/src/wp-includes/functions.php
- Timestamp:
- 02/21/2023 04:37:03 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r55344 r55398 1050 1050 * @param string $sep Optional. Argument separator; defaults to 'arg_separator.output'. 1051 1051 * Default null. 1052 * @param string $key Optional. Used to prefix key name. Default empty .1052 * @param string $key Optional. Used to prefix key name. Default empty string. 1053 1053 * @param bool $urlencode Optional. Whether to use urlencode() in the result. Default true. 1054 1054 * @return string The query string. … … 1439 1439 * @param int $code HTTP status code. 1440 1440 * @param string $description Optional. A custom description for the HTTP status. 1441 * Defaults to the result of get_status_header_desc() for the given code. 1441 1442 */ 1442 1443 function status_header( $code, $description = '' ) { … … 3001 3002 * @param string $filename File name or path. 3002 3003 * @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex. 3004 * Defaults to the result of get_allowed_mime_types(). 3003 3005 * @return array { 3004 3006 * Values for the extension and mime type. … … 3043 3045 * in a tmp directory). 3044 3046 * @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex. 3047 * Defaults to the result of get_allowed_mime_types(). 3045 3048 * @return array { 3046 3049 * Values for the extension, mime type, and corrected filename. … … 3619 3622 * @param string|WP_Error $message Optional. Error message. If this is a WP_Error object, 3620 3623 * and not an Ajax or XML-RPC request, the error's messages are used. 3621 * Default empty .3624 * Default empty string. 3622 3625 * @param string|int $title Optional. Error title. If `$message` is a `WP_Error` object, 3623 3626 * error data with the key 'title' may be used to specify the title. 3624 * If `$title` is an integer, then it is treated as the response 3625 * code. Default empty.3627 * If `$title` is an integer, then it is treated as the response code. 3628 * Default empty string. 3626 3629 * @param string|array|int $args { 3627 3630 * Optional. Arguments to control behavior. If `$args` is an integer, then it is treated … … 3726 3729 * 3727 3730 * @param string|WP_Error $message Error message or WP_Error object. 3728 * @param string $title Optional. Error title. Default empty .3731 * @param string $title Optional. Error title. Default empty string. 3729 3732 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3730 3733 */ … … 3928 3931 * 3929 3932 * @param string $message Error message. 3930 * @param string $title Optional. Error title (unused). Default empty .3933 * @param string $title Optional. Error title (unused). Default empty string. 3931 3934 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3932 3935 */ … … 3970 3973 * 3971 3974 * @param string $message Error message. 3972 * @param string $title Optional. Error title. Default empty .3975 * @param string $title Optional. Error title. Default empty string. 3973 3976 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3974 3977 */ … … 4008 4011 * 4009 4012 * @param string $message Error message. 4010 * @param string $title Optional. Error title. Default empty .4013 * @param string $title Optional. Error title. Default empty string. 4011 4014 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4012 4015 */ … … 4052 4055 * 4053 4056 * @param string $message Error message. 4054 * @param string $title Optional. Error title. Default empty .4057 * @param string $title Optional. Error title. Default empty string. 4055 4058 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4056 4059 */ … … 4082 4085 * 4083 4086 * @param string $message Error message. 4084 * @param string $title Optional. Error title. Default empty .4087 * @param string $title Optional. Error title. Default empty string. 4085 4088 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4086 4089 */ … … 4126 4129 * @access private 4127 4130 * 4128 * @param string $message Optional. Response to print. Default empty .4129 * @param string $title Optional. Error title (unused). Default empty .4131 * @param string $message Optional. Response to print. Default empty string. 4132 * @param string $title Optional. Error title (unused). Default empty string. 4130 4133 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4131 4134 */ … … 4152 4155 * 4153 4156 * @param string|WP_Error $message Error message or WP_Error object. 4154 * @param string $title Optional. Error title. Default empty .4157 * @param string $title Optional. Error title. Default empty string. 4155 4158 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4156 4159 * @return array { … … 4519 4522 * 4520 4523 * @type bool $associative Optional. When `true`, JSON objects will be returned as associative arrays. 4521 * When `false`, JSON objects will be returned as objects. 4524 * When `false`, JSON objects will be returned as objects. Default false. 4522 4525 * } 4523 4526 * … … 5371 5374 * @param string $function_name The function that was called. 5372 5375 * @param string $version The version of WordPress that deprecated the function. 5373 * @param string $replacement Optional. The function that should have been called. Default empty .5376 * @param string $replacement Optional. The function that should have been called. Default empty string. 5374 5377 */ 5375 5378 function _deprecated_function( $function_name, $version, $replacement = '' ) { … … 5557 5560 * @param string $version The version of WordPress that deprecated the file. 5558 5561 * @param string $replacement Optional. The file that should have been included based on ABSPATH. 5559 * Default empty .5560 * @param string $message Optional. A message regarding the change. Default empty .5562 * Default empty string. 5563 * @param string $message Optional. A message regarding the change. Default empty string. 5561 5564 */ 5562 5565 function _deprecated_file( $file, $version, $replacement = '', $message = '' ) { … … 5655 5658 * @param string $function_name The function that was called. 5656 5659 * @param string $version The version of WordPress that deprecated the argument used. 5657 * @param string $message Optional. A message regarding the change. Default empty .5660 * @param string $message Optional. A message regarding the change. Default empty string. 5658 5661 */ 5659 5662 function _deprecated_argument( $function_name, $version, $message = '' ) { … … 5743 5746 * @param string $hook The hook that was used. 5744 5747 * @param string $version The version of WordPress that deprecated the hook. 5745 * @param string $replacement Optional. The hook that should have been used. Default empty .5748 * @param string $replacement Optional. The hook that should have been used. Default empty string. 5746 5749 * @param string $message Optional. A message regarding the change. Default empty. 5747 5750 */ … … 5987 5990 * 5988 5991 * @param string $file File path. 5989 * @param string[] $allowed_files Optional. Array of allowed files. 5992 * @param string[] $allowed_files Optional. Array of allowed files. Default empty array. 5990 5993 * @return int 0 means nothing is wrong, greater than 0 means something was wrong. 5991 5994 */ … … 6105 6108 * 6106 6109 * @param bool $suspend Optional. Suspends additions if true, re-enables them if false. 6107 * @return bool The current suspend setting 6110 * Defaults to not changing the current setting. 6111 * @return bool The current suspend setting. 6108 6112 */ 6109 6113 function wp_suspend_cache_addition( $suspend = null ) { … … 6636 6640 * @param array $default_headers List of headers, in the format `array( 'HeaderKey' => 'Header Name' )`. 6637 6641 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}. 6638 * Default empty .6642 * Default empty string. 6639 6643 * @return string[] Array of file header values keyed by header name. 6640 6644 */ … … 6810 6814 * @param int $start The ID to start the loop check at. 6811 6815 * @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ). 6812 * Use null to always use $callback 6813 * @param array $callback_args Optional. Additional arguments to send to $callback. 6816 * Use null to always use $callback. 6817 * @param array $callback_args Optional. Additional arguments to send to $callback. Default empty array. 6814 6818 * @return array IDs of all members of loop. 6815 6819 */ … … 7814 7818 * 7815 7819 * @param string $type The type of data to be anonymized. 7816 * @param string $data Optional The data to be anonymized.7820 * @param string $data Optional. The data to be anonymized. Default empty string. 7817 7821 * @return string The anonymous data for the requested type. 7818 7822 */ … … 8247 8251 * @param string|string[] $exclude Optional. Full path of a subdirectory to exclude from the total, 8248 8252 * or array of paths. Expected without trailing slash(es). 8253 * Default null. 8249 8254 * @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds. 8250 8255 * The timeout is global and is measured from the moment 8251 * WordPress started to load. 8256 * WordPress started to load. Defaults to the value of 8257 * `max_execution_time` PHP setting. 8252 8258 * @param array $directory_cache Optional. Array of cached directory paths. 8259 * Defaults to the value of `dirsize_cache` transient. 8253 8260 * @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout. 8254 8261 */
Note: See TracChangeset
for help on using the changeset viewer.