This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Sumit 3 years, 10 months ago.

Assigned support staff: Sumit.

Author Posts
July 20, 2015 at 2:27 pm #662631

davidL-25

In the file ~/inc/installer/loader.php at line 70 and 71, please consider using get_template_directory() instead of TEMPLATEPATH to increase compatibility.

I have found cases where WPML is callable before the constant is instantiated and had to change the source file manually.

July 21, 2015 at 12:38 pm #663369

Sumit
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi,

Thank you for contacting support forum.

Thank you for the suggestion. But as far as I believe it can not raise any issue because TEMPLATEPATH is available just after the "setup_theme" hook.
Can you please elaborate (with example) the case so I can understand it better?

Thanks

The topic ‘[Closed] Consider using get_template_directory()’ is closed to new replies.