Skip to content

Commit b0d5e5f

Browse files
committed
// Assigns defaults for the scan if none are found in the database.
1 parent 85880fd commit b0d5e5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wpengine-phpcompat.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,13 @@ function create_menu() {
212212
* @return null
213213
*/
214214
function settings_page() {
215+
// Discovers last options used.
215216
$test_version = get_option( 'wpephpcompat.test_version' );
216217
$only_active = get_option( 'wpephpcompat.only_active' );
218+
219+
// Assigns defaults for the scan if none are found in the database.
220+
$test_version = ( false !== $test_version ) ? $test_version : '7.0';
221+
$only_active = ( false !== $only_active ) ? $only_active : 'yes';
217222
?>
218223
<div class="wrap">
219224
<div style="float: left;">

0 commit comments

Comments
 (0)