PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | 3rd-party/bbpress.php +9 -3 12.1.3 → 16.3-a.7 View file →
@@ -6,8 +6,14 @@
6 6 *
7 7 * @package automattic/jetpack
8 8 */
9 9
10 +use Automattic\Jetpack\Image_CDN\Image_CDN;
11 +
12 +if ( ! defined( 'ABSPATH' ) ) {
13 + exit( 0 );
14 +}
15 +
10 16 // Priority 11 needed to ensure sharing_display is loaded.
11 17 add_action( 'init', 'jetpack_bbpress_compat', 11 );
12 18
13 19 /**
@@ -48,11 +54,11 @@
48 54 * Use Photon for all images in Topics and replies.
49 55 *
50 56 * @since 4.9.0
51 57 */
52 - if ( class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) ) {
53 - add_filter( 'bbp_get_topic_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
54 - add_filter( 'bbp_get_reply_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
58 + if ( class_exists( Image_CDN::class ) && Image_CDN::is_enabled() ) {
59 + add_filter( 'bbp_get_topic_content', array( Image_CDN::class, 'filter_the_content' ), 999999 );
60 + add_filter( 'bbp_get_reply_content', array( Image_CDN::class, 'filter_the_content' ), 999999 );
55 61 }
56 62 }
57 63
58 64 /**