Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -26,7 +26,11 @@ class WPSEO_Premium_Option extends WPSEO_Option {
|
||||
*/
|
||||
protected $defaults = [
|
||||
// Form fields.
|
||||
'prominent_words_indexing_completed' => null,
|
||||
'prominent_words_indexing_completed' => null,
|
||||
'workouts' => [ 'cornerstone' => [ 'finishedSteps' => [] ] ],
|
||||
'should_redirect_after_install' => false,
|
||||
'activation_redirect_timestamp' => 0,
|
||||
'dismiss_update_premium_notification' => '0',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -67,6 +71,26 @@ class WPSEO_Premium_Option extends WPSEO_Option {
|
||||
$clean[ $key ] = WPSEO_Utils::validate_bool( $dirty[ $key ] );
|
||||
}
|
||||
|
||||
break;
|
||||
case 'workouts':
|
||||
if ( isset( $dirty[ $key ] ) && is_array( $dirty[ $key ] ) ) {
|
||||
$clean[ $key ] = $dirty[ $key ];
|
||||
}
|
||||
break;
|
||||
case 'should_redirect_after_install':
|
||||
if ( isset( $dirty[ $key ] ) && is_bool( $dirty[ $key ] ) ) {
|
||||
$clean[ $key ] = $dirty[ $key ];
|
||||
}
|
||||
break;
|
||||
case 'activation_redirect_timestamp':
|
||||
if ( isset( $dirty[ $key ] ) && is_int( $dirty[ $key ] ) ) {
|
||||
$clean[ $key ] = $dirty[ $key ];
|
||||
}
|
||||
break;
|
||||
case 'dismiss_update_premium_notification':
|
||||
if ( isset( $dirty[ $key ] ) && is_string( $dirty[ $key ] ) ) {
|
||||
$clean[ $key ] = $dirty[ $key ];
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user