Make WordPress Core

Ticket #20448: 20448.4.diff

File 20448.4.diff, 1.2 KB (added by kobenland, 13 years ago)

Specify default-color argument when calling add_custom_background() in Twenty Ten and Twenty Eleven. :)

  • wp-content/themes/twentyeleven/functions.php

     
    9898        add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );
    9999
    100100        // Add support for custom backgrounds.
    101         add_theme_support( 'custom-background' );
     101        add_theme_support( 'custom-background', array( 'default-color' => 'FFF' ) );
    102102
    103103        // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images
    104104        add_theme_support( 'post-thumbnails' );
  • wp-content/themes/twentyten/functions.php

     
    9494        ) );
    9595
    9696        // This theme allows users to set a custom background.
    97         add_theme_support( 'custom-background' );
    98 
     97        add_theme_support( 'custom-background', array( 'default-color' => 'FFF' ) );
     98       
    9999        // The custom header business starts here.
    100100
    101101        add_theme_support( 'custom-header', array(