| @@ 1342-1344 (lines=3) @@ | ||
| 1339 | } |
|
| 1340 | ||
| 1341 | // If path() is inside root(), exclude it |
|
| 1342 | if ( strpos( Path::get_path(), Path::get_root() ) !== false ) { |
|
| 1343 | array_unshift( $excludes, trailingslashit( Path::get_path() ) ); |
|
| 1344 | } |
|
| 1345 | ||
| 1346 | return array_unique( $excludes ); |
|
| 1347 | ||
| @@ 60-62 (lines=3) @@ | ||
| 57 | $excludes = array_merge( $this->get_default_excludes(), $this->excludes ); |
|
| 58 | ||
| 59 | // If path() is inside root(), exclude it |
|
| 60 | if ( strpos( Path::get_path(), Path::get_root() ) !== false ) { |
|
| 61 | array_unshift( $excludes, trailingslashit( Path::get_path() ) ); |
|
| 62 | } |
|
| 63 | ||
| 64 | // Prepare the exclude rules |
|
| 65 | $excludes = array_map( function( $exclude ) { |
|