浏览代码

Merge pull request #314 from Automattic/independent-publisher-2-add-gutenberg-support

Independent Publisher 2: Correct JavaScript error
Laurel 6 年之前
父节点
当前提交
ac5250811f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      independent-publisher-2/js/independent-publisher-2.js

+ 1 - 1
independent-publisher-2/js/independent-publisher-2.js

@@ -32,7 +32,7 @@
 
                     if ( img_width >= 1100
                         && img.parents( '.tiled-gallery-item-large' ).length === 0
-                        && img.parents().attr( ['class^="wp-block-"'] ).length === 0 ) {
+                        && img.parents( '[class^="wp-block-"]' ).length === 0 ) {
                             $( img ).addClass( 'size-big' );
                      }