Make WordPress Core


Ignore:
Timestamp:
06/15/2021 03:21:50 PM (5 years 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/class-wp-customize-manager.php

    r49992 r51154  
    39083908                // Removing core components this way is _doing_it_wrong().
    39093909                if ( in_array( $id, $this->components, true ) ) {
    3910                         $message = sprintf(
    3911                                 /* translators: 1: Panel ID, 2: Link to 'customize_loaded_components' filter reference. */
    3912                                 __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ),
    3913                                 $id,
     3910                        _doing_it_wrong(
     3911                                __METHOD__,
    39143912                                sprintf(
    3915                                         '<a href="%1$s">%2$s</a>',
    3916                                         esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ),
    3917                                         '<code>customize_loaded_components</code>'
    3918                                 )
     3913                                        /* translators: 1: Panel ID, 2: Link to 'customize_loaded_components' filter reference. */
     3914                                        __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ),
     3915                                        $id,
     3916                                        sprintf(
     3917                                                '<a href="%1$s">%2$s</a>',
     3918                                                esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ),
     3919                                                '<code>customize_loaded_components</code>'
     3920                                        )
     3921                                ),
     3922                                '4.5.0'
    39193923                        );
    3920 
    3921                         _doing_it_wrong( __METHOD__, $message, '4.5.0' );
    39223924                }
    39233925                unset( $this->panels[ $id ] );
Note: See TracChangeset for help on using the changeset viewer.