Changeset 2746625
- Timestamp:
- 06/22/2022 07:08:23 PM (4 years ago)
- Location:
- sharebar
- Files:
-
- 2 edited
-
tags/1.4.3/sharebar-admin.php (modified) (2 diffs)
-
trunk/sharebar-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharebar/tags/1.4.3/sharebar-admin.php
r2746622 r2746625 49 49 $binaries = array("auto_posts","auto_pages","horizontal","credit"); 50 50 foreach($binaries as $binary) $_POST[$binary] = isset($_POST[$binary]) ? 1:0; 51 $_POST['width'] = $_POST['width'] ? $_POST['width']:1000;51 $_POST['width'] = $_POST['width'] ? (int) $_POST['width']:1000; 52 52 sharebar_settings($_POST); 53 53 foreach($sharebar_options as $option) $$option = get_option('sharebar_'.$option); … … 55 55 check_admin_referer( 'wp_sharebar_update_all' ); 56 56 $buttons = $_POST['buttons']; 57 $uptask = $_POST['update-task'];57 $uptask = sanitize_text_field($_POST['update-task']); 58 58 if($buttons){ 59 59 foreach ($buttons as $button) 60 sharebar_update_button( $button,$uptask);60 sharebar_update_button((int) $button,$uptask); 61 61 $status = "Buttons have been ".esc_html($uptask)."d"; 62 62 }else -
sharebar/trunk/sharebar-admin.php
r2746622 r2746625 49 49 $binaries = array("auto_posts","auto_pages","horizontal","credit"); 50 50 foreach($binaries as $binary) $_POST[$binary] = isset($_POST[$binary]) ? 1:0; 51 $_POST['width'] = $_POST['width'] ? $_POST['width']:1000;51 $_POST['width'] = $_POST['width'] ? (int) $_POST['width']:1000; 52 52 sharebar_settings($_POST); 53 53 foreach($sharebar_options as $option) $$option = get_option('sharebar_'.$option); … … 55 55 check_admin_referer( 'wp_sharebar_update_all' ); 56 56 $buttons = $_POST['buttons']; 57 $uptask = $_POST['update-task'];57 $uptask = sanitize_text_field($_POST['update-task']); 58 58 if($buttons){ 59 59 foreach ($buttons as $button) 60 sharebar_update_button( $button,$uptask);60 sharebar_update_button((int) $button,$uptask); 61 61 $status = "Buttons have been ".esc_html($uptask)."d"; 62 62 }else
Note: See TracChangeset
for help on using the changeset viewer.