[wp-trac] [WordPress Trac] #54910: 5.9 Bug - Blank Home Page
WordPress Trac
noreply at wordpress.org
Fri Jan 28 05:36:42 UTC 2022
#54910: 5.9 Bug - Blank Home Page
----------------------------------------+------------------------------
Reporter: cantuaria | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 5.9
Severity: major | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Comment (by Mamaduka):
@costdev
Maybe we should `false !== strpos( (string) $post, '<!-- wp:' )` instead
of parsing the blocks. This method should be a little bit faster.
It's similar to what `has_blocks` uses under the hood -
https://developer.wordpress.org/reference/functions/has_blocks/.
P.S. Thanks for adding conditional to the `get_query_template` that item
was on my list.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54910#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list