Skip to content

Commit

Permalink
Fix Call to undefined function is_wp_version_compatible() #414
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Alimuzzaman Alim committed Nov 19, 2019
1 parent fcb1582 commit df1c082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/class-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function init() {
if($this->get( 'sm.mode' ) === 'stateless'){
// Store attachment id in a static variable on 'intermediate_image_sizes_advanced' filter.
// Utility::store_can_delete_attachment();
if(is_wp_version_compatible('5.3-RC4-46673')){
if(function_exists('is_wp_version_compatible') && is_wp_version_compatible('5.3-RC4-46673')){
add_filter( 'intermediate_image_sizes_advanced', array($this, 'store_can_delete_attachment'), 10, 3 );
}
}
Expand Down

0 comments on commit df1c082

Please sign in to comment.