Changeset 56256 for trunk/src/wp-includes/class-wp-navigation-fallback.php
- Timestamp:
- 07/18/2023 07:28:47 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
Note: See TracChangeset
for help on using the changeset viewer.