|
@@ 3371-3377 (lines=7) @@
|
| 3368 |
|
|
| 3369 |
|
// Do what is necessary for each module. |
| 3370 |
|
switch ( $module ) { |
| 3371 |
|
case 'monitor': |
| 3372 |
|
// Load the class to use the method. If class can't be found, do nothing. |
| 3373 |
|
if ( ! class_exists( 'Jetpack_Monitor' ) && ! include_once( Jetpack::get_module_path( $module ) ) ) { |
| 3374 |
|
return false; |
| 3375 |
|
} |
| 3376 |
|
$value = Jetpack_Monitor::user_receives_notifications( false ); |
| 3377 |
|
break; |
| 3378 |
|
|
| 3379 |
|
case 'post-by-email': |
| 3380 |
|
// Load the class to use the method. If class can't be found, do nothing. |
|
@@ 3379-3388 (lines=10) @@
|
| 3376 |
|
$value = Jetpack_Monitor::user_receives_notifications( false ); |
| 3377 |
|
break; |
| 3378 |
|
|
| 3379 |
|
case 'post-by-email': |
| 3380 |
|
// Load the class to use the method. If class can't be found, do nothing. |
| 3381 |
|
if ( ! class_exists( 'Jetpack_Post_By_Email' ) && ! include_once( Jetpack::get_module_path( $module ) ) ) { |
| 3382 |
|
return false; |
| 3383 |
|
} |
| 3384 |
|
$value = Jetpack_Post_By_Email::init()->get_post_by_email_address(); |
| 3385 |
|
if ( $value === null ) { |
| 3386 |
|
$value = 'NULL'; // sentinel value so it actually gets set |
| 3387 |
|
} |
| 3388 |
|
break; |
| 3389 |
|
} |
| 3390 |
|
|
| 3391 |
|
// Normalize value to boolean. |