Make WordPress Core


Ignore:
Timestamp:
11/03/2014 05:58:14 AM (9 years ago)
Author:
wonderboymusic
Message:

Fill in the @param types for the args for functions missing them in wp-admin/includes/plugin.php.

See #30224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r29977 r30199  
    17451745 *  Default whitelisted option key names include "general," "discussion," and "reading," among others.
    17461746 * @param string $option_name The name of an option to sanitize and save.
    1747  * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
    1748  * @return unknown
     1747 * @param callable $sanitize_callback A callback function that sanitizes the option's value.
    17491748 */
    17501749function register_setting( $option_group, $option_name, $sanitize_callback = '' ) {
     
    17711770 * @since 2.7.0
    17721771 *
    1773  * @param unknown_type $option_group
    1774  * @param unknown_type $option_name
    1775  * @param unknown_type $sanitize_callback
    1776  * @return unknown
     1772 * @param string   $option_group
     1773 * @param string   $option_name
     1774 * @param callable $sanitize_callback
    17771775 */
    17781776function unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) {
     
    18011799 * @since 2.7.0
    18021800 *
    1803  * @param unknown_type $options
    1804  * @return unknown
     1801 * @param array $options
     1802 * @return array
    18051803 */
    18061804function option_update_filter( $options ) {
     
    18191817 * @since 2.7.0
    18201818 *
    1821  * @param unknown_type $new_options
    1822  * @param unknown_type $options
    1823  * @return unknown
     1819 * @param array        $new_options
     1820 * @param string|array $options
     1821 * @return array
    18241822 */
    18251823function add_option_whitelist( $new_options, $options = '' ) {
     
    18501848 * @since 2.7.0
    18511849 *
    1852  * @param unknown_type $del_options
    1853  * @param unknown_type $options
    1854  * @return unknown
     1850 * @param array        $del_options
     1851 * @param string|array $options
     1852 * @return array
    18551853 */
    18561854function remove_option_whitelist( $del_options, $options = '' ) {
Note: See TracChangeset for help on using the changeset viewer.