Fehlermeldung bei jeglicher Atkion im Backend
Bei jeglicher Aktion im Backend bekomme ich eine Fehlermeldung, nach
einer Aktualisierung greifen die Aktionen dann aber doch.
Warning: Cannot modify header information - headers already sent by (output started at /mnt/storage/www/lions-kuernberg/htdocs/wp-content/themes/lions/functions.php:16) in /mnt/storage/www/lions-kuernberg/htdocs/wp-includes/pluggable.php on line 897
Meine functions.php sieht so aus:
<?php
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
}
function string_limit_words($string, $word_limit) {
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words);
}
function my_widget_init() {
register_sidebar( array(
'name' => 'Primary Widget Area',
'id' => 'primary-widget-area',
'description' => __('The primary widget area'),
'before_widget' => '<div id="widget">',
'after_widget' => '</div>',
'before_title' => '<b><p class="widgettitle">',
'after_title' => '</b></p>',
));
}
add_action( 'init', 'my_widget_init' );
?>
Wisst ihr was da los ist?