1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 04:13:53 +02:00

Updated plugins_dir_path to plugin_dir_path in load_file()

This commit is contained in:
Cudazi 2012-01-19 16:42:10 -06:00
parent c0b6b8f9ca
commit adf9c87719

View file

@ -163,7 +163,7 @@ class PluginName {
private function load_file( $name, $file_path, $is_script = false ) { private function load_file( $name, $file_path, $is_script = false ) {
$url = plugins_url($file_path, __FILE__); $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( file_exists( $file ) ) {
if( $is_script ) { if( $is_script ) {