@@ 84-85 (lines=2) @@ | ||
81 | $paths['content'] = new VP_FileScan( WP_CONTENT_DIR, $ignore_symlinks ); |
|
82 | ||
83 | // Is WP_PLUGIN_DIR inside ABSPATH or WP_CONTENT_DIR? |
|
84 | if ( is_dir( WP_PLUGIN_DIR ) && strpos( realpath( WP_PLUGIN_DIR ), realpath( WP_CONTENT_DIR ) . DIRECTORY_SEPARATOR ) !== 0 && strpos( realpath( WP_PLUGIN_DIR ), realpath( ABSPATH ) . DIRECTORY_SEPARATOR ) !== 0 ) |
|
85 | $paths['plugins'] = new VP_FileScan( WP_PLUGIN_DIR, $ignore_symlinks ); |
|
86 | ||
87 | // Is WPMU_PLUGIN_DIR inside ABSPATH or WP_CONTENT_DIR? |
|
88 | if ( is_dir( WPMU_PLUGIN_DIR ) && strpos( realpath( WPMU_PLUGIN_DIR ), realpath( WP_CONTENT_DIR ) . DIRECTORY_SEPARATOR ) !== 0 && strpos( realpath( WPMU_PLUGIN_DIR ), realpath( ABSPATH ) . DIRECTORY_SEPARATOR ) !== 0 ) |
|
@@ 88-89 (lines=2) @@ | ||
85 | $paths['plugins'] = new VP_FileScan( WP_PLUGIN_DIR, $ignore_symlinks ); |
|
86 | ||
87 | // Is WPMU_PLUGIN_DIR inside ABSPATH or WP_CONTENT_DIR? |
|
88 | if ( is_dir( WPMU_PLUGIN_DIR ) && strpos( realpath( WPMU_PLUGIN_DIR ), realpath( WP_CONTENT_DIR ) . DIRECTORY_SEPARATOR ) !== 0 && strpos( realpath( WPMU_PLUGIN_DIR ), realpath( ABSPATH ) . DIRECTORY_SEPARATOR ) !== 0 ) |
|
89 | $paths['mu-plugins'] = new VP_FileScan( WPMU_PLUGIN_DIR, $ignore_symlinks ); |
|
90 | ||
91 | update_option( '_vp_current_scan', $paths ); |
|
92 | } |