Changeset 13569
- Timestamp:
- 04/18/2024 11:54:28 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php
r13567 r13569 25 25 * Get the local navigation menu object if it exists. 26 26 */ 27 function get_local_nav_menu_object() {27 function wporg_support_get_local_nav_menu_object() { 28 28 $local_nav_menu_locations = get_nav_menu_locations(); 29 29 $local_nav_menu_object = isset( $local_nav_menu_locations['local-navigation'] ) … … 38 38 */ 39 39 function wporg_support_register_local_nav_menu() { 40 if ( substr( get_locale(), 0, 2 ) === 'en' || get_local_nav_menu_object() ) {40 if ( substr( get_locale(), 0, 2 ) === 'en' || wporg_support_get_local_nav_menu_object() ) { 41 41 return; 42 42 } … … 72 72 ); 73 73 } else { 74 $local_nav_menu_object = get_local_nav_menu_object();74 $local_nav_menu_object = wporg_support_get_local_nav_menu_object(); 75 75 $menu_items_fallback = array( 76 76 'forums' => array(
Note: See TracChangeset
for help on using the changeset viewer.