diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php index b4bd0fd0f4..627f57c670 100644 --- a/wp-includes/class-wp-customize-nav-menus.php +++ b/wp-includes/class-wp-customize-nav-menus.php @@ -334,6 +334,16 @@ final class WP_Customize_Nav_Menus { } } + /** + * Filter the available menu items during a search request. + * + * @since 4.5.0 + * + * @param array $items The array of menu items. + * @param array $args Includes 'pagenum' and 's' (search) arguments. + */ + $items = apply_filters( 'customize_nav_menu_searched_items', $items, $args ); + return $items; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6073408771..29d74fdcad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36675'; +$wp_version = '4.5-alpha-36676'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.