1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-04-28 09:23:15 +03:00

Merge pull request #6 from cudazi/patch-1

Updated plugins_dir_path to plugin_dir_path in load_file()
This commit is contained in:
Tom McFarlin 2012-01-19 15:33:52 -08:00
commit fb6c7b2c66

View file

@ -163,7 +163,7 @@ class PluginName {
private function load_file( $name, $file_path, $is_script = false ) {
$url = plugins_url($file_path, __FILE__);
$file = plugins_dir_path(__FILE__) . $file_path;
$file = plugin_dir_path(__FILE__) . $file_path;
if( file_exists( $file ) ) {
if( $is_script ) {