mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +00:00
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core.
Props metodiew. Fixes #36495. git-svn-id: https://develop.svn.wordpress.org/trunk@37985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -43,7 +43,7 @@ function _wp_scripts_maybe_doing_it_wrong( $function ) {
|
||||
'<code>wp_enqueue_scripts</code>',
|
||||
'<code>admin_enqueue_scripts</code>',
|
||||
'<code>login_enqueue_scripts</code>'
|
||||
), '3.3' );
|
||||
), '3.3.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,7 +112,7 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) {
|
||||
__( 'Do not pass %1$s tags to %2$s.' ),
|
||||
'<code><script></code>',
|
||||
'<code>wp_add_inline_script()</code>'
|
||||
), '4.5' );
|
||||
), '4.5.0' );
|
||||
$data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ function wp_deregister_script( $handle ) {
|
||||
if ( in_array( $handle, $no ) ) {
|
||||
$message = sprintf( __( '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__, $message, '3.6' );
|
||||
_doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user