Skip to content

Commit 53f3c2f

Browse files
committed
Fix URLs not actually being enqueued from WordPress
2f7c2cc changed detectURLs to only return the URLs, not enqueue them. This means that the detect case here was basically a no-op, other than printing a very misleading log message.
1 parent 0f80b0c commit 53f3c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public static function wp2staticProcessQueue() : void {
602602
switch ( $job->job_type ) {
603603
case 'detect':
604604
WsLog::l( 'Starting URL detection' );
605-
$detected_count = count( URLDetector::detectURLs() );
605+
$detected_count = URLDetector::enqueueURLs();
606606
WsLog::l( "URL detection completed ($detected_count URLs detected)" );
607607
break;
608608
case 'crawl':

0 commit comments

Comments
 (0)