Changeset 32595
- Timestamp:
- 05/25/2015 04:10:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r32513 r32595 78 78 * 79 79 * @since 0.71 80 * 81 * @global WP_Locale $wp_locale 80 82 * 81 83 * @param string $dateformatstring Format to display the date. … … 161 163 * 162 164 * @since 2.3.0 165 * 166 * @global WP_Locale $wp_locale 163 167 * 164 168 * @param int $number The number to convert based on locale. … … 492 496 * @since 1.5.0 493 497 * 494 * @ see$wpdb498 * @global wpdb $wpdb 495 499 * 496 500 * @param string $content Post Content. 497 * @param int $post_ID Post ID.501 * @param int $post_ID Post ID. 498 502 */ 499 503 function do_enclose( $content, $post_ID ) { … … 872 876 * @since 2.0.0 873 877 * 878 * @global WP $wp_locale 879 * @global WP_Query $wp_query 880 * @global WP_Query $wp_the_query 881 * 874 882 * @param string|array $query_vars Default WP_Query arguments. 875 883 */ … … 886 894 * 887 895 * @since 2.3.0 896 * 897 * @global array $wp_header_to_desc 888 898 * 889 899 * @param int $code HTTP status code. … … 1126 1136 * @since 2.1.0 1127 1137 * 1128 * @ uses$wp_query Used to tell if the use a comment feed.1138 * @global WP_Query $wp_query Used to tell if the use a comment feed. 1129 1139 */ 1130 1140 function do_feed() { … … 1607 1617 * @since 2.5.0 1608 1618 * 1619 * @staticvar string $temp 1620 * 1609 1621 * @return string Writable temporary directory. 1610 1622 */ … … 1631 1643 return $temp; 1632 1644 1633 $temp = '/tmp/'; 1634 return $temp; 1645 return '/tmp/'; 1635 1646 } 1636 1647 … … 2002 2013 * 2003 2014 * @param string $ext The extension to search. 2004 * @return string|null The file type, example: audio, video, document, spreadsheet, etc. 2005 * Null if not found. 2015 * @return string|void The file type, example: audio, video, document, spreadsheet, etc. 2006 2016 */ 2007 2017 function wp_ext2type( $ext ) { … … 2033 2043 if ( in_array( $ext, $exts ) ) 2034 2044 return $type; 2035 2036 return null;2037 2045 } 2038 2046 … … 2086 2094 */ 2087 2095 function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) { 2088 2089 2096 $proper_filename = false; 2090 2097 … … 2595 2602 * @access private 2596 2603 * 2604 * @global wp_xmlrpc_server $wp_xmlrpc_server 2605 * 2597 2606 * @param string $message Error message. 2598 2607 * @param string $title Optional. Error title. Default empty. … … 2653 2662 * @param int $depth Optional. Maximum depth to walk through $data. Must be 2654 2663 * greater than 0. Default 512. 2655 * @return bool|stringThe JSON encoded string, or false if it cannot be encoded.2664 * @return string|false The JSON encoded string, or false if it cannot be encoded. 2656 2665 */ 2657 2666 function wp_json_encode( $data, $options = 0, $depth = 512 ) { … … 2758 2767 * 2759 2768 * @see _wp_json_sanity_check() 2769 * 2770 * @staticvar bool $use_mb 2760 2771 * 2761 2772 * @param string $string The string which is to be converted. … … 3261 3272 * 3262 3273 * @since 2.2.0 3274 * 3275 * @global array $submenu 3263 3276 */ 3264 3277 function wp_widgets_add_menu() { … … 3587 3600 * @since 2.5.0 3588 3601 * 3602 * @global bool $is_apache 3603 * 3589 3604 * @param string $mod The module, e.g. mod_rewrite. 3590 3605 * @param bool $default Optional. The default return value if the module is not found. Default false. … … 3615 3630 * 3616 3631 * @since 2.8.0 3632 * 3633 * @global bool $is_iis7 3617 3634 * 3618 3635 * @return bool Whether IIS7 supports permalinks. … … 3656 3673 * 3657 3674 * @param string $file File path. 3658 * @param array $allowed_files List of allowed files.3675 * @param array $allowed_files List of allowed files. 3659 3676 * @return int 0 means nothing is wrong, greater than 0 means something was wrong. 3660 3677 */ … … 3712 3729 * 3713 3730 * @since 2.6.0 3731 * 3732 * @staticvar bool $forced 3714 3733 * 3715 3734 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null. … … 3789 3808 * @since 3.3.0 3790 3809 * 3810 * @staticvar bool $_suspend 3811 * 3791 3812 * @param bool $suspend Optional. Suspends additions if true, re-enables them if false. 3792 3813 * @return bool The current suspend setting … … 3810 3831 * @since 2.7.0 3811 3832 * 3833 * @global bool $_wp_suspend_cache_invalidation 3834 * 3812 3835 * @param bool $suspend Optional. Whether to suspend or enable cache invalidation. Default true. 3813 3836 * @return bool The current suspend setting. … … 3825 3848 * 3826 3849 * @since 3.0.0 3850 * 3851 * @global object $current_site 3827 3852 * 3828 3853 * @param int $site_id Optional. Site ID to test. Defaults to current site. … … 3849 3874 * @since 3.7.0 3850 3875 * 3876 * @global wpdb $wpdb 3877 * 3851 3878 * @param int $network_id Optional. Network ID to test. Defaults to current network. 3852 3879 * @return bool True if $network_id is the main network, or if not running Multisite. … … 3885 3912 * 3886 3913 * @since 3.0.0 3914 * 3915 * @staticvar bool $global_terms 3887 3916 * 3888 3917 * @return bool True if multisite and global terms enabled. … … 3921 3950 * @since 2.8.0 3922 3951 * 3923 * @return float| boolTimezone GMT offset, false otherwise.3952 * @return float|false Timezone GMT offset, false otherwise. 3924 3953 */ 3925 3954 function wp_timezone_override_offset() { … … 3988 4017 * 3989 4018 * @since 2.9.0 4019 * 4020 * @staticvar bool $mo_loaded 3990 4021 * 3991 4022 * @param string $selected_zone Selected timezone. … … 4135 4166 * 4136 4167 * @since 2.9.0 4168 * 4169 * @global wpdb $wpdb 4137 4170 */ 4138 4171 function wp_scheduled_delete() { … … 4245 4278 * @see __return_false() 4246 4279 * 4247 * @return boolTrue.4280 * @return true True. 4248 4281 */ 4249 4282 function __return_true() { … … 4260 4293 * @see __return_true() 4261 4294 * 4262 * @return boolFalse.4295 * @return false False. 4263 4296 */ 4264 4297 function __return_false() { … … 4446 4479 * @see esc_url() 4447 4480 * 4481 * @staticvar array $protocols 4482 * 4448 4483 * @return array Array of allowed protocols. 4449 4484 */ … … 4696 4731 * @since 3.6.0 4697 4732 * 4698 * @param array|object $response The Heartbeat response object or array. 4699 * @return array|object $response The Heartbeat response object or array with 'wp-auth-check' 4700 * value set. 4733 * @global int $login_grace_period 4734 * 4735 * @param array $response The Heartbeat response. 4736 * @return array $response The Heartbeat response with 'wp-auth-check' value set. 4701 4737 */ 4702 4738 function wp_auth_check( $response ) { … … 4770 4806 * 4771 4807 * @see reset_mbstring_encoding() 4808 * 4809 * @staticvar array $encodings 4810 * @staticvar bool $overloaded 4772 4811 * 4773 4812 * @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding.
Note: See TracChangeset
for help on using the changeset viewer.