plugin updates
This commit is contained in:
@@ -785,12 +785,20 @@ class Options {
|
||||
/** @noinspection PhpUndefinedConstantInspection */
|
||||
$return = $this->is_const_defined( $group, $key ) ? WPMS_DO_NOT_SEND : $value;
|
||||
break;
|
||||
|
||||
case SummaryReportEmail::SETTINGS_SLUG:
|
||||
/** No inspection comment @noinspection PhpUndefinedConstantInspection */
|
||||
$return = $this->is_const_defined( $group, $key ) ?
|
||||
$this->parse_boolean( WPMS_SUMMARY_REPORT_EMAIL_DISABLED ) :
|
||||
$value;
|
||||
break;
|
||||
|
||||
case OptimizedEmailSending::SETTINGS_SLUG:
|
||||
/** No inspection comment @noinspection PhpUndefinedConstantInspection */
|
||||
$return = $this->is_const_defined( $group, $key ) ?
|
||||
$this->parse_boolean( WPMS_OPTIMIZED_EMAIL_SENDING_ENABLED ) :
|
||||
$value;
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -1108,9 +1116,14 @@ class Options {
|
||||
/** @noinspection PhpUndefinedConstantInspection */
|
||||
$return = defined( 'WPMS_DO_NOT_SEND' ) && WPMS_DO_NOT_SEND;
|
||||
break;
|
||||
|
||||
case SummaryReportEmail::SETTINGS_SLUG:
|
||||
$return = defined( 'WPMS_SUMMARY_REPORT_EMAIL_DISABLED' );
|
||||
break;
|
||||
|
||||
case OptimizedEmailSending::SETTINGS_SLUG:
|
||||
$return = defined( 'WPMS_OPTIMIZED_EMAIL_SENDING_ENABLED' );
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -1236,6 +1249,7 @@ class Options {
|
||||
case 'uninstall':
|
||||
case UsageTracking::SETTINGS_SLUG:
|
||||
case SummaryReportEmail::SETTINGS_SLUG:
|
||||
case OptimizedEmailSending::SETTINGS_SLUG:
|
||||
$options[ $group ][ $option_name ] = (bool) $option_value;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user