Changeset 20598 for trunk/wp-includes/class-wp-customize.php
- Timestamp:
- 04/25/2012 09:03:29 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-customize.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize.php
r20585 r20598 540 540 // @todo: replace with a new accept() setting method 541 541 // 'sanitize_callback' => 'sanitize_hexcolor', 542 'control' => 'color',543 542 'theme_supports' => array( 'custom-header', 'header-text' ), 544 543 'default' => get_theme_support( 'custom-header', 'default-text-color' ), … … 552 551 ) ); 553 552 554 $this->add_control( 'header_textcolor', array(553 $this->add_control( new WP_Customize_Color_Control( $this, 'header_textcolor', array( 555 554 'label' => __( 'Text Color' ), 556 555 'section' => 'header', 557 'type' => 'color', 558 ) ); 556 ) ) ); 559 557 560 558 // Input type: checkbox … … 584 582 ) ); 585 583 586 $this->add_control( 'background_color', array(584 $this->add_control( new WP_Customize_Color_Control( $this, 'background_color', array( 587 585 'label' => __( 'Background Color' ), 588 586 'section' => 'background', 589 'type' => 'color', 590 ) ); 587 ) ) ); 591 588 592 589 $this->add_setting( 'background_image', array( … … 595 592 ) ); 596 593 597 $this->add_control( new WP_Customize_ Upload_Control( $this, 'background_image', array(594 $this->add_control( new WP_Customize_Image_Control( $this, 'background_image', array( 598 595 'label' => __( 'Background Image' ), 599 596 'section' => 'background', 600 'type' => 'upload',601 597 'context' => 'custom-background', 602 598 ) ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)