Plugin Directory

Changeset 2998182


Ignore:
Timestamp:
11/19/2023 12:40:08 AM (2 years ago)
Author:
someguy9
Message:

0.8.11

Location:
featured-image-caption
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • featured-image-caption/trunk/classes/MetaBox.php

    r2300545 r2998182  
    8888        // Now that we've validated nonce and permissions, let's save the caption data
    8989        // Sanitize the caption
     90        $allowed_html = array(
     91            'img' => array(
     92                'title' => array(),
     93                'src'   => array(),
     94                'alt'   => array(),
     95            ),
     96            'a' => array(
     97                'href'  => array(),
     98                'title' => array()
     99            ),
     100            'br' => array(),
     101            'em' => array(),
     102            'strong' => array(),
     103            'p' => array(),
     104        );
    90105        $caption = array(
    91             'caption_text'    => $_POST[CCFIC_KEY.'_caption_text'],
    92             'source_text'    => $_POST[CCFIC_KEY.'_source_text'],
    93             'source_url'    => esc_url($_POST[CCFIC_KEY.'_source_url']),
     106            'caption_text'    => wp_kses($_POST[CCFIC_KEY.'_caption_text'], $allowed_html),
     107            'source_text'    => wp_kses($_POST[CCFIC_KEY.'_source_text'], $allowed_html),
     108            'source_url'    => esc_url_raw($_POST[CCFIC_KEY.'_source_url']),
    94109            'new_window'    => (! empty($_POST[CCFIC_KEY.'_new_window']) ? true : false),
    95110        );
  • featured-image-caption/trunk/featured-image-caption.php

    r2486227 r2998182  
    44Plugin URI: https://christiaanconover.com/
    55Description: Set a caption for the featured image of a post that can be displayed on your site.
    6 Version: 0.8.10
     6Version: 0.8.11
    77Author: Christiaan Conover
    88Author URI: https://christiaanconover.com?utm_source=wp-featured-image-caption-author
     
    1919define('CCFIC_ID', 'ccfic'); // Plugin ID
    2020define('CCFIC_NAME', 'Featured Image Caption'); // Plugin name
    21 define('CCFIC_VERSION', '0.8.10'); // Plugin version
     21define('CCFIC_VERSION', '0.8.11'); // Plugin version
    2222define('CCFIC_WPVER', '3.5'); // Minimum required version of WordPress
    2323define('CCFIC_PHPVER', '5.6.20'); // Minimum required version of PHP
  • featured-image-caption/trunk/readme.txt

    r2486227 r2998182  
    55Requires at least: 3.5
    66Tested up to: 5.7
    7 Stable tag: 0.8.10
     7Stable tag: 0.8.11
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    105105
    106106== Changelog ==
     107
     108= 0.8.11 =
     109* Security patch fix.
     110* Tested up to WordPress 6.4.
    107111
    108112= 0.8.10 =
Note: See TracChangeset for help on using the changeset viewer.