1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

I am having an issue with the WP theme check plugin, it’s saying I should be adding “text domain” to all my inputs (which I know) but I already have them e.g.

Line 43: <?php __( 'Save All Changes' ); ?>

According to the WP codex, that is the code I should be using, so why is the theme check plugin still saying it’s not right?

Any help is appreciated as I would like to remove the message (currently got 65 of them, although I am using the text domain…arghhh).

3072 posts
  • Affiliate Level 3
  • Author Level 6
  • Collector Level 2
  • Weekly Top Seller
+7 more
wickedpixel
says

Your example does not contain the domain, which is the second parameter for the __ function

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 more
organicbee
says
<?php __( 'Save All Changes', 'your_text_domain' ); ?>
1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

<?php __( 'Save All Changes', 'your_text_domain' ); ?>

Ha oops, I blame it on tired eyes :D

709 posts
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
  • Collector Level 2
+2 more
ChillThemes
says


<?php __( 'Save All Changes', 'your_text_domain' ); ?>
Ha oops, I blame it on tired eyes :D

Oh I’ve been there plenty of times, eyes so tired you can’t see what’s right in front you.

For future reference here’s a list of localization functions you can use: http://codex.wordpress.org/L10n

by
by
by
by
by
by