Skip to content

Commit

Permalink
Merge pull request #6 from cudazi/patch-1
Browse files Browse the repository at this point in the history
Updated plugins_dir_path to plugin_dir_path in load_file()
  • Loading branch information
tommcfarlin committed Jan 19, 2012
2 parents c0b6b8f + adf9c87 commit fb6c7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Expand Up @@ -163,7 +163,7 @@ private function register_scripts_and_styles() {
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 ) {
Expand Down

0 comments on commit fb6c7b2

Please sign in to comment.