@@ 2559-2563 (lines=5) @@ | ||
2556 | $module_info = Jetpack::get_module( $module ); |
|
2557 | if ( ! $module_info['deactivate'] ) { |
|
2558 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
2559 | if ( $active_state = Jetpack::state( $state ) ) { |
|
2560 | $active_state = explode( ',', $active_state ); |
|
2561 | } else { |
|
2562 | $active_state = array(); |
|
2563 | } |
|
2564 | $active_state[] = $module; |
|
2565 | Jetpack::state( $state, implode( ',', $active_state ) ); |
|
2566 | } |
|
@@ 2586-2590 (lines=5) @@ | ||
2583 | ||
2584 | $active[] = $module; |
|
2585 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
2586 | if ( $active_state = Jetpack::state( $state ) ) { |
|
2587 | $active_state = explode( ',', $active_state ); |
|
2588 | } else { |
|
2589 | $active_state = array(); |
|
2590 | } |
|
2591 | $active_state[] = $module; |
|
2592 | Jetpack::state( $state, implode( ',', $active_state ) ); |
|
2593 | Jetpack::update_active_modules( $active ); |