Changeset 48121 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 06/22/2020 05:24:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r48104 r48121 3996 3996 _deprecated_function( __FUNCTION__, '5.5.0' ); 3997 3997 } 3998 3999 /** 4000 * Does comment contain disallowed characters or words. 4001 * 4002 * @since 1.5.0 4003 * @deprecated 5.5.0 Use wp_blocklist_check() instead. 4004 * Please consider writing more inclusive code. 4005 * 4006 * @param string $author The author of the comment 4007 * @param string $email The email of the comment 4008 * @param string $url The url used in the comment 4009 * @param string $comment The comment content 4010 * @param string $user_ip The comment author's IP address 4011 * @param string $user_agent The author's browser user agent 4012 * @return bool True if comment contains disallowed content, false if comment does not 4013 */ 4014 function wp_blacklist_check( $author, $email, $url, $comment, $user_ip, $user_agent ) { 4015 _deprecated_function( __FUNCTION__, '5.5.0', 'wp_blocklist_check()' ); 4016 4017 return wp_blocklist_check( $author, $email, $url, $comment, $user_ip, $user_agent ); 4018 } 4019 4020 /** 4021 * Filters out `register_meta()` args based on an allowed list. 4022 * 4023 * `register_meta()` args may change over time, so requiring the allowed list 4024 * to be explicitly turned off is a warranty seal of sorts. 4025 * 4026 * @access private 4027 * @since 4.6.0 4028 * @deprecated 5.5.0 Use _wp_register_meta_args_allowed_list() instead. 4029 * Please consider writing more inclusive code. 4030 * 4031 * @param array $args Arguments from `register_meta()`. 4032 * @param array $default_args Default arguments for `register_meta()`. 4033 * @return array Filtered arguments. 4034 */ 4035 function _wp_register_meta_args_whitelist( $args, $default_args ) { 4036 _deprecated_function( __FUNCTION__, '5.5.0', '_wp_register_meta_args_allowed_list()' ); 4037 4038 return _wp_register_meta_args_allowed_list( $args, $default_args ); 4039 } 4040 4041 /** 4042 * Adds an array of options to the list of allowed options. 4043 * 4044 * @since 2.7.0 4045 * @deprecated 5.5.0 Use add_option_allowed_list() instead. 4046 * Please consider writing more inclusive code. 4047 * 4048 * @global array $allowed_options 4049 * 4050 * @param array $new_options 4051 * @param string|array $options 4052 * @return array 4053 */ 4054 function add_option_whitelist( $new_options, $options = '' ) { 4055 _deprecated_function( __FUNCTION__, '5.5.0', 'add_option_allowed_list()' ); 4056 4057 return add_option_allowed_list( $new_options, $options ); 4058 } 4059 4060 /** 4061 * Removes a list of options from the allowed options list. 4062 * 4063 * @since 2.7.0 4064 * @deprecated 5.5.0 Use remove_option_allowed_list() instead. 4065 * Please consider writing more inclusive code. 4066 * 4067 * @global array $allowed_options 4068 * 4069 * @param array $del_options 4070 * @param string|array $options 4071 * @return array 4072 */ 4073 function remove_option_whitelist( $del_options, $options = '' ) { 4074 _deprecated_function( __FUNCTION__, '5.5.0', 'remove_option_allowed_list()' ); 4075 4076 return remove_option_allowed_list( $del_options, $options ); 4077 }
Note: See TracChangeset
for help on using the changeset viewer.