|
@@ 388-394 (lines=7) @@
|
| 385 |
|
} |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
static function activate_manage( ) { |
| 389 |
|
if ( did_action( 'init' ) || current_filter() == 'init' ) { |
| 390 |
|
self::activate_module( 'manage', false, false ); |
| 391 |
|
} else if ( ! has_action( 'init' , array( __CLASS__, 'activate_manage' ) ) ) { |
| 392 |
|
add_action( 'init', array( __CLASS__, 'activate_manage' ) ); |
| 393 |
|
} |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
/** |
| 397 |
|
* Markdown is now a default, always-on feature of Jetpack |
|
@@ 400-406 (lines=7) @@
|
| 397 |
|
* Markdown is now a default, always-on feature of Jetpack |
| 398 |
|
* Since: 4.8 |
| 399 |
|
*/ |
| 400 |
|
static function activate_markdown( ) { |
| 401 |
|
if ( did_action( 'init' ) || current_filter() == 'init' ) { |
| 402 |
|
self::activate_module( 'markdown', false, false ); |
| 403 |
|
} else if ( ! has_action( 'init' , array( __CLASS__, 'activate_markdown' ) ) ) { |
| 404 |
|
add_action( 'init', array( __CLASS__, 'activate_markdown' ) ); |
| 405 |
|
} |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
static function update_active_modules( $modules ) { |
| 409 |
|
$current_modules = Jetpack_Options::get_option( 'active_modules', array() ); |