PluginProbe
Boxzilla – WordPress Popup Builder / 3.1.9
Boxzilla – WordPress Popup Builder v3.1.9
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/default-filters.php +7 -36 3.4.63.1.9 View file →
@@ -1,39 +1,10 @@
1 1 <?php
2 2
3 -use Automattic\Jetpack\Image_CDN\Image_CDN;
3 +defined( 'ABSPATH' ) or exit;
4 4
5 -defined('ABSPATH') or exit;
6 -
7 -add_filter('boxzilla_box_content', 'wptexturize');
8 -add_filter('boxzilla_box_content', 'convert_smilies');
9 -add_filter('boxzilla_box_content', 'convert_chars');
10 -add_filter('boxzilla_box_content', 'wpautop');
11 -add_filter('boxzilla_box_content', 'shortcode_unautop');
12 -add_filter('boxzilla_box_content', 'do_shortcode', 11);
13 -
14 -/**
15 -* Allow Jetpack to filter images inside Boxzilla box content.
16 -*/
17 -if (class_exists(Image_CDN::class) && method_exists(Image_CDN::class, 'filter_the_content')) {
18 - add_filter('boxzilla_box_content', [ Image_CDN::class, 'filter_the_content' ], 999999);
19 -}
20 -
21 -
22 -/**
23 - * Filter nav menu items to use an onclick event instead of a href attribute.
24 - */
25 -add_filter(
26 - 'nav_menu_link_attributes',
27 - function ($atts) {
28 - if (isset($atts['href']) && strpos($atts['href'], '#boxzilla-') !== 0) {
29 - return $atts;
30 - }
31 -
32 - $id = substr($atts['href'], strlen('#boxzilla-'));
33 - $atts['onclick'] = "Boxzilla.show({$id}); return false;";
34 - $atts['href'] = '';
35 - return $atts;
36 - },
37 - 10,
38 - 1
39 -);
5 +add_filter( 'boxzilla_box_content', 'wptexturize') ;
6 +add_filter( 'boxzilla_box_content', 'convert_smilies' );
7 +add_filter( 'boxzilla_box_content', 'convert_chars' );
8 +add_filter( 'boxzilla_box_content', 'wpautop' );
9 +add_filter( 'boxzilla_box_content', 'shortcode_unautop' );
10 +add_filter( 'boxzilla_box_content', 'do_shortcode', 11 );