Skip to content

Commit

Permalink
Use context postType when available
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot authored and cbravobernal committed Aug 29, 2024
1 parent 9922b24 commit d2ccb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/bindings/post-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
registry.select( coreDataStore );

// If it is a template, use the default values.
if ( type === 'wp_template' ) {
if ( ! context?.postType && type === 'wp_template' ) {
let postType;
let isGlobalTemplate = false;
// Get the 'kind' from the start of the slug.
Expand Down

0 comments on commit d2ccb1e

Please sign in to comment.