diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index f88e342ce2..55ebbf61aa 100644
a
|
b
|
function get_custom_logo( $blog_id = 0 ) { |
1055 | 1055 | */ |
1056 | 1056 | $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ); |
1057 | 1057 | |
1058 | | if ( is_front_page() ) { |
| 1058 | $unlink_homepage_logo = get_theme_support( 'custom-logo', 'unlink-homepage-logo' ) ? true : false; |
| 1059 | |
| 1060 | if ( is_front_page() && $unlink_homepage_logo ) { |
1059 | 1061 | // If on the home page, don't link the logo to home. |
1060 | 1062 | $html = sprintf( |
1061 | 1063 | '<span class="custom-logo-link">%1$s</span>', |
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index bdd1ec3f60..2e0bfcf108 100644
a
|
b
|
function get_theme_starter_content() { |
2472 | 2472 | * @since 5.3.0 Formalized the existing and already documented `...$args` parameter |
2473 | 2473 | * by adding it to the function signature. |
2474 | 2474 | * @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default. |
| 2475 | * @since 5.5.0 The `custom-logo` feature now also accepts `unlink-homepage-logo`. |
2475 | 2476 | * |
2476 | 2477 | * @global array $_wp_theme_features |
2477 | 2478 | * |
… |
… |
function add_theme_support( $feature, ...$args ) { |
2538 | 2539 | $args = array( 0 => array() ); |
2539 | 2540 | } |
2540 | 2541 | $defaults = array( |
2541 | | 'width' => null, |
2542 | | 'height' => null, |
2543 | | 'flex-width' => false, |
2544 | | 'flex-height' => false, |
2545 | | 'header-text' => '', |
| 2542 | 'width' => null, |
| 2543 | 'height' => null, |
| 2544 | 'flex-width' => false, |
| 2545 | 'flex-height' => false, |
| 2546 | 'header-text' => '', |
| 2547 | 'unlink-homepage-logo' => false, |
2546 | 2548 | ); |
2547 | 2549 | $args[0] = wp_parse_args( array_intersect_key( $args[0], $defaults ), $defaults ); |
2548 | 2550 | |