Coding Standards: Reformat some long `apply_filters_deprecated()` and `do_action_deprecated()` calls for better readability.
See #49542. Built from https://develop.svn.wordpress.org/trunk@48167 git-svn-id: http://core.svn.wordpress.org/trunk@47936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d10595ce32
commit
d38a32bfac
|
@ -372,7 +372,12 @@ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
|
|||
* @param string $mime_type The mime type of the image.
|
||||
* @param int $post_id Attachment post ID.
|
||||
*/
|
||||
$saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' );
|
||||
$saved = apply_filters_deprecated(
|
||||
'wp_save_image_file',
|
||||
array( null, $filename, $image, $mime_type, $post_id ),
|
||||
'3.5.0',
|
||||
'wp_save_image_editor_file'
|
||||
);
|
||||
|
||||
if ( null !== $saved ) {
|
||||
return $saved;
|
||||
|
|
|
@ -62,7 +62,7 @@ window.wp = window.wp || {};
|
|||
userInputBlacklist : function() {
|
||||
window.console.log(
|
||||
sprintf(
|
||||
/* translators: 1: Deprecated JSfunction name, 2: Version number, 3: Alternative function name. */
|
||||
/* translators: 1: Deprecated function name, 2: Version number, 3: Alternative function name. */
|
||||
__( '%1$s is deprecated since version %2$s! Use %3$s instead. Please consider writing more inclusive code.' ),
|
||||
'wp.passwordStrength.userInputBlacklist()',
|
||||
'5.5.0',
|
||||
|
|
|
@ -207,7 +207,13 @@ if ( ! is_multisite() ) {
|
|||
*
|
||||
* @param array $allowed_options The allowed options list.
|
||||
*/
|
||||
$allowed_options = apply_filters_deprecated( 'whitelist_options', array( $allowed_options ), '5.5.0', 'apply_filters_deprecated', __( 'Please consider writing more inclusive code.' ) );
|
||||
$allowed_options = apply_filters_deprecated(
|
||||
'whitelist_options',
|
||||
array( $allowed_options ),
|
||||
'5.5.0',
|
||||
'apply_filters_deprecated',
|
||||
__( 'Please consider writing more inclusive code.' )
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters the allowed options list.
|
||||
|
|
|
@ -372,7 +372,12 @@ function map_meta_cap( $cap, $user_id, ...$args ) {
|
|||
* @param string $cap Capability name.
|
||||
* @param string[] $caps Array of the user's capabilities.
|
||||
*/
|
||||
$allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '4.9.8', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );
|
||||
$allowed = apply_filters_deprecated(
|
||||
"auth_{$object_type}_{$object_subtype}_meta_{$meta_key}",
|
||||
array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ),
|
||||
'4.9.8',
|
||||
"auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}"
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! $allowed ) {
|
||||
|
|
|
@ -1325,7 +1325,13 @@ function wp_blocklist_check( $author, $email, $url, $comment, $user_ip, $user_ag
|
|||
* @param string $user_ip Comment author's IP address.
|
||||
* @param string $user_agent Comment author's browser user agent.
|
||||
*/
|
||||
do_action_deprecated( 'wp_blacklist_check', array( $author, $email, $url, $comment, $user_ip, $user_agent ), '5.5.0', 'wp_blocklist_check', __( 'Please consider writing more inclusive code.' ) );
|
||||
do_action_deprecated(
|
||||
'wp_blacklist_check',
|
||||
array( $author, $email, $url, $comment, $user_ip, $user_agent ),
|
||||
'5.5.0',
|
||||
'wp_blocklist_check',
|
||||
__( 'Please consider writing more inclusive code.' )
|
||||
);
|
||||
|
||||
/**
|
||||
* Fires before the comment is tested for disallowed characters or words.
|
||||
|
|
|
@ -132,7 +132,12 @@ function wp_insert_site( array $data ) {
|
|||
* @param int $network_id Network ID. Only relevant on multi-network installations.
|
||||
* @param array $meta Meta data. Used to set initial site options.
|
||||
*/
|
||||
do_action_deprecated( 'wpmu_new_blog', array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ), '5.1.0', 'wp_insert_site' );
|
||||
do_action_deprecated(
|
||||
'wpmu_new_blog',
|
||||
array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
|
||||
'5.1.0',
|
||||
'wp_insert_site'
|
||||
);
|
||||
}
|
||||
|
||||
return (int) $new_site->id;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48166';
|
||||
$wp_version = '5.5-alpha-48167';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue