Skip to content

Commit

Permalink
Merge pull request #817 from siteorigin/layout-export-block-editor-fix
Browse files Browse the repository at this point in the history
Layout Export: Correctly detect Block Editor
  • Loading branch information
Misplon authored Sep 28, 2020
2 parents 5c30121 + 86cfc2b commit a6a6162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/siteorigin-panels/dialog/prebuilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module.exports = panels.view.dialog.extend( {
var postName = $( 'input[name="post_title"], .editor-post-title__input' ).val();
if ( ! postName ) {
postName = $('input[name="post_ID"]').val();
} else if ( typeof wp.data != 'undefined' ) {
} else if ( $( '.block-editor-page' ).length ) {
var currentBlockPosition = thisView.getCurrentBlockPosition();
if ( currentBlockPosition >= 0 ) {
postName += '-' + currentBlockPosition;
Expand Down

0 comments on commit a6a6162

Please sign in to comment.