diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index f6fa0a2ada..fde377b6b0 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -80,9 +80,9 @@ function get_udims( $width, $height ) { * @deprecated Use wp_category_checklist() * @see wp_category_checklist() * - * @param unknown_type $default - * @param unknown_type $parent - * @param unknown_type $popular_ids + * @param int $default + * @param int $parent + * @param array $popular_ids */ function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' ); @@ -98,7 +98,7 @@ function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() * @deprecated Use wp_link_category_checklist() * @see wp_link_category_checklist() * - * @param unknown_type $default + * @param int $default */ function dropdown_link_categories( $default = 0 ) { _deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' ); @@ -130,12 +130,12 @@ function get_real_file_to_edit( $file ) { * @deprecated Use wp_dropdown_categories() * @see wp_dropdown_categories() * - * @param unknown_type $currentcat - * @param unknown_type $currentparent - * @param unknown_type $parent - * @param unknown_type $level - * @param unknown_type $categories - * @return unknown + * @param int $currentcat + * @param int $currentparent + * @param int $parent + * @param int $level + * @param array $categories + * @return bool|null */ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); @@ -170,12 +170,11 @@ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $le * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. * Default whitelisted option key names include "general," "discussion," and "reading," among others. * @param string $option_name The name of an option to sanitize and save. - * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value. - * @return unknown + * @param callable $sanitize_callback A callback function that sanitizes the option's value. */ function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); - return register_setting( $option_group, $option_name, $sanitize_callback ); + register_setting( $option_group, $option_name, $sanitize_callback ); } /** @@ -186,14 +185,13 @@ function add_option_update_handler( $option_group, $option_name, $sanitize_callb * @deprecated Use unregister_setting() * @see unregister_setting() * - * @param unknown_type $option_group - * @param unknown_type $option_name - * @param unknown_type $sanitize_callback - * @return unknown + * @param string $option_group + * @param string $option_name + * @param callable $sanitize_callback */ function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); - return unregister_setting( $option_group, $option_name, $sanitize_callback ); + unregister_setting( $option_group, $option_name, $sanitize_callback ); } /** @@ -336,7 +334,7 @@ class WP_User_Search { * * @since 2.1.0 * @access private - * @var unknown_type + * @var mixed */ var $results; @@ -345,7 +343,7 @@ class WP_User_Search { * * @since 2.1.0 * @access private - * @var unknown_type + * @var string */ var $search_term; @@ -390,7 +388,7 @@ class WP_User_Search { * * @since 2.1.0 * @access private - * @var unknown_type + * @var int */ var $first_user; @@ -462,7 +460,7 @@ class WP_User_Search { * * @since 2.1.0 * @access private - * @var unknown_type + * @var WP_Error */ var $search_errors; @@ -471,7 +469,7 @@ class WP_User_Search { * * @since 2.7.0 * @access private - * @var unknown_type + * @var string */ var $paging_text; @@ -1128,8 +1126,7 @@ function wp_update_theme($theme, $feedback = '') { * @since 2.0.0 * @deprecated 3.7.0 * - * @param unknown_type $id - * @return unknown + * @param int|bool $id */ function the_attachment_links( $id = false ) { _deprecated_function( __FUNCTION__, '3.7' ); diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 7f0f0c7ff5..143a928621 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1712,7 +1712,7 @@ function media_upload_header() { * * @since 2.5.0 * - * @param unknown_type $errors + * @param array $errors */ function media_upload_form( $errors = null ) { global $type, $tab, $is_IE, $is_opera; diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index b0a0f28d99..e3ebddd28b 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -151,7 +151,7 @@ class IXR_Value { /** * Checks whether or not the supplied array is a struct or not * - * @param unknown_type $array + * @param array $array * @return boolean */ function isStruct($array) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 7759003c65..a7c43f44de 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -579,8 +579,8 @@ function _fetch_remote_file($url, $headers = "" ) { * @package External * @subpackage MagpieRSS * - * @param unknown_type $resp - * @return unknown + * @param array $resp + * @return MagpieRSS|bool */ function _response_to_rss ($resp) { $rss = new MagpieRSS( $resp->results ); diff --git a/wp-includes/version.php b/wp-includes/version.php index fd921bf506..a590606958 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30200'; +$wp_version = '4.1-alpha-30201'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.