mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 13:44:30 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51154 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -304,13 +304,16 @@ function wp_deregister_script( $handle ) {
|
||||
);
|
||||
|
||||
if ( in_array( $handle, $not_allowed, true ) ) {
|
||||
$message = sprintf(
|
||||
/* translators: 1: Script name, 2: wp_enqueue_scripts */
|
||||
__( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
|
||||
"<code>$handle</code>",
|
||||
'<code>wp_enqueue_scripts</code>'
|
||||
_doing_it_wrong(
|
||||
__FUNCTION__,
|
||||
sprintf(
|
||||
/* translators: 1: Script name, 2: wp_enqueue_scripts */
|
||||
__( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
|
||||
"<code>$handle</code>",
|
||||
'<code>wp_enqueue_scripts</code>'
|
||||
),
|
||||
'3.6.0'
|
||||
);
|
||||
_doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user