Editor: Move wp_navigation schema updating to WP_Navigation_Fallback class.

This aims to better align the navigation fallback implementation with core architecture and best practices.

The function that updates the `wp_navigation` post response schema is now a public method of the `WP_Navigation_Fallback` class, so an extra file previously used for that specific function is no longer necessary.

Follow-up to [56052].

Props ramonopoly, scruffian, isabel_brison, mukesh27, swissspidy, rajinsharwar, afercia, audrasjb, mikeschroder, JeffPaul, johnjamesjacoby, TimothyBlynJacobs, oglekler, SergeyBiryukov.
Fixes #58910.

git-svn-id: https://develop.svn.wordpress.org/trunk@56793 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-10-06 14:04:22 +00:00
parent 987ea9bbf8
commit 478cd02dfe
6 changed files with 50 additions and 59 deletions
@@ -152,7 +152,7 @@ class WP_REST_Navigation_Fallback_Controller_Test extends WP_Test_REST_Controlle
*
* @ticket 58557
*
* @covers ::wp_add_fields_to_navigation_fallback_embedded_links
* @covers WP_Navigation_Fallback::update_wp_navigation_post_schema
*
* @since 6.3.0 Added Navigation Fallbacks endpoint.
*/