magic-fields-team / Magic-Fields-2

Magic Fields 2.X
http://magicfields.org
GNU General Public License v2.0
123 stars 47 forks source link

TEMPLATEPATH is deprecated, use get_stylesheet_directory() for supporting child themes #246

Closed acorbi closed 8 years ago

acorbi commented 8 years ago

WP 4.5.2 Magic fields 2.3.2.4

On https://github.com/magic-fields-team/Magic-Fields-2/blob/master/main.php#L392 the plugin checks if _wp_mf_page_template is set on the post meta and if so, loads the configured one. In a parent-child theme scenario, TEMPLATEPATH points to the parent template when the excepted path should be that of the child.

TEMPLATEPATH has been aparently deprecated in WP 4.5, read more on http://stackoverflow.com/questions/3863461/wordpress-templatepath and https://core.trac.wordpress.org/ticket/18298.

PR with fix on https://github.com/magic-fields-team/Magic-Fields-2/pull/247

hunk commented 8 years ago

I'm cleaning the issues if you still have this problem reopen the issue. thanks