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
This commit is contained in:
parent
64167f0845
commit
37f94bdfd0
@ -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.
|
* @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 register_setting( $option_group, $option_name, $sanitize_callback = '' ) {
|
function register_setting( $option_group, $option_name, $sanitize_callback = '' ) {
|
||||||
global $new_whitelist_options;
|
global $new_whitelist_options;
|
||||||
@ -1770,10 +1769,9 @@ function register_setting( $option_group, $option_name, $sanitize_callback = ''
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @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 unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) {
|
function unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) {
|
||||||
global $new_whitelist_options;
|
global $new_whitelist_options;
|
||||||
@ -1800,8 +1798,8 @@ function unregister_setting( $option_group, $option_name, $sanitize_callback = '
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $options
|
* @param array $options
|
||||||
* @return unknown
|
* @return array
|
||||||
*/
|
*/
|
||||||
function option_update_filter( $options ) {
|
function option_update_filter( $options ) {
|
||||||
global $new_whitelist_options;
|
global $new_whitelist_options;
|
||||||
@ -1818,9 +1816,9 @@ add_filter( 'whitelist_options', 'option_update_filter' );
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $new_options
|
* @param array $new_options
|
||||||
* @param unknown_type $options
|
* @param string|array $options
|
||||||
* @return unknown
|
* @return array
|
||||||
*/
|
*/
|
||||||
function add_option_whitelist( $new_options, $options = '' ) {
|
function add_option_whitelist( $new_options, $options = '' ) {
|
||||||
if ( $options == '' )
|
if ( $options == '' )
|
||||||
@ -1849,9 +1847,9 @@ function add_option_whitelist( $new_options, $options = '' ) {
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $del_options
|
* @param array $del_options
|
||||||
* @param unknown_type $options
|
* @param string|array $options
|
||||||
* @return unknown
|
* @return array
|
||||||
*/
|
*/
|
||||||
function remove_option_whitelist( $del_options, $options = '' ) {
|
function remove_option_whitelist( $del_options, $options = '' ) {
|
||||||
if ( $options == '' )
|
if ( $options == '' )
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user