Hallo Leute,
diesmal brauch ich wirklich Eure Hilfe. Ich steh leider komplett an...
Ich muss Stylesheets laden und zwar (hier als Bsp) nur für den IE bis v7. In beiden Szenarios is WP_DEBUG true (wp-config.php).
--------------------------------------------------
Szenario 1)
add_action('hook_ie_styles', wp_enqueue_style( 'my_ie_stylesheet', SOMEPATHCONSTANT . '/ie.css', false, '0.0', 'screen' ), 100 );
Problem: Php-Notice:
<br>
<b>Notice</b>: Undefined offset: 0 in <b>C:\development\xampp\htdocs\wordpress\wp-includes\plugin.php</b> on line <b>747</b><br>
<br>
<b>Notice</b>: Undefined offset: 0 in <b>C:\development\xampp\htdocs\wordpress\wp-includes\plugin.php</b> on line <b>765</b><br>
--------------------------------------------------
Szenario 2)
function load_ie_style() {
wp_enqueue_style( 'my_ie_stylesheet', SOMEPATHCONSTANT . '/ie.css', false, '0.0', 'screen' );
}
global $wp_styles;
$wp_styles->add_data( 'my_ie_stylesheet', 'conditional', 'lte IE 7' );
add_action('hook_ie_styles', 'load_ie_style', 100);
Problem: Stylesheet wird geladen, aber ohne conditionals.
--------------------------------------------------
Ich hoffe jemand kann mir dabei helfen. Mir fallen sogar schon die inzwischen grauen Haare aus.