Plugin Directory

Changeset 2784349


Ignore:
Timestamp:
09/14/2022 03:13:27 AM (4 years ago)
Author:
socialrocket
Message:

Version 1.3.3 update

Location:
social-rocket/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • social-rocket/trunk/admin/includes/class-social-rocket-admin.php

    r2763304 r2784349  
    8989    }
    9090   
     91    /*
     92     * _stripslashes_deep.
     93     *
     94     * @version 1.3.3
     95     * @since   1.0.0
     96     */
    9197    public static function _stripslashes_deep( $value ) {
    9298        $value = is_array( $value ) ?
    9399                    array_map( array( 'Social_Rocket_Admin', '_stripslashes_deep' ), $value ) :
    94                     stripslashes( $value );
     100                    wp_kses_post( stripslashes( $value ) );
    95101        return $value;
    96102    }
  • social-rocket/trunk/admin/js/admin.js

    r2423270 r2784349  
    10901090                        if ( typeof ctaValue !== "undefined" ) {
    10911091                            $dest.find( '.social-rocket-' + network + ' .social-rocket-button-cta' ).each(function() {
    1092                                 $( this ).text( ctaValue );
     1092                                $( this ).html( ctaValue );
    10931093                            });
    10941094                        }
     
    21132113                        if ( typeof ctaValue !== "undefined" ) {
    21142114                            $dest.find( '.social-rocket-' + network + ' .social-rocket-floating-button-cta' ).each(function() {
    2115                                 $( this ).text( ctaValue );
     2115                                $( this ).html( ctaValue );
    21162116                            });
    21172117                        }
  • social-rocket/trunk/includes/class-social-rocket.php

    r2763304 r2784349  
    12841284     * [socialrocket-floating], or via the global function socal_rocket_floating().
    12851285     *
    1286      * @since 1.0.0
     1286     * @version 1.3.3
     1287     * @since   1.0.0
    12871288     *
    12881289     * @param array $args {
     
    15411542                . ' ' . $this->get_anchor_data( $network_key, 'floating' )
    15421543                . ' target="_blank"'
    1543                 . ' aria-label="' . $this->get_cta( $network_key, $settings ) . '">';
     1544                . ' aria-label="' . esc_attr( $this->get_cta( $network_key, $settings ) ) . '">';
    15441545           
    15451546            // icon
    15461547            $cur .= '<span class="social-rocket-floating-button-icon">'
    1547                 . '<i class="' . $this->get_icon_class( $network_key, $settings ) . '">' . $this->get_icon_svg( $network_key, $settings ) . '</i>'
     1548                . '<i class="' . esc_attr( $this->get_icon_class( $network_key, $settings ) ) . '">' . $this->get_icon_svg( $network_key, $settings ) . '</i>'
    15481549                . '</span>';
    15491550           
    15501551            // call to action
    15511552            if ( $show_cta ) {
    1552                 $cur .= '<span class="social-rocket-floating-button-cta">' . $this->get_cta( $network_key, $settings ) . '</span>';
     1553                $cur .= '<span class="social-rocket-floating-button-cta">' . wp_kses_post( $this->get_cta( $network_key, $settings ) ) . '</span>';
    15531554            }
    15541555           
     
    17031704     * [socialrocket], or via the global function socal_rocket().
    17041705     *
    1705      * @since 1.0.0
     1706     * @version 1.3.3
     1707     * @since   1.0.0
    17061708     *
    17071709     * @param array $args {
     
    19571959                . ' ' . $this->get_anchor_data( $network_key )
    19581960                . ' target="_blank"'
    1959                 . ' aria-label="' . $this->get_cta( $network_key, $settings ) . '">';
     1961                . ' aria-label="' . esc_attr( $this->get_cta( $network_key, $settings ) ) . '">';
    19601962           
    19611963            // icon
    1962             $cur .= '<i class="'. $this->get_icon_class( $network_key, $settings ) . ' social-rocket-button-icon">' .
     1964            $cur .= '<i class="'. esc_attr( $this->get_icon_class( $network_key, $settings ) ) . ' social-rocket-button-icon">' .
    19631965                $this->get_icon_svg( $network_key, $settings ) .
    19641966                '</i>';
     
    19661968            // call to action
    19671969            if ( $show_cta ) {
    1968                 $cur .= '<span class="social-rocket-button-cta">' . $this->get_cta( $network_key, $settings ) . '</span>';
     1970                $cur .= '<span class="social-rocket-button-cta">' . wp_kses_post( $this->get_cta( $network_key, $settings ) ) . '</span>';
    19691971            }
    19701972           
  • social-rocket/trunk/readme.txt

    r2763304 r2784349  
    66Tested up to: 6.0
    77Requires PHP: 5.5
    8 Stable tag: 1.3.2
     8Stable tag: 1.3.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383
    8484== Changelog ==
     85= 1.3.3 =
     86* FIX: sanitization issues with button CTA, icon class.
     87
    8588= 1.3.2 =
    8689* FIX: issues with dismissing Facebook "invalid token" notice.
  • social-rocket/trunk/social-rocket.php

    r2763304 r2784349  
    33 * Plugin Name: Social Rocket
    44 * Description: Social Sharing... to the Moon!
    5  * Version: 1.3.2
     5 * Version: 1.3.3
    66 * Author: Social Rocket
    77 * Author URI: http://wpsocialrocket.com/
     
    2121}
    2222
    23 define( 'SOCIAL_ROCKET_VERSION', '1.3.2' );
     23define( 'SOCIAL_ROCKET_VERSION', '1.3.3' );
    2424define( 'SOCIAL_ROCKET_DBVERSION', '5' );
    2525define( 'SOCIAL_ROCKET_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.