diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php
index 9529ce7..e781c48 100644
a
|
b
|
final class WP_Customize_Nav_Menus { |
385 | 385 | } |
386 | 386 | } |
387 | 387 | |
| 388 | // Add "Home" link if search term matches. Treat as a page, but switch to custom on add. |
| 389 | if ( isset( $args['s'] ) ) { |
| 390 | if ( function_exists( 'mb_stripos' ) ) { |
| 391 | if ( false !== mb_stripos( __( 'Home' ), $args['s'] ) ) { |
| 392 | $items[] = array( |
| 393 | 'id' => 'home', |
| 394 | 'title' => _x( 'Home', 'nav menu home label' ), |
| 395 | 'type' => 'custom', |
| 396 | 'type_label' => __( 'Custom Link' ), |
| 397 | 'object' => '', |
| 398 | 'url' => home_url(), |
| 399 | ); |
| 400 | } |
| 401 | } else { |
| 402 | if ( false !== stripos( __( 'Home' ), $args['s'] ) ) { |
| 403 | $items[] = array( |
| 404 | 'id' => 'home', |
| 405 | 'title' => _x( 'Home', 'nav menu home label' ), |
| 406 | 'type' => 'custom', |
| 407 | 'type_label' => __( 'Custom Link' ), |
| 408 | 'object' => '', |
| 409 | 'url' => home_url(), |
| 410 | ); |
| 411 | } |
| 412 | } |
| 413 | } |
| 414 | |
388 | 415 | /** |
389 | 416 | * Filters the available menu items during a search request. |
390 | 417 | * |