Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion assets/src/js/_acf-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,11 @@
'editor-post-publish-panel'
)[ 0 ];
if ( publishPanel ) {
// See https://github.com/WordPress/secure-custom-fields/pull/272
// `togglePublishSidebar` was only introduced in WP 6.6, it should be optional
wp.data
.dispatch( 'core/editor' )
.togglePublishSidebar();
.togglePublishSidebar?.();
}

// Add block to errors array
Expand Down
Loading