Plugin Directory

Changeset 3248641


Ignore:
Timestamp:
02/28/2025 05:40:33 PM (12 months ago)
Author:
kylephillips
Message:

Adds 2.3.5 updates

Location:
favorites/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • favorites/trunk/app/Config/SettingsRepository.php

    r2002493 r3248641  
    183183        if ( !isset($option['buttontext']) || $option['buttontext'] == "" )
    184184            return __('Favorite', 'favorites');
    185         return esc_html($option['buttontext']);
     185        return $this->sanitizeOutput($option['buttontext']);
    186186    }
    187187
     
    195195        if ( !isset($option['buttontextfavorited']) || $option['buttontextfavorited'] == "" )
    196196            return __('Favorited', 'favorites');
    197         return esc_html($option['buttontextfavorited']);
     197        return $this->sanitizeOutput($option['buttontextfavorited']);
    198198    }
    199199
     
    207207        if ( !isset($option['clearfavorites']) || $option['clearfavorites'] == "" )
    208208            return __('Clear Favorites', 'favorites');
    209         return esc_html($option['clearfavorites']);
     209        return $this->sanitizeOutput($option['clearfavorites']);
    210210    }
    211211
     
    266266    {
    267267        $option = get_option('simplefavorites_display');
    268         return ( isset($option['loadingindicator']['text']) ) ? esc_html($option['loadingindicator']['text']) : __('Loading', 'favorites');
     268        return ( isset($option['loadingindicator']['text']) ) ? $this->sanitizeOutput($option['loadingindicator']['text']) : __('Loading', 'favorites');
    269269    }
    270270
     
    532532        return ( isset($option[$setting]) ) ? $option[$setting] : false;
    533533    }
     534
     535    private function sanitizeOutput($output)
     536    {
     537        $allowed = [
     538            'i' => [
     539                'class' => true,
     540            ],
     541            'img' => [
     542                'class' => true,
     543                'src' => true,
     544            ],
     545            'p' => [
     546                'class' => true
     547            ],
     548            'strong' => []
     549        ];
     550        $output = wp_kses($output, $allowed);
     551        return $output;
     552    }
    534553}
  • favorites/trunk/app/Favorites.php

    r3061244 r3248641  
    1313
    1414        global $favorites_version;
    15         $favorites_version = '2.3.4';
     15        $favorites_version = '2.3.5';
    1616
    1717        global $favorites_name;
  • favorites/trunk/favorites.php

    r3061244 r3248641  
    44Plugin URI: http://favoriteposts.com
    55Description: Simple and flexible favorite buttons for any post type.
    6 Version: 2.3.4
     6Version: 2.3.5
    77Author: Kyle Phillips
    88Author URI: https://github.com/kylephillips
     
    1313*/
    1414
    15 /*  Copyright 2023 Kyle Phillips
     15/*  Copyright 2025 Kyle Phillips
    1616
    1717    This program is free software; you can redistribute it and/or modify
  • favorites/trunk/readme.txt

    r3207775 r3248641  
    8181
    8282== Changelog ==
     83
     84= 2.3.5 =
     85* Security update
    8386
    8487= 2.3.4 =
Note: See TracChangeset for help on using the changeset viewer.