Add missing inline descriptions. see #19067.
git-svn-id: http://core.svn.wordpress.org/trunk@23437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
34e93a1155
commit
6bcd1665eb
|
@ -1020,6 +1020,6 @@ function get_default_page_to_edit() {
|
||||||
* @return string Thumbnail path on success, Error string on failure.
|
* @return string Thumbnail path on success, Error string on failure.
|
||||||
*/
|
*/
|
||||||
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
|
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
|
||||||
_deprecated_function( __FUNCTION__, '3.5', 'image_resize' );
|
_deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
|
||||||
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
|
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1110,12 +1110,12 @@ function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Converts a shorthand byte value to an integer byte value.
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $size
|
* @param string $size A shorthand byte value.
|
||||||
* @return unknown
|
* @return int An integer byte value.
|
||||||
*/
|
*/
|
||||||
function wp_convert_hr_to_bytes( $size ) {
|
function wp_convert_hr_to_bytes( $size ) {
|
||||||
$size = strtolower( $size );
|
$size = strtolower( $size );
|
||||||
|
@ -1130,12 +1130,12 @@ function wp_convert_hr_to_bytes( $size ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Converts an integer byte value to a shorthand byte value.
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $bytes
|
* @param int $bytes An integer byte value.
|
||||||
* @return unknown
|
* @return string A shorthand byte value.
|
||||||
*/
|
*/
|
||||||
function wp_convert_bytes_to_hr( $bytes ) {
|
function wp_convert_bytes_to_hr( $bytes ) {
|
||||||
$units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB' );
|
$units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB' );
|
||||||
|
@ -1146,11 +1146,11 @@ function wp_convert_bytes_to_hr( $bytes ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Determine the maximum upload size allowed in php.ini.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @return unknown
|
* @return int Allowed upload size.
|
||||||
*/
|
*/
|
||||||
function wp_max_upload_size() {
|
function wp_max_upload_size() {
|
||||||
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
|
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
|
||||||
|
|
Loading…
Reference in New Issue