@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | // Check if we've got it cached and ready. |
67 | - if ( isset( $this->cached_paths[ $class_name ] ) && file_exists( $this->cached_paths[ $class_name ] ) ) { |
|
68 | - include_once $this->cached_paths[ $class_name ]; |
|
67 | + if ( isset( $this->cached_paths[$class_name] ) && file_exists( $this->cached_paths[$class_name] ) ) { |
|
68 | + include_once $this->cached_paths[$class_name]; |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | foreach ( $paths as $path ) { |
75 | 75 | $path = wp_normalize_path( $path ); |
76 | 76 | if ( file_exists( $path ) ) { |
77 | - $this->cached_paths[ $class_name ] = $path; |
|
77 | + $this->cached_paths[$class_name] = $path; |
|
78 | 78 | include_once $path; |
79 | 79 | return; |
80 | 80 | } |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | |
135 | 135 | $previous_path = ''; |
136 | 136 | for ( $i = 0; $i < $levels; $i++ ) { |
137 | - $paths[] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename; |
|
138 | - $previous_path .= strtolower( $exploded[ $i ] ) . '/'; |
|
137 | + $paths[] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[$i] ) . '/' . $filename; |
|
138 | + $previous_path .= strtolower( $exploded[$i] ) . '/'; |
|
139 | 139 | } |
140 | 140 | return $paths; |
141 | 141 | } |