Changeset 56256
- Timestamp:
- 07/18/2023 07:28:47 AM (18 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-classic-to-block-menu-converter.php
r56052 r56256 10 10 * Converts a Classic Menu to Block Menu blocks. 11 11 * 12 * @since 6.3.0 .12 * @since 6.3.0 13 13 * @access public 14 14 */ … … 18 18 * Converts a Classic Menu to blocks. 19 19 * 20 * @since 6.3.0 .20 * @since 6.3.0 21 21 * 22 22 * @param WP_Term $menu The Menu term object of the menu to convert. … … 59 59 * Returns an array of menu items grouped by the id of the parent menu item. 60 60 * 61 * @since 6.3.0 .61 * @since 6.3.0 62 62 * 63 63 * @param array $menu_items An array of menu items. … … 77 77 * Turns menu item data into a nested array of parsed blocks 78 78 * 79 * @since 6.3.0 .79 * @since 6.3.0 80 80 * 81 81 * @param array $menu_items An array of menu items that represent -
trunk/src/wp-includes/class-wp-navigation-fallback.php
r56202 r56256 14 14 * 15 15 * @access public 16 * @since 6.3.0 .16 * @since 6.3.0 17 17 */ 18 18 class WP_Navigation_Fallback { … … 21 21 * Gets (and/or creates) an appropriate fallback Navigation Menu. 22 22 * 23 * @since 6.3.0 .23 * @since 6.3.0 24 24 * 25 25 * @return WP_Post|null the fallback Navigation Post or null. … … 62 62 * Finds the most recently published `wp_navigation` post type. 63 63 * 64 * @since 6.3.0 .64 * @since 6.3.0 65 65 * 66 66 * @return WP_Post|null the first non-empty Navigation or null. … … 91 91 * Creates a Navigation Menu post from a Classic Menu. 92 92 * 93 * @since 6.3.0 .93 * @since 6.3.0 94 94 * 95 95 * @return int|WP_Error The post ID of the default fallback menu or a WP_Error object. … … 128 128 * Determine the most appropriate classic navigation menu to use as a fallback. 129 129 * 130 * @since 6.3.0 .130 * @since 6.3.0 131 131 * 132 132 * @return WP_Term|null The most appropriate classic navigation menu to use as a fallback. … … 158 158 * Sorts the classic menus and returns the most recently created one. 159 159 * 160 * @since 6.3.0 .160 * @since 6.3.0 161 161 * 162 162 * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects. … … 177 177 * Returns the classic menu with the slug `primary` if it exists. 178 178 * 179 * @since 6.3.0 .179 * @since 6.3.0 180 180 * 181 181 * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects. … … 197 197 * if it exists. 198 198 * 199 * @since 6.3.0 .199 * @since 6.3.0 200 200 * 201 201 * @return WP_Term|null The classic nav menu assigned to the `primary` location or null. … … 218 218 * Creates a default Navigation Block Menu fallback. 219 219 * 220 * @since 6.3.0 .220 * @since 6.3.0 221 221 * 222 222 * @return int|WP_Error The post ID of the default fallback menu or a WP_Error object. … … 244 244 * Gets the rendered markup for the default fallback blocks. 245 245 * 246 * @since 6.3.0 .246 * @since 6.3.0 247 247 * 248 248 * @return string default blocks markup to use a the fallback. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php
r56052 r56256 13 13 * REST Controller to fetch a fallback Navigation Block Menu. If needed it creates one. 14 14 * 15 * @since 6.3.0 .15 * @since 6.3.0 16 16 */ 17 17 class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller { … … 20 20 * The Post Type for the Controller 21 21 * 22 * @since 6.3.0 .22 * @since 6.3.0 23 23 * 24 24 * @var string … … 29 29 * Constructs the controller. 30 30 * 31 * @since 6.3.0 .31 * @since 6.3.0 32 32 */ 33 33 public function __construct() { … … 40 40 * Registers the controllers routes. 41 41 * 42 * @since 6.3.0 .42 * @since 6.3.0 43 43 * 44 44 * @return void … … 65 65 * Checks if a given request has access to read fallbacks. 66 66 * 67 * @since 6.3.0 .67 * @since 6.3.0 68 68 * 69 69 * @param WP_REST_Request $request Full details about the request. … … 97 97 * Gets the most appropriate fallback Navigation Menu. 98 98 * 99 * @since 6.3.0 .99 * @since 6.3.0 100 100 * 101 101 * @param WP_REST_Request $request Full details about the request. … … 117 117 * Retrieves the fallbacks' schema, conforming to JSON Schema. 118 118 * 119 * @since 6.3.0 .119 * @since 6.3.0 120 120 * 121 121 * @return array Item schema data. … … 146 146 * Matches the post data to the schema we want. 147 147 * 148 * @since 6.3.0 .148 * @since 6.3.0 149 149 * 150 150 * @param WP_Post $item The wp_navigation Post object whose response is being prepared. … … 178 178 * Prepares the links for the request. 179 179 * 180 * @since 6.3.0 .180 * @since 6.3.0 181 181 * 182 182 * @param WP_Post $post the Navigation Menu post object.
Note: See TracChangeset
for help on using the changeset viewer.