Skip to content

Commit

Permalink
VS Code your linting skills are terrible!
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jul 4, 2023
1 parent 07cd1a2 commit 520ee0f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,15 @@ function gutenberg_register_legacy_social_link_blocks() {
add_action( 'init', 'gutenberg_register_legacy_social_link_blocks' );

/**
* Migrate the legacy `sync_status` meta key to the new `wp_pattern_sync_status` meta key.
* Migrate the legacy `sync_status` meta key (added 16.1) to the new `wp_pattern_sync_status` meta key (16.1.1).
*
* This filter is INTENTIONALLY left out of core as the meta key was fist introduced to core in 6.3 as `wp_pattern_sync_status`.
*
* @since 16.1.1
* @see https://github.com/WordPress/gutenberg/pull/52232
* see https://github.com/WordPress/gutenberg/pull/52232
*
* @param mixed $value The value to return, either a single metadata value or an array of values depending on the value of $single.
* @param int $object_id ID of the object metadata is for.
* @param string $meta_key Metadata key.
* @param bool $single Whether to return only the first value of the specified $meta_key.
*
*/
function gutenberg_legacy_wp_block_post_meta( $value, $object_id, $meta_key, $single ) {
if ( 'wp_pattern_sync_status' !== $meta_key ) {
Expand Down

0 comments on commit 520ee0f

Please sign in to comment.