← All changes
|
jetpack_vendor/automattic/jetpack-videopress/src/class-module-control.php
+1
-12
12.0.3
→
16.3
View file →
| @@ -19,11 +19,10 @@ | ||
| 19 | 19 | */ |
| 20 | 20 | public static function init() { |
| 21 | 21 | add_filter( 'jetpack_get_available_standalone_modules', array( __CLASS__, 'add_videopress_to_array' ), 10, 1 ); |
| 22 | 22 | if ( Status::is_standalone_plugin_active() ) { |
| 23 | - // If the stand-alone plugin is active, videopress module will always be considered active; same for the stats module | |
| 23 | + // If the stand-alone plugin is active, videopress module will always be considered active | |
| 24 | 24 | add_filter( 'jetpack_active_modules', array( __CLASS__, 'add_videopress_to_array' ), 10, 2 ); |
| 25 | - add_filter( 'jetpack_active_modules', array( __CLASS__, 'add_stats_to_array' ), 10, 2 ); | |
| 26 | 25 | } |
| 27 | 26 | } |
| 28 | 27 | |
| 29 | 28 | /** |
| @@ -33,16 +32,6 @@ | ||
| 33 | 32 | * @return array |
| 34 | 33 | */ |
| 35 | 34 | public static function add_videopress_to_array( $modules ) { |
| 36 | 35 | return array_merge( array( 'videopress' ), $modules ); |
| 37 | - } | |
| 38 | - | |
| 39 | - /** | |
| 40 | - * Adds stats to the list of available/active modules | |
| 41 | - * | |
| 42 | - * @param array $modules Array with modules slugs. | |
| 43 | - * @return array | |
| 44 | - */ | |
| 45 | - public static function add_stats_to_array( $modules ) { | |
| 46 | - return array_merge( array( 'stats' ), $modules ); | |
| 47 | 36 | } |
| 48 | 37 | } |