if ( $this->verbose
) { /* translators: 1: Folder to locate, 2: Folder to start searching from. */
printf( "\n" .
__( 'Looking for %1$s in %2$s'
) . "<br />\n",
$folder,
$base );
} $folder_parts =
explode( '/',
$folder );
$folder_part_keys =
array_keys( $folder_parts );
$last_index =
array_pop( $folder_part_keys );
$last_path =
$folder_parts[ $last_index ];
$files =
$this->
dirlist( $base );
foreach ( $folder_parts as $index =>
$key ) { if ( $index ===
$last_index ) { continue; // We want this to be caught by the next code block.
} /*
* Working from /home/ to /user/ to /wordpress/ see if that file exists within
* the current folder, If it's found, change into it and follow through looking
* for it. If it can't find WordPress down that route, it'll continue onto the next
* folder level, and see if that matches, and so on. If it reaches the end, and still
* can't find it, it'll return false for the entire function.
*/