Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update docblock with note informing where the global post variable is…
Browse files Browse the repository at this point in the history
… restored for the post title and excerpt blocks.
  • Loading branch information
nefeline committed Jun 23, 2023
1 parent f8d4d54 commit a47c46b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BlockTypes/SingleProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ protected function replace_post_for_single_product_inner_block( $block, &$contex
* This is a temporary fix to ensure the Post Title and Excerpt blocks work as expected
* until Gutenberg versions 15.2 and 15.6 are included in the core of WordPress.
*
* Important: the original post data is restored in the restore_global_post method.
*
* @see https://github.com/WordPress/gutenberg/pull/48001
* @see https://github.com/WordPress/gutenberg/pull/49495
*/
Expand Down

0 comments on commit a47c46b

Please sign in to comment.