Ticket #30713: 30713.diff
| File 30713.diff, 4.5 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/css/customize-controls.css
580 580 /** Header control **/ 581 581 582 582 .customize-control-upload .current, 583 .customize-control-image .current,584 .customize-control-background .current,585 583 .customize-control-header .current { 586 584 margin-bottom: 8px; 587 585 } … … 608 606 .customize-control-upload .remove-button, 609 607 .customize-control-upload .default-button, 610 608 .customize-control-upload .upload-button, 611 .customize-control-image .remove-button,612 .customize-control-image .default-button,613 .customize-control-image .upload-button,614 .customize-control-background .remove-button,615 .customize-control-background .default-button,616 .customize-control-background .upload-button,617 609 .customize-control-header button.new, 618 610 .customize-control-header button.remove { 619 611 white-space: normal; … … 622 614 } 623 615 624 616 .customize-control-upload .current .container, 625 .customize-control-image .current .container,626 .customize-control-background .current .container,627 617 .customize-control-header .current .container { 628 618 overflow: hidden; 629 619 -webkit-border-radius: 2px; … … 632 622 border-radius: 2px; 633 623 } 634 624 635 .customize-control-upload .current .container, 636 .customize-control-background .current .container, 637 .customize-control-image .current .container { 625 .customize-control-upload .current .container { 638 626 min-height: 40px; 639 627 } 640 628 641 629 .customize-control-upload .placeholder, 642 .customize-control-image .placeholder,643 .customize-control-background .placeholder,644 630 .customize-control-header .placeholder { 645 631 width: 100%; 646 632 position: relative; … … 649 635 } 650 636 651 637 .customize-control-upload .inner, 652 .customize-control-image .inner,653 .customize-control-background .inner,654 638 .customize-control-header .inner { 655 639 display: none; 656 640 position: absolute; … … 661 645 overflow: hidden; 662 646 } 663 647 664 .customize-control-upload .inner, 665 .customize-control-background .inner, 666 .customize-control-image .inner { 648 .customize-control-upload .inner { 667 649 display: block; 668 650 min-height: 40px; 669 651 } 670 652 671 653 .customize-control-upload .inner, 672 .customize-control-image .inner,673 .customize-control-background .inner,674 654 .customize-control-header .inner, 675 655 .customize-control-header .inner .dashicons { 676 656 line-height: 20px; … … 786 766 } 787 767 788 768 .customize-control-upload .actions, 789 .customize-control-image .actions,790 .customize-control-background .actions,791 769 .customize-control-header .actions { 792 770 margin-bottom: 32px; 793 771 } … … 803 781 } 804 782 805 783 .customize-control-upload img, 806 .customize-control-image img,807 .customize-control-background img,808 784 .customize-control-header img { 809 785 width: 100%; 810 786 -webkit-border-radius: 2px; … … 813 789 814 790 .customize-control-upload .remove-button, 815 791 .customize-control-upload .default-button, 816 .customize-control-image .remove-button,817 .customize-control-image .default-button,818 .customize-control-background .remove-button,819 .customize-control-background .default-button,820 792 .customize-control-header .remove { 821 793 float: left; 822 794 margin-right: 3px; … … 823 795 } 824 796 825 797 .customize-control-upload .upload-button, 826 .customize-control-image .upload-button,827 .customize-control-background .upload-button,828 798 .customize-control-header .new { 829 799 float: right; 830 800 } -
src/wp-includes/class-wp-customize-control.php
338 338 * @since 3.4.0 339 339 */ 340 340 protected function render() { 341 $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); 342 $class = 'customize-control customize-control-' . $this->type; 341 $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); 342 if ( ! get_parent_class( $this ) ) { 343 $classes = 'customize-control customize-control-' . $this->type; 344 } else { 345 $classes = 'customize-control'; 346 $class = $this; 347 while ( $parent = get_parent_class( $class ) ) { 348 if ( isset( $class->type ) ) { 349 $classes .= ' customize-control-' . $class->type; 350 } 351 $class = new $parent( $this->manager, 'temp', array() ); 352 } 353 } 343 354 344 ?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>">355 ?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 345 356 <?php $this->render_content(); ?> 346 357 </li><?php 347 358 }