Changeset 3158305
- Timestamp:
- 09/26/2024 03:06:01 PM (18 months ago)
- Location:
- wp-multitasking/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-multitasking.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-multitasking/trunk/readme.txt
r3140709 r3158305 5 5 Requires at least: 2.1.0 6 6 Tested up to: 6.6.1 7 Stable tag: 0.1.1 77 Stable tag: 0.1.18 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 == Changelog == 87 87 88 = 0.1.18 = 89 * Fix bug sanitize 90 88 91 = 0.1.17 = 89 92 * Fix display images -
wp-multitasking/trunk/wp-multitasking.php
r3140709 r3158305 4 4 Plugin URI: http://wordpress.org/plugins/wp-multitasking/ 5 5 Description: This plugin is synthetic utility for your WordPress site: Shortcode, BBCode, AddQuickTag, Exit pop-up, Welcome pop-up, Remove base slug, SMTP, Classic Editor, Classic widgets... 6 Version: 0.1.1 76 Version: 0.1.18 7 7 Author: thangnv27 8 8 Author URI: https://ngothang.me/ … … 27 27 28 28 function wpmt_add_settings_page(){ 29 $menu_name = stripslashes(get_option('wpmt_menu_name'));29 $menu_name = esc_html(get_option('wpmt_menu_name')); 30 30 $menu_name = (empty($menu_name)) ? WPMT_MENU_NAME : $menu_name; 31 31 add_menu_page($menu_name, // Page title … … 45 45 $fields = ['wpmt_menu_name', 'wpmt_classic_editor', 'wpmt_classic_widgets', 'wpmt_popup_type', 'wpmt_colorbox_type']; 46 46 foreach ($fields as $field) { 47 if (isset($_REQUEST[$field]) and !empty($_REQUEST[$field])) { 48 update_option($field, $_REQUEST[$field]); 47 $fieldVal = sanitize_text_field($_REQUEST[$field]); 48 if (isset($_REQUEST[$field]) and !empty($fieldVal)) { 49 update_option($field, $fieldVal); 49 50 } else { 50 51 delete_option($field); … … 69 70 <h2 class="wraphead"> 70 71 <?php 71 $wpmt_menu_name = stripslashes(get_option('wpmt_menu_name'));72 $wpmt_menu_name = esc_html(get_option('wpmt_menu_name')); 72 73 $menu_name = (empty($wpmt_menu_name)) ? WPMT_MENU_NAME : $wpmt_menu_name; 73 74 echo $menu_name; … … 85 86 </td> 86 87 <td> 87 <input type="text" name="wpmt_menu_name" id="wpmt_menu_name" value="<?php echo stripslashes(get_option('wpmt_menu_name')); ?>" class="regular-text" />88 <input type="text" name="wpmt_menu_name" id="wpmt_menu_name" value="<?php echo esc_html(get_option('wpmt_menu_name')); ?>" class="regular-text" /> 88 89 </td> 89 90 </tr>
Note: See TracChangeset
for help on using the changeset viewer.