34
34
* @param string $function Function name.
36
36
function _wp_scripts_maybe_doing_it_wrong( $function ) {
41
41
_doing_it_wrong( $function, sprintf(
42
43
__( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
43
44
'<code>wp_enqueue_scripts</code>',
44
45
'<code>admin_enqueue_scripts</code>',