summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2013-02-16 02:52:57 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2013-02-16 02:52:57 +0000
commit07d596afb7dc03dfa7148ab2561a1d2afb362a7e (patch)
tree9a65654f7e6f0f6f5aef8bb0bde372eafc52e922
parent4b040e72dca5a01989359fe5abfa8fa748152538 (diff)
downloadwordpress-07d596afb7dc03dfa7148ab2561a1d2afb362a7e.tar.gz
wordpress-07d596afb7dc03dfa7148ab2561a1d2afb362a7e.zip
Add missing inline descriptions. see #19067.
git-svn-id: https://develop.svn.wordpress.org/trunk@23437 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r--wp-admin/includes/deprecated.php4
-rw-r--r--wp-includes/media.php16
2 files changed, 10 insertions, 10 deletions
diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php
index 9624031ba9..e6353eaf30 100644
--- a/wp-admin/includes/deprecated.php
+++ b/wp-admin/includes/deprecated.php
@@ -1012,7 +1012,7 @@ function get_default_page_to_edit() {
* @since 1.2.0
* @deprecated 3.5.0
* @deprecated Use image_resize()
- * @see image_resize()
+ * @see image_resize()
*
* @param mixed $file Filename of the original image, Or attachment id.
* @param int $max_side Maximum length of a single side for the thumbnail.
@@ -1020,6 +1020,6 @@ function get_default_page_to_edit() {
* @return string Thumbnail path on success, Error string on failure.
*/
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 ) );
}
diff --git a/wp-includes/media.php b/wp-includes/media.php
index 2b770ceff3..f4e13a4a9b 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -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
*
- * @param unknown_type $size
- * @return unknown
+ * @param string $size A shorthand byte value.
+ * @return int An integer byte value.
*/
function wp_convert_hr_to_bytes( $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
*
- * @param unknown_type $bytes
- * @return unknown
+ * @param int $bytes An integer byte value.
+ * @return string A shorthand byte value.
*/
function wp_convert_bytes_to_hr( $bytes ) {
$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
*
- * @return unknown
+ * @return int Allowed upload size.
*/
function wp_max_upload_size() {
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );