Recently, I do have the submission to themeforest, all good, I got the reviews from reviewer, but after the first time submit, the 2nd submit, reviewer gave me an error where I can’t find anywhere to fix.
Can you please please tell me what is the reason? or can we tell - explain reviewer to understand?.
Here’s what Im facing:
- Use https://codex.wordpress.org/Function_Reference/esc_url to check and clean all links.
I have escape where I see I can, it’s quite much, but still dont know why he still gave me this fix. I have used folder find for “url” with .php file in sublime, and as I can see I have escaped all the url I output.
Do you have any way to search better or more detail?
- Please use get_template_directory when including/requiring files
I have defined something like this:
define( ‘TASTED_URI’, get_template_directory_uri() );
define( ‘TASTED_CSS’, TASTED_URI . ‘/assets/css’ );
Then I use that global include, like
wp_enqueue_style( ‘tasted-css-style’, TASTED_URI. ‘/style.css’, array(), ‘1.0’ );
And reviewer had me that fix, is my include has any wrong, or I all have to incude with get_template_directory ?
Thank you very much guys, let’s talk about this, it might be helpful for the others!