Skip to content

Commit

Permalink
Compatibility with WP v5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
indrek-k authored Jan 29, 2021
1 parent 0636329 commit 1be6278
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ACFSimpleWysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ public function add_filters()
if (acf_version_compare('wp', '<', '4.4')) {
add_filter('acf_the_content_simple', 'convert_chars');
}


// Added in 5.6
if (function_exists('wp_filter_content_tags') {
add_filter('acf_the_content_simple', 'wp_filter_content_tags');
// Added in 4.4
if (function_exists('wp_make_content_images_responsive')) {
} elseif (function_exists('wp_make_content_images_responsive')) {
add_filter('acf_the_content_simple', 'wp_make_content_images_responsive');
}

Expand Down

0 comments on commit 1be6278

Please sign in to comment.