Fill in the `@param` types for the args for functions missing them in `wp-admin/includes/deprecated.php` (pour one out).

See #30224.

Built from https://develop.svn.wordpress.org/trunk@30201


git-svn-id: http://core.svn.wordpress.org/trunk@30201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-11-03 06:08:22 +00:00
parent 196d85a9f6
commit bd2521d5ee
5 changed files with 27 additions and 30 deletions

View File

@ -80,9 +80,9 @@ function get_udims( $width, $height ) {
* @deprecated Use wp_category_checklist() * @deprecated Use wp_category_checklist()
* @see wp_category_checklist() * @see wp_category_checklist()
* *
* @param unknown_type $default * @param int $default
* @param unknown_type $parent * @param int $parent
* @param unknown_type $popular_ids * @param array $popular_ids
*/ */
function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
_deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' ); _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() * @deprecated Use wp_link_category_checklist()
* @see wp_link_category_checklist() * @see wp_link_category_checklist()
* *
* @param unknown_type $default * @param int $default
*/ */
function dropdown_link_categories( $default = 0 ) { function dropdown_link_categories( $default = 0 ) {
_deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' ); _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() * @deprecated Use wp_dropdown_categories()
* @see wp_dropdown_categories() * @see wp_dropdown_categories()
* *
* @param unknown_type $currentcat * @param int $currentcat
* @param unknown_type $currentparent * @param int $currentparent
* @param unknown_type $parent * @param int $parent
* @param unknown_type $level * @param int $level
* @param unknown_type $categories * @param array $categories
* @return unknown * @return bool|null
*/ */
function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
_deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); _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. * @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. * 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 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. * @param callable $sanitize_callback A callback function that sanitizes the option's value.
* @return unknown
*/ */
function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
_deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); _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() * @deprecated Use unregister_setting()
* @see unregister_setting() * @see unregister_setting()
* *
* @param unknown_type $option_group * @param string $option_group
* @param unknown_type $option_name * @param string $option_name
* @param unknown_type $sanitize_callback * @param callable $sanitize_callback
* @return unknown
*/ */
function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
_deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); _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 * @since 2.1.0
* @access private * @access private
* @var unknown_type * @var mixed
*/ */
var $results; var $results;
@ -345,7 +343,7 @@ class WP_User_Search {
* *
* @since 2.1.0 * @since 2.1.0
* @access private * @access private
* @var unknown_type * @var string
*/ */
var $search_term; var $search_term;
@ -390,7 +388,7 @@ class WP_User_Search {
* *
* @since 2.1.0 * @since 2.1.0
* @access private * @access private
* @var unknown_type * @var int
*/ */
var $first_user; var $first_user;
@ -462,7 +460,7 @@ class WP_User_Search {
* *
* @since 2.1.0 * @since 2.1.0
* @access private * @access private
* @var unknown_type * @var WP_Error
*/ */
var $search_errors; var $search_errors;
@ -471,7 +469,7 @@ class WP_User_Search {
* *
* @since 2.7.0 * @since 2.7.0
* @access private * @access private
* @var unknown_type * @var string
*/ */
var $paging_text; var $paging_text;
@ -1128,8 +1126,7 @@ function wp_update_theme($theme, $feedback = '') {
* @since 2.0.0 * @since 2.0.0
* @deprecated 3.7.0 * @deprecated 3.7.0
* *
* @param unknown_type $id * @param int|bool $id
* @return unknown
*/ */
function the_attachment_links( $id = false ) { function the_attachment_links( $id = false ) {
_deprecated_function( __FUNCTION__, '3.7' ); _deprecated_function( __FUNCTION__, '3.7' );

View File

@ -1712,7 +1712,7 @@ function media_upload_header() {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param unknown_type $errors * @param array $errors
*/ */
function media_upload_form( $errors = null ) { function media_upload_form( $errors = null ) {
global $type, $tab, $is_IE, $is_opera; global $type, $tab, $is_IE, $is_opera;

View File

@ -151,7 +151,7 @@ class IXR_Value {
/** /**
* Checks whether or not the supplied array is a struct or not * Checks whether or not the supplied array is a struct or not
* *
* @param unknown_type $array * @param array $array
* @return boolean * @return boolean
*/ */
function isStruct($array) function isStruct($array)

View File

@ -579,8 +579,8 @@ function _fetch_remote_file($url, $headers = "" ) {
* @package External * @package External
* @subpackage MagpieRSS * @subpackage MagpieRSS
* *
* @param unknown_type $resp * @param array $resp
* @return unknown * @return MagpieRSS|bool
*/ */
function _response_to_rss ($resp) { function _response_to_rss ($resp) {
$rss = new MagpieRSS( $resp->results ); $rss = new MagpieRSS( $resp->results );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.