Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug while importing

  • Loading branch information...
commit 72a2bf8101002655506ba45eef46280d35b58823 1 parent b5240ad
@haroldangenent haroldangenent authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  assets/inc/class.MCB.php
View
2  assets/inc/class.MCB.php
@@ -61,7 +61,7 @@ function meta_box() {
* @param int $post_id
*/
function save_blocks($post_id) {
- if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) :
+ if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && ((!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest'))) :
$blocks = $this->get_blocks($post_id);
if(is_wp_error($blocks)) $blocks = $this->get_blocks($post_id,false);

1 comment on commit 72a2bf8

@EricWVGG

Looks good to me. Thanks again for keeping this plugin in shape.

Please sign in to comment.
Something went wrong with that request. Please try again.