From 75157213cd7d867522e3a2399f891adbfe502a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sv=C4=9Bt=20Z=C3=ADt=C5=99ka?= Date: Fri, 11 Sep 2026 14:07:12 +0200 Subject: [PATCH] Fix undefined $status_url in SyncDiscourseTopic::list_topic() list_topic() builds $status_path but passes the undefined $status_url to discourse_request(), so the PUT to re-list a topic goes to an empty path and PHP logs "Undefined variable $status_url" on every publish. One-line fix: pass $status_path. --- lib/sync-discourse-topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sync-discourse-topic.php b/lib/sync-discourse-topic.php index 4fc6a6a2..0f35254b 100644 --- a/lib/sync-discourse-topic.php +++ b/lib/sync-discourse-topic.php @@ -223,7 +223,7 @@ protected function list_topic( $post_id, $topic_id ) { 'method' => 'PUT', ); - $response = $this->discourse_request( $status_url, $args ); + $response = $this->discourse_request( $status_path, $args ); if ( is_wp_error( $response ) ) { return $response;