redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Theme Check Issue

Open krishna19 opened this issue 12 years ago • 6 comments

Hi, Following error was found when i'm using Theme check plugin.

RECOMMENDED: TEMPLATEPATH was found in the file admin-config.php. Use get_template_directory() instead.

Line 23: if ( defined('TEMPLATEPATH') && strpos( Redux_Helpers::cleanFilePath( FILE ), Redux_H

Can you help me please!

krishna19 avatar Mar 04 '14 13:03 krishna19

I think it's not an error, just a recommendation as it says.

tpaksu avatar Mar 04 '14 15:03 tpaksu

It's not an error, really. It's a variable that holds the template path. Since get_template_directory is a function, it cannot be checked like a variable. If its Envato you're worried about, no need. It will pass their guidelines. :)

kprovance avatar Mar 04 '14 16:03 kprovance

@kprovance @tpaksu Thanks

krishna19 avatar Mar 04 '14 17:03 krishna19

@kprovance @dovy

Just got soft rejected because of this (and yes, I write them what Kevin said). Can this be changed to get_template_directory without problems?

Cheers :)

maarcin avatar Mar 15 '14 09:03 maarcin

@maarcin

This has been updated already. Check out the new sample-config.php line 24 in version 3.1.8.21

SilverKenn avatar Mar 15 '14 09:03 SilverKenn

@SilverKenn

Thanks. Missed that one.

maarcin avatar Mar 15 '14 09:03 maarcin