$value ) { $path_from_repo_root = str_replace( $path, '', $path_to_file ); // Ignore top-level files. if ( false === strpos( $path_from_repo_root, '/' ) ) { continue; } // Ignore explicit ignore list. foreach ( $ignore_paths as $ignore_path ) { if ( 0 === strpos( $path_from_repo_root, $ignore_path ) ) { continue 2; } } $manifest[] = $path_from_repo_root; } $export = var_export( $manifest, true ); file_put_contents( $path . 'modules/photon-cdn/jetpack-manifest.php', "