Changeset 43571 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r42843 r43571 40 40 41 41 _doing_it_wrong( 42 $function, sprintf( 42 $function, 43 sprintf( 43 44 /* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */ 44 45 __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 46 47 '<code>admin_enqueue_scripts</code>', 47 48 '<code>login_enqueue_scripts</code>' 48 ), '3.3.0' 49 ), 50 '3.3.0' 49 51 ); 50 52 } … … 112 114 if ( false !== stripos( $data, '</script>' ) ) { 113 115 _doing_it_wrong( 114 __FUNCTION__, sprintf( 116 __FUNCTION__, 117 sprintf( 115 118 /* translators: 1: <script>, 2: wp_add_inline_script() */ 116 119 __( 'Do not pass %1$s tags to %2$s.' ), 117 120 '<code><script></code>', 118 121 '<code>wp_add_inline_script()</code>' 119 ), '4.5.0' 122 ), 123 '4.5.0' 120 124 ); 121 125 $data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
Note: See TracChangeset
for help on using the changeset viewer.