mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Improve various @param docs.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -197,7 +197,7 @@ function number_format_i18n( $number, $decimals = 0 ) {
|
||||
*
|
||||
* @param int|string $bytes Number of bytes. Note max integer size for integers.
|
||||
* @param int $decimals Optional. Precision of number of decimal places. Default 0.
|
||||
* @return bool|string False on failure. Number string on success.
|
||||
* @return string|false False on failure. Number string on success.
|
||||
*/
|
||||
function size_format( $bytes, $decimals = 0 ) {
|
||||
$quant = array(
|
||||
@@ -641,7 +641,7 @@ function wp_get_http_headers( $url, $deprecated = false ) {
|
||||
* @global string $currentday The day of the current post in the loop.
|
||||
* @global string $previousday The day of the previous post in the loop.
|
||||
*
|
||||
* @return int|bool 1|true when new day, 0|false if not a new day.
|
||||
* @return int 1 when new day, 0 if not a new day.
|
||||
*/
|
||||
function is_new_day() {
|
||||
global $currentday, $previousday;
|
||||
@@ -842,7 +842,7 @@ function add_magic_quotes( $array ) {
|
||||
* @see wp_safe_remote_get()
|
||||
*
|
||||
* @param string $uri URI/URL of web page to retrieve.
|
||||
* @return bool|string HTTP content. False on failure.
|
||||
* @return false|string HTTP content. False on failure.
|
||||
*/
|
||||
function wp_remote_fopen( $uri ) {
|
||||
$parsed_url = @parse_url( $uri );
|
||||
@@ -1327,9 +1327,9 @@ function is_blog_installed() {
|
||||
*
|
||||
* @since 2.0.4
|
||||
*
|
||||
* @param string $actionurl URL to add nonce action.
|
||||
* @param string $action Optional. Nonce action name. Default -1.
|
||||
* @param string $name Optional. Nonce name. Default '_wpnonce'.
|
||||
* @param string $actionurl URL to add nonce action.
|
||||
* @param int|string $action Optional. Nonce action name. Default -1.
|
||||
* @param string $name Optional. Nonce name. Default '_wpnonce'.
|
||||
* @return string Escaped URL with nonce action added.
|
||||
*/
|
||||
function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) {
|
||||
@@ -1357,10 +1357,10 @@ function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) {
|
||||
*
|
||||
* @since 2.0.4
|
||||
*
|
||||
* @param string $action Optional. Action name. Default -1.
|
||||
* @param string $name Optional. Nonce name. Default '_wpnonce'.
|
||||
* @param bool $referer Optional. Whether to set the referer field for validation. Default true.
|
||||
* @param bool $echo Optional. Whether to display or return hidden form field. Default true.
|
||||
* @param int|string $action Optional. Action name. Default -1.
|
||||
* @param string $name Optional. Nonce name. Default '_wpnonce'.
|
||||
* @param bool $referer Optional. Whether to set the referer field for validation. Default true.
|
||||
* @param bool $echo Optional. Whether to display or return hidden form field. Default true.
|
||||
* @return string Nonce field HTML markup.
|
||||
*/
|
||||
function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $echo = true ) {
|
||||
@@ -1426,7 +1426,7 @@ function wp_original_referer_field( $echo = true, $jump_back_to = 'current' ) {
|
||||
*
|
||||
* @since 2.0.4
|
||||
*
|
||||
* @return string|bool False on failure. Referer URL on success.
|
||||
* @return false|string False on failure. Referer URL on success.
|
||||
*/
|
||||
function wp_get_referer() {
|
||||
if ( ! function_exists( 'wp_validate_redirect' ) )
|
||||
@@ -1447,7 +1447,7 @@ function wp_get_referer() {
|
||||
*
|
||||
* @since 2.0.4
|
||||
*
|
||||
* @return string|bool False if no original referer or original referer if set.
|
||||
* @return string|false False if no original referer or original referer if set.
|
||||
*/
|
||||
function wp_get_original_referer() {
|
||||
if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) && function_exists( 'wp_validate_redirect' ) )
|
||||
@@ -1918,10 +1918,10 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = null )
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param string $name Filename.
|
||||
* @param null $deprecated Never used. Set to null.
|
||||
* @param mixed $bits File content
|
||||
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @param string $name Filename.
|
||||
* @param null|string $deprecated Never used. Set to null.
|
||||
* @param mixed $bits File content
|
||||
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @return array
|
||||
*/
|
||||
function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
|
||||
|
||||
Reference in New Issue
Block a user