Themes: Add unlink-homepage-logo to the create_initial_theme_features() registration for the custom-logo theme feature.
Follow-up to [48039], [48283], [48749], [48757], [48758]. This brings the changes to the 5.5 branch. Props TimothyBlynJacobs, SergeyBiryukov, whyisjake. Fixes #37011. git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fb5dafdac3
commit
89c0054e1f
|
@ -3811,24 +3811,27 @@ function create_initial_theme_features() {
|
|||
'show_in_rest' => array(
|
||||
'schema' => array(
|
||||
'properties' => array(
|
||||
'width' => array(
|
||||
'width' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
'height' => array(
|
||||
'height' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
'flex-width' => array(
|
||||
'flex-width' => array(
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'flex-height' => array(
|
||||
'flex-height' => array(
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'header-text' => array(
|
||||
'header-text' => array(
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
'unlink-homepage-logo' => array(
|
||||
'type' => 'boolean',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -574,11 +574,12 @@ class WP_Test_REST_Themes_Controller extends WP_Test_REST_Controller_Testcase {
|
|||
public function test_theme_supports_custom_logo() {
|
||||
remove_theme_support( 'custom-logo' );
|
||||
$wordpress_logo = array(
|
||||
'height' => 100,
|
||||
'width' => 400,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
'header-text' => array( 'site-title', 'site-description' ),
|
||||
'height' => 100,
|
||||
'width' => 400,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
'header-text' => array( 'site-title', 'site-description' ),
|
||||
'unlink-homepage-logo' => false,
|
||||
);
|
||||
add_theme_support( 'custom-logo', $wordpress_logo );
|
||||
$response = self::perform_active_theme_request();
|
||||
|
|
Loading…
Reference in New Issue