← All changes
|
freemius/includes/supplements/fs-essential-functions-1.1.7.1.php
+1
-1
2.1
→
8.1.0
View file →
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | $file_real_path = fs_normalize_path( realpath( $file ) ); |
| 32 | 32 | |
| 33 | 33 | // Get active plugin's main files real full names (might be symlinks). |
| 34 | 34 | foreach ( $all_plugins as $relative_path => $data ) { |
| 35 | - if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) ) ) ) { | |
| 35 | + if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) . '/' ) ) ) { | |
| 36 | 36 | if ( '.' !== dirname( trailingslashit( $relative_path ) ) ) { |
| 37 | 37 | return $relative_path; |
| 38 | 38 | } |
| 39 | 39 | } |