Coding Standards: Reformat some long apply_filters_deprecated() and do_action_deprecated() calls for better readability.

See #49542.

git-svn-id: https://develop.svn.wordpress.org/trunk@48167 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-06-25 12:04:05 +00:00
parent de36eb3326
commit e65d19b9ed
6 changed files with 33 additions and 6 deletions
+6 -1
View File
@@ -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;
+7 -1
View File
@@ -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.