mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02: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:
commit
fb6c7b2c66
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 ) {
|
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 ) {
|
||||||
|
|
Loading…
Reference in a new issue