Skip to content

Commit

Permalink
Seek posts using full block grammar start tag (#36854)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored and noisysocks committed Nov 29, 2021
1 parent 7dac0e3 commit 99c9233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Expand Up @@ -149,7 +149,7 @@ function block_core_navigation_get_first_non_empty_navigation() {
'order' => 'ASC',
'orderby' => 'name',
'posts_per_page' => 1, // only the first post.
's' => '<!--', // look for block indicators to ensure we only include non-empty Navigations.
's' => '<!-- wp:', // look for block indicators to ensure we only include non-empty Navigations.
)
);
return count( $navigation_posts ) ? $navigation_posts[0] : null;
Expand Down

0 comments on commit 99c9233

Please sign in to comment.