Permalink
Browse files

remove __DIR__ check as it is buggy in some environments

  • Loading branch information...
1 parent b13c088 commit 95c538b7dc6edb90c5239b36aead17e975611abf @jtsternberg jtsternberg committed Feb 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.php
View
@@ -205,7 +205,7 @@ public static function autoload_helpers( $class_name ) {
return;
// for PHP versions < 5.3
- $dir = defined( '__DIR__' ) ? __DIR__ : dirname( __FILE__ );
+ $dir = dirname( __FILE__ );
$file = "$dir/helpers/$class_name.php";
if ( file_exists( $file ) )

0 comments on commit 95c538b

Please sign in to comment.