Changeset 51046 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 05/29/2021 06:41:09 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r50950 r51046 375 375 * @see parse_blocks() 376 376 * 377 * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. Defaults to global $post. 377 * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. 378 * Defaults to global $post. 378 379 * @return bool Whether the post has blocks. 379 380 */ … … 393 394 * 394 395 * This test optimizes for performance rather than strict accuracy, detecting 395 * the block type exists but not validating its structure. For strict accuracy,396 * you should use the block parser on post content.396 * whether the block type exists but not validating its structure and not checking 397 * reusable blocks. For strict accuracy, you should use the block parser on post content. 397 398 * 398 399 * @since 5.0.0 … … 400 401 * @see parse_blocks() 401 402 * 402 * @param string $block_name Full Block type to look for. 403 * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. Defaults to global $post. 403 * @param string $block_name Full block type to look for. 404 * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. 405 * Defaults to global $post. 404 406 * @return bool Whether the post content contains the specified block. 405 407 */
Note: See TracChangeset
for help on using the changeset viewer.