WordPress.org

Make WordPress Core

Changeset 48167


Ignore:
Timestamp:
06/25/2020 12:04:05 PM (8 months ago)
Author:
SergeyBiryukov
Message:

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

See #49542.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/password-strength-meter.js

    r48142 r48167  
    6363            window.console.log(
    6464                sprintf(
    65                     /* translators: 1: Deprecated  JSfunction name, 2: Version number, 3: Alternative function name. */
     65                    /* translators: 1: Deprecated function name, 2: Version number, 3: Alternative function name. */
    6666                    __( '%1$s is deprecated since version %2$s! Use %3$s instead. Please consider writing more inclusive code.' ),
    6767                    'wp.passwordStrength.userInputBlacklist()',
  • trunk/src/wp-admin/includes/image-edit.php

    r47808 r48167  
    373373         * @param int             $post_id   Attachment post ID.
    374374         */
    375         $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' );
     375        $saved = apply_filters_deprecated(
     376            'wp_save_image_file',
     377            array( null, $filename, $image, $mime_type, $post_id ),
     378            '3.5.0',
     379            'wp_save_image_editor_file'
     380        );
    376381
    377382        if ( null !== $saved ) {
  • trunk/src/wp-admin/options.php

    r48121 r48167  
    208208 * @param array $allowed_options The allowed options list.
    209209 */
    210 $allowed_options = apply_filters_deprecated( 'whitelist_options', array( $allowed_options ), '5.5.0', 'apply_filters_deprecated', __( 'Please consider writing more inclusive code.' ) );
     210$allowed_options = apply_filters_deprecated(
     211    'whitelist_options',
     212    array( $allowed_options ),
     213    '5.5.0',
     214    'apply_filters_deprecated',
     215    __( 'Please consider writing more inclusive code.' )
     216);
    211217
    212218/**
  • trunk/src/wp-includes/capabilities.php

    r47902 r48167  
    373373                     * @param string[] $caps      Array of the user's capabilities.
    374374                     */
    375                     $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}" );
     375                    $allowed = apply_filters_deprecated(
     376                        "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}",
     377                        array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ),
     378                        '4.9.8',
     379                        "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}"
     380                    );
    376381                }
    377382
  • trunk/src/wp-includes/comment.php

    r48154 r48167  
    13261326     * @param string $user_agent Comment author's browser user agent.
    13271327     */
    1328     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.' ) );
     1328    do_action_deprecated(
     1329        'wp_blacklist_check',
     1330        array( $author, $email, $url, $comment, $user_ip, $user_agent ),
     1331        '5.5.0',
     1332        'wp_blocklist_check',
     1333        __( 'Please consider writing more inclusive code.' )
     1334    );
    13291335
    13301336    /**
  • trunk/src/wp-includes/ms-site.php

    r48121 r48167  
    133133         * @param array  $meta       Meta data. Used to set initial site options.
    134134         */
    135         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' );
     135        do_action_deprecated(
     136            'wpmu_new_blog',
     137            array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
     138            '5.1.0',
     139            'wp_insert_site'
     140        );
    136141    }
    137142
Note: See TracChangeset for help on using the changeset viewer.