envato / envato-theme-check

The WordPress Theme Check plugin for Envato
GNU General Public License v2.0
208 stars 57 forks source link

cli - Text domain always fails #6

Closed AaronRutley closed 3 years ago

AaronRutley commented 6 years ago

As reported by @Stephen-Cronin on Slack

If I run Theme Check via wp cli on Twenty Seventeen, it fails on the text domain with the This theme's correct slug and text-domain is . message. If I run it via the WP backend it's fine

egyflad commented 6 years ago

I am getting to lose my mind on this :( the checker gives me this message: "WARNING: Found a translation function that is missing a text-domain. Function _e, with the arguments 'theme-text-domain'

*theme-text-domain is for my text domain!

I have checked each file in my theme and there so no such a problem, Please advice on this.

Here is a screen shot: http://prntscr.com/kbktdz

Regards,

scottparry commented 6 years ago

@egyflad Is this via WP Admin or CLi? Also, we'd need to see the actual code.

egyflad commented 6 years ago

@scottparry Thanks for your response I really appreciate it. This via WP admin while using the Envato Check Plugin.

there is no code, it's just the error message: http://prntscr.com/kbktdz

if this would help: I use the function like so: <?php _e('Previous Post', 'text-domain') ?>

*Again text-domain is for my theme name I just can't type it here publicly !

Regards,

scottparry commented 6 years ago

@egyflad The only real way for me to test this would be to have access to the theme so I can run checks.

Seeing as this isn't related to CLi, if you want to try fixing, please open a new Issue so it's seperated from this.