WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
[resolved] Errors When Removing Custom Header Support (2 posts)

  1. mrwweb
    Member
    Posted 1 year ago #

    I'm trying to remove the custom-header support for Twenty Twelve.

    I first tried this:
    remove_action( 'after_setup_theme', 'twentytwelve_custom_header_setup', 11 );

    That resulted in nothing.

    Next I tried this:

    function nws_theme_tweaks() {
    	remove_theme_support( 'custom-header' );
    }
    add_action( 'after_setup_theme', 'nws_theme_tweaks', 11 );

    That worked but then resulted in this error (with WP_Debug = TRUE):

    Notice: Undefined index: custom_image_header in \wp-includes\theme.php on line 1452

    Warning: Cannot modify header information - headers already sent by (output started at \wp-includes\theme.php:1452) in \wp-includes\option.php on line 563

    Warning: Cannot modify header information - headers already sent by (output started at \wp-includes\theme.php:1452) in \wp-includes\option.php on line 564

    Am I missing something or is this a bug?

  2. mrwweb
    Member
    Posted 1 year ago #

    Ok. Looks like this is a bug with no patch. Boo. http://core.trac.wordpress.org/ticket/14899

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic