Plugin Directory

Changeset 3158305


Ignore:
Timestamp:
09/26/2024 03:06:01 PM (18 months ago)
Author:
thangnv27
Message:

fixbug

Location:
wp-multitasking/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-multitasking/trunk/readme.txt

    r3140709 r3158305  
    55Requires at least: 2.1.0
    66Tested up to: 6.6.1
    7 Stable tag: 0.1.17
     7Stable tag: 0.1.18
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8686== Changelog ==
    8787
     88= 0.1.18 =
     89* Fix bug sanitize
     90
    8891= 0.1.17 =
    8992* Fix display images
  • wp-multitasking/trunk/wp-multitasking.php

    r3140709 r3158305  
    44Plugin URI:  http://wordpress.org/plugins/wp-multitasking/
    55Description: 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.17
     6Version:     0.1.18
    77Author:      thangnv27
    88Author URI:  https://ngothang.me/
     
    2727
    2828function wpmt_add_settings_page(){
    29     $menu_name = stripslashes(get_option('wpmt_menu_name'));
     29    $menu_name = esc_html(get_option('wpmt_menu_name'));
    3030    $menu_name = (empty($menu_name)) ? WPMT_MENU_NAME : $menu_name;
    3131    add_menu_page($menu_name, // Page title
     
    4545                $fields = ['wpmt_menu_name', 'wpmt_classic_editor', 'wpmt_classic_widgets', 'wpmt_popup_type', 'wpmt_colorbox_type'];
    4646                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);
    4950                    } else {
    5051                        delete_option($field);
     
    6970            <h2 class="wraphead">
    7071                <?php
    71                 $wpmt_menu_name = stripslashes(get_option('wpmt_menu_name'));
     72                $wpmt_menu_name = esc_html(get_option('wpmt_menu_name'));
    7273                $menu_name = (empty($wpmt_menu_name)) ? WPMT_MENU_NAME : $wpmt_menu_name;
    7374                echo $menu_name;
     
    8586                        </td>
    8687                        <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" />
    8889                        </td>
    8990                    </tr>
Note: See TracChangeset for help on using the changeset viewer.