| @@ -6,5 +6,12 @@ | ||
| 6 | 6 | add_filter( 'boxzilla_box_content', 'convert_smilies' ); |
| 7 | 7 | add_filter( 'boxzilla_box_content', 'convert_chars' ); |
| 8 | 8 | add_filter( 'boxzilla_box_content', 'wpautop' ); |
| 9 | 9 | add_filter( 'boxzilla_box_content', 'shortcode_unautop' ); |
| 10 | -add_filter( 'boxzilla_box_content', 'do_shortcode', 11 ); | |
| 10 | +add_filter( 'boxzilla_box_content', 'do_shortcode', 11 ); | |
| 11 | + | |
| 12 | +/** | |
| 13 | +* Allow Jetpack Photon to filter on Boxzilla box content. | |
| 14 | +*/ | |
| 15 | +if ( class_exists( 'Jetpack' ) && class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) ) { | |
| 16 | + add_filter( 'boxzilla_box_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 ); | |
| 17 | +} | |