From 37f94bdfd0dd802441c47f3c38eb7f6a9f9e9674 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 3 Nov 2014 05:59:22 +0000 Subject: [PATCH] Fill in the `@param` types for the args for functions missing them in `wp-admin/includes/plugin.php`. See #30224. Built from https://develop.svn.wordpress.org/trunk@30199 git-svn-id: http://core.svn.wordpress.org/trunk@30199 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 26 ++++++++++++-------------- wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 24fecc4355..d1c821136f 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -1744,8 +1744,7 @@ function user_can_access_admin_page() { * @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 register_setting( $option_group, $option_name, $sanitize_callback = '' ) { global $new_whitelist_options; @@ -1770,10 +1769,9 @@ function register_setting( $option_group, $option_name, $sanitize_callback = '' * * @since 2.7.0 * - * @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 unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) { global $new_whitelist_options; @@ -1800,8 +1798,8 @@ function unregister_setting( $option_group, $option_name, $sanitize_callback = ' * * @since 2.7.0 * - * @param unknown_type $options - * @return unknown + * @param array $options + * @return array */ function option_update_filter( $options ) { global $new_whitelist_options; @@ -1818,9 +1816,9 @@ add_filter( 'whitelist_options', 'option_update_filter' ); * * @since 2.7.0 * - * @param unknown_type $new_options - * @param unknown_type $options - * @return unknown + * @param array $new_options + * @param string|array $options + * @return array */ function add_option_whitelist( $new_options, $options = '' ) { if ( $options == '' ) @@ -1849,9 +1847,9 @@ function add_option_whitelist( $new_options, $options = '' ) { * * @since 2.7.0 * - * @param unknown_type $del_options - * @param unknown_type $options - * @return unknown + * @param array $del_options + * @param string|array $options + * @return array */ function remove_option_whitelist( $del_options, $options = '' ) { if ( $options == '' ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 1471ea9ab8..63b668bffe 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30198'; +$wp_version = '4.1-alpha-30199'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.