Skip to content

Commit 78e89b5

Browse files
committed
Troubleshoot failing WP tests, because locally they pass
1 parent 8b4e298 commit 78e89b5

File tree

2 files changed

+374
-366
lines changed

2 files changed

+374
-366
lines changed

src/llms-txt/infrastructure/markdown-services/content-types-collector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ private function get_recent_posts( string $post_type, int $limit ): array {
156156
}
157157

158158
$recently_modified_indexables = $this->indexable_repository->get_recently_modified_posts( $post_type, $limit, $exclude_old );
159+
error_log( 'Recently modified indexables: ' . count( $recently_modified_indexables ) );
159160

160161
foreach ( $recently_modified_indexables as $indexable ) {
161162
$post_from_indexable = \get_post( $indexable->object_id );
163+
error_log( 'Post from indexable: ' . ( $post_from_indexable ? $post_from_indexable->ID : 'null' ) );
162164
if ( $post_from_indexable instanceof WP_Post ) {
163165
$posts[] = $post_from_indexable;
164166
}

0 commit comments

Comments
 (0)