Untitled diff

Created Diff never expires
5 removals
13 lines
9 additions
16 lines
<?php
<?php
// $_POST needs to be sanitized by version 1.0
// $_POST needs to be sanitized by version 1.0
if( isset($_POST['submit']) && check_admin_referer('fitvids_action','fitvids_ref') ) {
if( isset($_POST['submit']) && check_admin_referer('fitvids_action','fitvids_ref') ) {
$fitvids_wp_message = '';
$fitvids_wp_message = '';
update_option('fitvids_wp_jq', addslashes($_POST['fitvids_wp_jq']));
if( isset( $_POST['fitvids_wp_jq'] ) )
update_option('fitvids_wp_selector', esc_js(trim($_POST['fitvids_wp_selector'])));
update_option('fitvids_wp_jq', addslashes($_POST['fitvids_wp_jq']));
update_option('fitvids_wp_custom_selector', esc_js(trim($_POST['fitvids_wp_custom_selector'])));
if( isset( $_POST['fitvids_wp_selector'] ) )
update_option('fitvids_wp_selector', esc_js(trim($_POST['fitvids_wp_selector'])));
if( isset( $_POST['fitvids_wp_custom_selector'] ) )
update_option('fitvids_wp_custom_selector', esc_js(trim($_POST['fitvids_wp_custom_selector'])));
if($_POST['fitvids_wp_jq'] != '') { $fitvids_wp_message .= 'You have enabled jQuery for your theme.'; }
if( isset( $_POST['fitvids_wp_jq'] ) && $_POST['fitvids_wp_jq'] != '') { $fitvids_wp_message .= 'You have enabled jQuery for your theme.'; }
echo '<div id="message" class="updated below-h2"><p>FitVids is updated. ', $fitvids_wp_message ,'</p></div>';
echo '<div id="message" class="updated below-h2"><p>FitVids is updated. ', $fitvids_wp_message ,'</p></div>';
}
}