CodeExplorer wp_default_styles example
if ( empty( $load ) ) { header( "
$protocol 400 Bad Request"
);
exit;
}$rtl =
( isset( $_GET['dir'
] ) && 'rtl' ===
$_GET['dir'
] );
$expires_offset = 31536000; // 1 year.
$out = '';
$wp_styles =
new WP_Styles();
wp_default_styles( $wp_styles );
if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'
] ) &&
stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'
] ) ===
$wp_version ) { header( "
$protocol 304 Not Modified"
);
exit;
}foreach ( $load as $handle ) { if ( !
array_key_exists( $handle,
$wp_styles->registered
) ) { continue;
}