Skip to content

Commit 2383cb6

Browse files
committed
Enqueue polyfills if WP version is lessa than 5.3
1 parent cfc8b7d commit 2383cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/class-block-types.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ public function enqueue_block_editor_assets() {
144144
}
145145
}
146146

147-
// Enqueue RichText polyfills if WP version is less than 5.2.
148-
if ( version_compare( get_bloginfo( 'version' ), '5.2', '<=' ) ) {
147+
// Enqueue RichText polyfills if WP version is less than 5.3.
148+
if ( version_compare( get_bloginfo( 'version' ), '5.3', '<' ) ) {
149149
wp_enqueue_script(
150150
'material-block-editor-polyfills',
151151
$this->plugin->asset_url( 'assets/js/polyfills.js' ),

0 commit comments

Comments
 (0)