wordpress-bootstrap
wordpress-bootstrap copied to clipboard
Cannot redeclare bones_custom_admin_footer() => proper Child Theme Support
functions.php needs to be cleaned up (as per suggestions in http://codex.wordpress.org/Child_Themes)
** How to reproduce the bug:
- Make a child theme (style.css with line "Template: wp-bootstrap")
- write a NEW functions.php overwriting the functions you need (e.g. bones_register_sidebars, theme_styles, ..)
- You get the error "Cannot redeclare"
The subject-line error comes up if you simply copy the original functions.php (which is not the right way to do anyway)
** Action to fix bug:
Some functions are not properly plugabble, like at line 104 it should read
if ( ! function_exists( 'bones_register_sidebars' ) ) { function bones_register_sidebars() {