Changeset 23377
- Timestamp:
- 02/02/2013 02:42:09 AM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.wp-scripts.php
r21672 r23377 28 28 if ( ! did_action( 'init' ) ) 29 29 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 30 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );30 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 31 31 32 32 if ( !$handles ) … … 55 55 if ( ! did_action( 'init' ) ) 56 56 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 57 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );57 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 58 58 $wp_scripts = new WP_Scripts(); 59 59 } … … 89 89 if ( ! did_action( 'init' ) ) 90 90 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 91 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );91 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 92 92 93 93 return false; … … 108 108 if ( ! did_action( 'init' ) ) 109 109 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 110 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );110 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 111 111 $wp_scripts = new WP_Scripts(); 112 112 } … … 128 128 if ( ! did_action( 'init' ) ) 129 129 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 130 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );130 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 131 131 $wp_scripts = new WP_Scripts(); 132 132 } … … 152 152 if ( ! did_action( 'init' ) ) 153 153 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 154 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );154 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 155 155 $wp_scripts = new WP_Scripts(); 156 156 } … … 178 178 if ( ! did_action( 'init' ) ) 179 179 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 180 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );180 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 181 181 $wp_scripts = new WP_Scripts(); 182 182 } -
trunk/wp-includes/functions.wp-styles.php
r21672 r23377 29 29 if ( ! did_action( 'init' ) ) 30 30 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 31 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );31 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 32 32 33 33 if ( !$handles ) … … 56 56 if ( ! did_action( 'init' ) ) 57 57 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 58 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );58 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 59 59 $wp_styles = new WP_Styles(); 60 60 } … … 84 84 if ( ! did_action( 'init' ) ) 85 85 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 86 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );86 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 87 87 $wp_styles = new WP_Styles(); 88 88 } … … 105 105 if ( ! did_action( 'init' ) ) 106 106 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 107 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );107 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 108 108 $wp_styles = new WP_Styles(); 109 109 } … … 136 136 if ( ! did_action( 'init' ) ) 137 137 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 138 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );138 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 139 139 $wp_styles = new WP_Styles(); 140 140 } … … 158 158 if ( ! did_action( 'init' ) ) 159 159 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 160 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );160 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 161 161 $wp_styles = new WP_Styles(); 162 162 } … … 185 185 if ( ! did_action( 'init' ) ) 186 186 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 187 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code> init</code>' ), '3.3' );187 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 188 188 $wp_styles = new WP_Styles(); 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.