Changeset 56202 for trunk/src/wp-includes/class-wp-navigation-fallback.php
- Timestamp:
- 07/11/2023 05:39:33 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-navigation-fallback.php
r56052 r56202 27 27 public static function get_fallback() { 28 28 29 /** 30 * Filters whether or not a fallback should be created. 31 * 32 * @since 6.3.0 33 * 34 * @param bool Whether to create a fallback navigation menu. Default true. 35 */ 36 $should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true ); 37 29 38 $fallback = static::get_most_recently_published_navigation(); 30 39 31 if ( $fallback ) {40 if ( $fallback || ! $should_create_fallback ) { 32 41 return $fallback; 33 42 }
Note: See TracChangeset
for help on using the changeset viewer.