Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions just-variables.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function jv_admin_settings_page(){

// Form submit processing
if( !empty($_POST['submitted']) && !empty($_POST['jv_settings']) ){
$post = $_POST['jv_settings'];

$post = array_map( 'stripslashes_deep', $_POST['jv_settings']);
// update database with new values
$variables = array();
if( !empty($post['slug']) ){
Expand All @@ -57,10 +57,9 @@ function jv_admin_settings_page(){
'default' => $post['default'][$key],
'placeholder' => $post['placeholder'][$key],
);

}
//pa($variables,1);

// update DB
update_option('jv_variables', $variables);

Expand Down