Skip to content

Commit

Permalink
Check query context (WordPress#63237)
Browse files Browse the repository at this point in the history
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
  • Loading branch information
3 people authored and huubl committed Jul 10, 2024
1 parent 0f3ce7e commit 914f829
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/bindings/post-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export default {
} );
},
canUserEditValue( { select, context, args } ) {
// Lock editing in query loop.
if ( context?.query || context?.queryId ) {
return false;
}

const postType =
context?.postType || select( editorStore ).getCurrentPostType();

Expand Down

0 comments on commit 914f829

Please sign in to comment.