Przeglądaj źródła

Independent Publisher 2: Correct issue in JavaScript selector for wide images.

Laurel Fulford 6 lat temu
rodzic
commit
3a8f143114

+ 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' );
                      }