Translation function that is missing a text-domain
-
I just decided to check out my custom theme code to see if I had any issues. I did and I fixed pretty much everything except:
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments ‘Header Menu’
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments ‘Footer Menu’function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), 'footer-menu' => __( 'Footer Menu' ) ) ); } add_action( 'init', 'register_my_menus' ); <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
I’m using the exact code that is used on the WordPress codex. Why am I getting the warning?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Translation function that is missing a text-domain’ is closed to new replies.