Ticket #37011: 37011.8.diff
File 37011.8.diff, 2.2 KB (added by , 3 years ago) |
---|
-
src/wp-includes/theme.php
3811 3811 'show_in_rest' => array( 3812 3812 'schema' => array( 3813 3813 'properties' => array( 3814 'width' => array(3814 'width' => array( 3815 3815 'type' => 'integer', 3816 3816 ), 3817 'height' => array(3817 'height' => array( 3818 3818 'type' => 'integer', 3819 3819 ), 3820 'flex-width' => array(3820 'flex-width' => array( 3821 3821 'type' => 'boolean', 3822 3822 ), 3823 'flex-height' => array(3823 'flex-height' => array( 3824 3824 'type' => 'boolean', 3825 3825 ), 3826 'header-text' => array(3826 'header-text' => array( 3827 3827 'type' => 'array', 3828 3828 'items' => array( 3829 3829 'type' => 'string', 3830 3830 ), 3831 3831 ), 3832 'unlink-homepage-logo' => array( 3833 'type' => 'boolean', 3834 ), 3832 3835 ), 3833 3836 ), 3834 3837 ), -
tests/phpunit/tests/rest-api/rest-themes-controller.php
574 574 public function test_theme_supports_custom_logo() { 575 575 remove_theme_support( 'custom-logo' ); 576 576 $wordpress_logo = array( 577 'height' => 100, 578 'width' => 400, 579 'flex-height' => true, 580 'flex-width' => true, 581 'header-text' => array( 'site-title', 'site-description' ), 577 'height' => 100, 578 'width' => 400, 579 'flex-height' => true, 580 'flex-width' => true, 581 'header-text' => array( 'site-title', 'site-description' ), 582 'unlink-homepage-logo' => false, 582 583 ); 583 584 add_theme_support( 'custom-logo', $wordpress_logo ); 584 585 $response = self::perform_active_theme_request(); -
.