Make WordPress Core


Ignore:
Timestamp:
07/22/2020 06:50:30 PM (4 years ago)
Author:
desrosj
Message:

General: Rename remove_option_allowed_list() to remove_allowed_options().

This was missed in [48142] which renamed add_option_allowed_list() to add_allowed_options() for better readability. The two functions should have consistent names.

See #50413.

File:
1 edited

Legend:

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

    r48426 r48566  
    40874087 *
    40884088 * @since 2.7.0
    4089  * @deprecated 5.5.0 Use remove_option_allowed_list() instead.
     4089 * @deprecated 5.5.0 Use remove_allowed_options() instead.
    40904090 *                   Please consider writing more inclusive code.
    40914091 *
     
    40974097 */
    40984098function remove_option_whitelist( $del_options, $options = '' ) {
    4099     _deprecated_function( __FUNCTION__, '5.5.0', 'remove_option_allowed_list()' );
    4100 
    4101     return remove_option_allowed_list( $del_options, $options );
    4102 }
     4099    _deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' );
     4100
     4101    return remove_allowed_options( $del_options, $options );
     4102}
Note: See TracChangeset for help on using the changeset viewer.