Changeset 30674
- Timestamp:
- 11/30/2014 11:23:37 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r30656 r30674 198 198 * @param int|string $bytes Number of bytes. Note max integer size for integers. 199 199 * @param int $decimals Optional. Precision of number of decimal places. Default 0. 200 * @return bool|stringFalse on failure. Number string on success.200 * @return string|false False on failure. Number string on success. 201 201 */ 202 202 function size_format( $bytes, $decimals = 0 ) { … … 642 642 * @global string $previousday The day of the previous post in the loop. 643 643 * 644 * @return int |bool 1|true when new day, 0|falseif not a new day.644 * @return int 1 when new day, 0 if not a new day. 645 645 */ 646 646 function is_new_day() { … … 843 843 * 844 844 * @param string $uri URI/URL of web page to retrieve. 845 * @return bool|string HTTP content. False on failure.845 * @return false|string HTTP content. False on failure. 846 846 */ 847 847 function wp_remote_fopen( $uri ) { … … 1328 1328 * @since 2.0.4 1329 1329 * 1330 * @param string $actionurl URL to add nonce action.1331 * @param string $action Optional. Nonce action name. Default -1.1332 * @param string $name Optional. Nonce name. Default '_wpnonce'.1330 * @param string $actionurl URL to add nonce action. 1331 * @param int|string $action Optional. Nonce action name. Default -1. 1332 * @param string $name Optional. Nonce name. Default '_wpnonce'. 1333 1333 * @return string Escaped URL with nonce action added. 1334 1334 */ … … 1358 1358 * @since 2.0.4 1359 1359 * 1360 * @param string $action Optional. Action name. Default -1.1361 * @param string $name Optional. Nonce name. Default '_wpnonce'.1362 * @param bool $referer Optional. Whether to set the referer field for validation. Default true.1363 * @param bool $echo Optional. Whether to display or return hidden form field. Default true.1360 * @param int|string $action Optional. Action name. Default -1. 1361 * @param string $name Optional. Nonce name. Default '_wpnonce'. 1362 * @param bool $referer Optional. Whether to set the referer field for validation. Default true. 1363 * @param bool $echo Optional. Whether to display or return hidden form field. Default true. 1364 1364 * @return string Nonce field HTML markup. 1365 1365 */ … … 1427 1427 * @since 2.0.4 1428 1428 * 1429 * @return string|boolFalse on failure. Referer URL on success.1429 * @return false|string False on failure. Referer URL on success. 1430 1430 */ 1431 1431 function wp_get_referer() { … … 1448 1448 * @since 2.0.4 1449 1449 * 1450 * @return string| boolFalse if no original referer or original referer if set.1450 * @return string|false False if no original referer or original referer if set. 1451 1451 */ 1452 1452 function wp_get_original_referer() { … … 1919 1919 * @since 2.0.0 1920 1920 * 1921 * @param string $name Filename.1922 * @param null 1923 * @param mixed $bits File content1924 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.1921 * @param string $name Filename. 1922 * @param null|string $deprecated Never used. Set to null. 1923 * @param mixed $bits File content 1924 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. 1925 1925 * @return array 1926 1926 */ -
trunk/src/wp-includes/functions.wp-scripts.php
r30541 r30674 22 22 * @since 2.6.0 23 23 * 24 * @param array|bool$handles Optional. Scripts to be printed. Default 'false'.24 * @param string|bool|array $handles Optional. Scripts to be printed. Default 'false'. 25 25 * @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array. 26 26 */ -
trunk/src/wp-includes/functions.wp-styles.php
r29840 r30674 20 20 * @since 2.6.0 21 21 * 22 * @param array|bool$handles Styles to be printed. Default 'false'.22 * @param string|bool|array $handles Styles to be printed. Default 'false'. 23 23 * @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array. 24 24 */ … … 237 237 * @param string $key Name of data point for which we're storing a value. 238 238 * Accepts 'conditional', 'rtl' and 'suffix', 'alt' and 'title'. 239 * @param mixed $ dataString containing the CSS data to be added.239 * @param mixed $value String containing the CSS data to be added. 240 240 * @return bool True on success, false on failure. 241 241 */ -
trunk/src/wp-includes/general-template.php
r30656 r30674 1859 1859 * @param string $d Optional. PHP date format defaults to the date_format option if not specified. 1860 1860 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 1861 * @return string|boolDate the current post was written. False on failure.1861 * @return false|string Date the current post was written. False on failure. 1862 1862 */ 1863 1863 function get_the_date( $d = '', $post = null ) { … … 1977 1977 * to the value specified in the time_format option. Default empty. 1978 1978 * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. 1979 * @return string|int|boolFormatted date string or Unix timestamp. False on failure.1979 * @return false|string Formatted date string or Unix timestamp. False on failure. 1980 1980 */ 1981 1981 function get_the_time( $d = '', $post = null ) { … … 2015 2015 * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. 2016 2016 * @param bool $translate Whether to translate the time string. Default false. 2017 * @return string|int|boolFormatted date string or Unix timestamp. False on failure.2017 * @return false|string Formatted date string or Unix timestamp. False on failure. 2018 2018 */ 2019 2019 function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { … … 2102 2102 * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. 2103 2103 * @param bool $translate Whether to translate the time string. Default false. 2104 * @return string|int|boolFormatted date string or Unix timestamp. False on failure.2104 * @return false|string Formatted date string or Unix timestamp. False on failure. 2105 2105 */ 2106 2106 function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { -
trunk/src/wp-includes/http.php
r30443 r30674 382 382 * @since 3.4.0 383 383 * 384 * @param stringOrigin URL. If not provided, the value of get_http_origin() is used.385 * @return bool True if the origin is allowed. False otherwise.384 * @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used. 385 * @return bool|null True if the origin is allowed. False otherwise. 386 386 */ 387 387 function is_allowed_http_origin( $origin = null ) { … … 442 442 * @since 3.5.2 443 443 * 444 * @return mixed URL or false on failure. 444 * @param string $url 445 * @return false|string URL or false on failure. 445 446 */ 446 447 function wp_http_validate_url( $url ) { -
trunk/src/wp-includes/l10n.php
r30542 r30674 390 390 * 391 391 * @since 2.8.0 392 * @param string $singular 393 * @param string $plural 394 * @param string $context 395 * @param string|null $domain 396 * @return array 392 397 */ 393 398 function _nx_noop( $singular, $plural, $context, $domain = null ) { … … 701 706 * 702 707 * @param string $domain Text domain. Unique identifier for retrieving translated strings. 703 * @return Translations A Translations instance.708 * @return NOOP_Translations A Translations instance. 704 709 */ 705 710 function get_translations_for_domain( $domain ) { -
trunk/src/wp-includes/media.php
r30660 r30674 2038 2038 * @param int $width Image width 2039 2039 * @param int $height Image height 2040 * @return image resource2040 * @return resource resource 2041 2041 */ 2042 2042 function wp_imagecreatetruecolor($width, $height) { … … 2054 2054 * @since 2.9.0 2055 2055 * @see WP_Embed::register_handler() 2056 * 2057 * @global WP_Embed $wp_embed 2058 * @param string $id 2059 * @param string $regex 2060 * @param callable $callback 2061 * @param int $priority 2056 2062 */ 2057 2063 function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) { … … 2065 2071 * @since 2.9.0 2066 2072 * @see WP_Embed::unregister_handler() 2073 * 2074 * @global WP_Embed $wp_embed 2075 * @param string $id 2076 * @param int $priority 2067 2077 */ 2068 2078 function wp_embed_unregister_handler( $id, $priority = 10 ) { … … 2136 2146 * @param string $url The URL that should be embedded. 2137 2147 * @param array $args Additional arguments and parameters. 2138 * @return bool|string False on failure or the embed HTML on success.2148 * @return false|string False on failure or the embed HTML on success. 2139 2149 */ 2140 2150 function wp_oembed_get( $url, $args = '' ) { -
trunk/src/wp-includes/meta.php
r30655 r30674 1540 1540 * @since 3.1.3 1541 1541 * 1542 * @param string $meta_key Meta key 1542 * @param string $meta_key Meta key 1543 * @param string|null $meta_type 1543 1544 * @return bool True if the key is protected, false otherwise. 1544 1545 */ … … 1596 1597 * @param string|array $sanitize_callback A function or method to call when sanitizing the value of $meta_key. 1597 1598 * @param string|array $auth_callback Optional. A function or method to call when performing edit_post_meta, add_post_meta, and delete_post_meta capability checks. 1598 * @param array $args Arguments1599 1599 */ 1600 1600 function register_meta( $meta_type, $meta_key, $sanitize_callback, $auth_callback = null ) { -
trunk/src/wp-includes/ms-functions.php
r30577 r30674 2025 2025 * @param int $old_value 2026 2026 * @param int $value The new public value 2027 * @return bool2028 2027 */ 2029 2028 function update_blog_public( $old_value, $value ) {
Note: See TracChangeset
for help on using the changeset viewer.