Make WordPress Core

Changeset 48566


Ignore:
Timestamp:
07/22/2020 06:50:30 PM (5 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.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r48500 r48566  
    22322232 * @return array
    22332233 */
    2234 function remove_option_allowed_list( $del_options, $options = '' ) {
     2234function remove_allowed_options( $del_options, $options = '' ) {
    22352235    if ( '' === $options ) {
    22362236        global $allowed_options;
  • 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.