Skip to content

Conversation

@laravdiemen
Copy link
Contributor

De footer werd niet zichtbaar als je niet ingelogd bent. Dit komt omdat post_status standaard op publish staat en als je ingelogd bent dan komen er daar een aantal bij, zie: https://developer.wordpress.org/reference/classes/wp_query/#status-parameters. Omdat in de code geregeld is dat patronen altijd als draft opgeslagen worden denk ik dat dit wel de oplossing is.

@github-actions
Copy link

github-actions bot commented Mar 3, 2025

Coverage report for commit: e5f925b
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 100.0%
  10% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: - | Methods: -
FilesLinesMethodsBranches
src/Components
   BackButton.php--100.00%
   PatternContent.php--100.00%
src
   ComponentsServiceProvider.php--100.00%
src/Hooks
   PatternContent.php--100.00%

🤖 comment via lucassabreu/comment-coverage-clover

{
$pattern = new \WP_Query([
'post_type' => 'wp_block',
'post_status' => 'draft',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weet je zeker dat het altijd om drafts gaat?
Anders voor de zekerheid: 'post_status' => ['publish', 'draft'],

@WybeBosch
Copy link

Haha ohdamm scherp lara : P ik had nog niet gekeken of mijn footer wel werkte in incognito 😅

@WybeBosch WybeBosch requested a review from Copilot March 3, 2025 14:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Copy link

@WybeBosch WybeBosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik zie af en toe data phpcsfixer blijft hangen (hier niet het geval) en dat is dus niet een concreet probleem.

maar de falende phpstan, die lijkt wel echt dingen te melden over Typing van dingen.
misschien dat daar nog even naar gekeken moet worden ;s

@laravdiemen laravdiemen force-pushed the fix/wp-query-post-status branch from e24146c to e5f925b Compare March 4, 2025 07:18
@laravdiemen laravdiemen merged commit 5474978 into main Mar 4, 2025
4 of 5 checks passed
@laravdiemen laravdiemen deleted the fix/wp-query-post-status branch March 4, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants