WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2021 03:21:50 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls.

This brings some consistency with most other calls.

Follow-up to [23378], [25605], [34745], [36219], [44108], [46111], [48156].

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-scripts.php

    r50393 r51154  
    305305
    306306        if ( in_array( $handle, $not_allowed, true ) ) {
    307             $message = sprintf(
    308                 /* translators: 1: Script name, 2: wp_enqueue_scripts */
    309                 __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
    310                 "<code>$handle</code>",
    311                 '<code>wp_enqueue_scripts</code>'
     307            _doing_it_wrong(
     308                __FUNCTION__,
     309                sprintf(
     310                    /* translators: 1: Script name, 2: wp_enqueue_scripts */
     311                    __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
     312                    "<code>$handle</code>",
     313                    '<code>wp_enqueue_scripts</code>'
     314                ),
     315                '3.6.0'
    312316            );
    313             _doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
    314317            return;
    315318        }
Note: See TracChangeset for help on using the changeset viewer.