File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1414class ProcessedSite {
1515
1616 public static function getPath (): string {
17- return apply_filters (
18- Controller::getHookName ( 'processed_site_path ' ),
19- SiteInfo::getPath ( 'uploads ' ) . 'wp2static-processed-site '
20- );
17+ return SiteInfo::getPath ( 'uploads ' ) .
18+ CoreOptions::getValue ( 'processedSitePath ' );
2119 }
2220
2321 /**
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ public function getCrawledFileContents( string $path ): string
5959 public function getProcessedFileContents ( string $ path ): string
6060 {
6161 $ wordpress_dir = ITEnv::getWordPressDir ();
62- $ processed_site_dir = $ wordpress_dir . '/wp-content/uploads/wp2static-processed-site ' ;
62+ $ processed_site_dir = $ wordpress_dir .
63+ '/wp-content/uploads/ ' .
64+ $ this ->getOptionValue ( 'processedSitePath ' );
6365 $ content = file_get_contents ( "{$ processed_site_dir }/ $ path " );
6466 $ this ->assertNotFalse ( $ content , "Failed to read file: {$ processed_site_dir }/ $ path " );
6567 return $ content ;
Original file line number Diff line number Diff line change 141141 <td><?php echo $ processed_site_file_count ; ?> files, using <?php echo $ processed_site_disk_space ; ?>
142142 <br>
143143
144- <a href="file://<?php echo $ uploads_path ; ?> wp2static-processed-site " />Path</a>
144+ <a href="file://<?php echo \ WP2Static \ProcessedSite:: getPath () ; ?> " />Path</a>
145145 </td>
146146 <td>
147147 <form
You can’t perform that action at this time.
0 commit comments