瀏覽代碼

Fixing WP import

svalavuo 4 天之前
父節點
當前提交
3595af4c18
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      includes/wordpress_import.php

+ 3 - 0
includes/wordpress_import.php

@@ -448,6 +448,9 @@ class WordPressImport {
                 }
                 
                 $placeholders = str_repeat('?,', count($postIds) - 1) . '?';
+                $this->log("Post IDs to map: " . implode(', ', $postIds));
+                $this->log("Placeholders: " . $placeholders);
+                $this->log("Parameter count: " . count($postIds));
                 $this->log("Executing publication mapping query with " . count($postIds) . " post IDs");
                 $pubStmt = $this->targetDb->query("
                     SELECT id, wp_post_id FROM publications