@@ 2541-2550 (lines=10) @@ | ||
2538 | ||
2539 | if ( $send_state_messages && in_array( $module, $active ) ) { |
|
2540 | $module_info = Jetpack::get_module( $module ); |
|
2541 | if ( ! $module_info['deactivate'] ) { |
|
2542 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
2543 | if ( $active_state = Jetpack::state( $state ) ) { |
|
2544 | $active_state = explode( ',', $active_state ); |
|
2545 | } else { |
|
2546 | $active_state = array(); |
|
2547 | } |
|
2548 | $active_state[] = $module; |
|
2549 | Jetpack::state( $state, implode( ',', $active_state ) ); |
|
2550 | } |
|
2551 | continue; |
|
2552 | } |
|
2553 | ||
@@ 2574-2584 (lines=11) @@ | ||
2571 | ||
2572 | $active[] = $module; |
|
2573 | ||
2574 | if ( $send_state_messages ) { |
|
2575 | ||
2576 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
2577 | if ( $active_state = Jetpack::state( $state ) ) { |
|
2578 | $active_state = explode( ',', $active_state ); |
|
2579 | } else { |
|
2580 | $active_state = array(); |
|
2581 | } |
|
2582 | $active_state[] = $module; |
|
2583 | Jetpack::state( $state, implode( ',', $active_state ) ); |
|
2584 | } |
|
2585 | ||
2586 | Jetpack::update_active_modules( $active ); |
|
2587 |