[wp-hackers] wp_enqueue_style $handle
24-7 at gmx.net
Wed Jun 30 16:06:06 UTC 2010
Hi list members,
because of an older problem i just looked into /wp-includes/
functions.wp-styles.php on lines 77-106 at the wp_enqueue_style()
function and realised that the problem i had could come from line 105
$enqueue( $handle ).
I tried to add a stylesheet named "global" (@ $handle) for a theme and
got instead a admin-stylesheet registered. Is it neccassary to set
$handle to required and favor it upon $src (optional)? I guess it's
because you can easily register core-stylesheets/-scripts with only
for ex. wp_enqueue_style( 'global' ); or
wp_enqueue_script( 'jquery' );, but i would (personally) prefer to set
$src to a higher priority.
More information about the wp-hackers