Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54910, comment 23


Ignore:
Timestamp:
01/28/2022 05:40:11 AM (3 years ago)
Author:
Mamaduka
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54910, comment 23

    initial v1  
    11@costdev
    22
    3 Maybe we should `false !== strpos( (string) $post, '<!-- wp:' )` instead of parsing the blocks. This method should be a little bit faster.
     3Maybe we should `false !== strpos( $content, '<!-- wp:' )` instead of parsing the blocks. This method should be a little bit faster.
    44
    55It's similar to what `has_blocks` uses under the hood - https://developer.wordpress.org/reference/functions/has_blocks/.