Changeset 46596 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/26/2019 09:07:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r46594 r46596 863 863 * @since 4.4.0 864 864 * 865 * @param array$post_links An array of enclosure links.866 * @param int $post_ID Post ID.865 * @param string[] $post_links An array of enclosure links. 866 * @param int $post_ID Post ID. 867 867 */ 868 868 $post_links = apply_filters( 'enclosure_links', $post_links, $post->ID ); … … 1148 1148 * @since 4.4.0 1149 1149 * 1150 * @return arrayAn array of parameters to remove from the URL.1150 * @return string[] An array of parameters to remove from the URL. 1151 1151 */ 1152 1152 function wp_removable_query_args() { … … 1182 1182 * @since 4.2.0 1183 1183 * 1184 * @param array$removable_query_args An array of query variables to remove from a URL.1184 * @param string[] $removable_query_args An array of query variables to remove from a URL. 1185 1185 */ 1186 1186 return apply_filters( 'removable_query_args', $removable_query_args ); … … 2614 2614 * @since 2.0.4 2615 2615 * 2616 * @param string $filename File name or path. 2617 * @param array $mimes Optional. Key is the file extension with value as the mime type. 2618 * @return array Values with extension first and mime type. 2616 * @param string $filename File name or path. 2617 * @param string[] $mimes Optional. Array of mime types keyed by their file extension regex. 2618 * @return array { 2619 * Values with extension first and mime type. 2620 * 2621 * @type string $0 File extension. 2622 * @type string $1 File mime type. 2623 * } 2619 2624 */ 2620 2625 function wp_check_filetype( $filename, $mimes = null ) { … … 2649 2654 * @since 3.0.0 2650 2655 * 2651 * @param string $file Full path to the file.2652 * @param string $filename The name of the file (may differ from $file due to $file being2653 * in a tmp directory).2654 * @param array $mimes Optional. Key is the file extension with value as the mime type.2656 * @param string $file Full path to the file. 2657 * @param string $filename The name of the file (may differ from $file due to $file being 2658 * in a tmp directory). 2659 * @param string[] $mimes Optional. Array of mime types keyed by their file extension regex. 2655 2660 * @return array Values for the extension, MIME, and either a corrected filename or false 2656 2661 * if original $filename is valid. … … 2815 2820 * @param string $filename The name of the file (may differ from $file due to 2816 2821 * $file being in a tmp directory). 2817 * @param array $mimes Key is the file extension with value as the mime type.2822 * @param string[] $mimes Array of mime types keyed by their file extension regex. 2818 2823 * @param string|bool $real_mime The actual mime type or false if the type cannot be determined. 2819 2824 */ … … 2862 2867 * @since 4.9.6 Support was added for AAC (.aac) files. 2863 2868 * 2864 * @return arrayArray of mime types keyed by the file extension regex corresponding to those types.2869 * @return string[] Array of mime types keyed by the file extension regex corresponding to those types. 2865 2870 */ 2866 2871 function wp_get_mime_types() { … … 2873 2878 * @since 3.5.0 2874 2879 * 2875 * @param array$wp_get_mime_types Mime types keyed by the file extension regex2880 * @param string[] $wp_get_mime_types Mime types keyed by the file extension regex 2876 2881 * corresponding to those types. 2877 2882 */ … … 3025 3030 * 3026 3031 * @param int|WP_User $user Optional. User to check. Defaults to current user. 3027 * @return arrayArray of mime types keyed by the file extension regex corresponding3028 * to those types.3032 * @return string[] Array of mime types keyed by the file extension regex corresponding 3033 * to those types. 3029 3034 */ 3030 3035 function get_allowed_mime_types( $user = null ) { … … 4155 4160 * @since 4.7.0 4156 4161 * 4157 * @param array $wpsmiliestrans List of the smilies.4162 * @param string[] $wpsmiliestrans List of the smilies' hexadecimal representations, keyed by their smily code. 4158 4163 */ 4159 4164 $wpsmiliestrans = apply_filters( 'smilies', $wpsmiliestrans ); … … 5011 5016 * @since 1.2.0 5012 5017 * 5013 * @param string $file File path.5014 * @param array $allowed_files Optional. Listof allowed files.5018 * @param string $file File path. 5019 * @param string[] $allowed_files Optional. Array of allowed files. 5015 5020 * @return int 0 means nothing is wrong, greater than 0 means something was wrong. 5016 5021 */ … … 5979 5984 * @since 3.0.0 5980 5985 * 5981 * @param array$protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.5986 * @param string[] $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more. 5982 5987 */ 5983 5988 $protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );
Note: See TracChangeset
for help on using the changeset viewer.