Making WordPress.org

Changeset 13569


Ignore:
Timestamp:
04/18/2024 11:54:28 PM (5 months ago)
Author:
adamwood
Message:

wporg-support-2024: :lipstick: Rename functions

Follow naming conventions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php

    r13567 r13569  
    2525 * Get the local navigation menu object if it exists.
    2626 */
    27 function get_local_nav_menu_object() {
     27function wporg_support_get_local_nav_menu_object() {
    2828    $local_nav_menu_locations = get_nav_menu_locations();
    2929    $local_nav_menu_object = isset( $local_nav_menu_locations['local-navigation'] )
     
    3838 */
    3939function 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() ) {
    4141        return;
    4242    }
     
    7272        );
    7373    } else {
    74         $local_nav_menu_object = get_local_nav_menu_object();
     74        $local_nav_menu_object = wporg_support_get_local_nav_menu_object();
    7575        $menu_items_fallback = array(
    7676            'forums' => array(
Note: See TracChangeset for help on using the changeset viewer.