mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
Updated plugins_dir_path to plugin_dir_path in load_file()
This commit is contained in:
parent
c0b6b8f9ca
commit
adf9c87719
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue