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:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -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;
}
}