Skip to content

Commit

Permalink
WP 6.6 merge - Patterns: check for edited entity content property whe…
Browse files Browse the repository at this point in the history
…n exporting (#63277)

Merge #63227 into wp/6.6

Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent ed3f1d8 commit ab27993
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ function getJsonFromItem( item ) {
{
__file: item.type,
title: item.title || item.name,
content: item.patternPost.content.raw,
syncStatus: item.patternPost.wp_pattern_sync_status,
content: item?.patternPost?.content?.raw || item.content,
syncStatus:
item?.patternPost?.wp_pattern_sync_status ||
item.wp_pattern_sync_status,
},
null,
2
Expand Down

0 comments on commit ab27993

Please sign in to comment.