Changeset 2784349
- Timestamp:
- 09/14/2022 03:13:27 AM (4 years ago)
- Location:
- social-rocket/trunk
- Files:
-
- 5 edited
-
admin/includes/class-social-rocket-admin.php (modified) (1 diff)
-
admin/js/admin.js (modified) (2 diffs)
-
includes/class-social-rocket.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
social-rocket.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-rocket/trunk/admin/includes/class-social-rocket-admin.php
r2763304 r2784349 89 89 } 90 90 91 /* 92 * _stripslashes_deep. 93 * 94 * @version 1.3.3 95 * @since 1.0.0 96 */ 91 97 public static function _stripslashes_deep( $value ) { 92 98 $value = is_array( $value ) ? 93 99 array_map( array( 'Social_Rocket_Admin', '_stripslashes_deep' ), $value ) : 94 stripslashes( $value);100 wp_kses_post( stripslashes( $value ) ); 95 101 return $value; 96 102 } -
social-rocket/trunk/admin/js/admin.js
r2423270 r2784349 1090 1090 if ( typeof ctaValue !== "undefined" ) { 1091 1091 $dest.find( '.social-rocket-' + network + ' .social-rocket-button-cta' ).each(function() { 1092 $( this ). text( ctaValue );1092 $( this ).html( ctaValue ); 1093 1093 }); 1094 1094 } … … 2113 2113 if ( typeof ctaValue !== "undefined" ) { 2114 2114 $dest.find( '.social-rocket-' + network + ' .social-rocket-floating-button-cta' ).each(function() { 2115 $( this ). text( ctaValue );2115 $( this ).html( ctaValue ); 2116 2116 }); 2117 2117 } -
social-rocket/trunk/includes/class-social-rocket.php
r2763304 r2784349 1284 1284 * [socialrocket-floating], or via the global function socal_rocket_floating(). 1285 1285 * 1286 * @since 1.0.0 1286 * @version 1.3.3 1287 * @since 1.0.0 1287 1288 * 1288 1289 * @param array $args { … … 1541 1542 . ' ' . $this->get_anchor_data( $network_key, 'floating' ) 1542 1543 . ' target="_blank"' 1543 . ' aria-label="' . $this->get_cta( $network_key, $settings) . '">';1544 . ' aria-label="' . esc_attr( $this->get_cta( $network_key, $settings ) ) . '">'; 1544 1545 1545 1546 // icon 1546 1547 $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>' 1548 1549 . '</span>'; 1549 1550 1550 1551 // call to action 1551 1552 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>'; 1553 1554 } 1554 1555 … … 1703 1704 * [socialrocket], or via the global function socal_rocket(). 1704 1705 * 1705 * @since 1.0.0 1706 * @version 1.3.3 1707 * @since 1.0.0 1706 1708 * 1707 1709 * @param array $args { … … 1957 1959 . ' ' . $this->get_anchor_data( $network_key ) 1958 1960 . ' target="_blank"' 1959 . ' aria-label="' . $this->get_cta( $network_key, $settings) . '">';1961 . ' aria-label="' . esc_attr( $this->get_cta( $network_key, $settings ) ) . '">'; 1960 1962 1961 1963 // 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">' . 1963 1965 $this->get_icon_svg( $network_key, $settings ) . 1964 1966 '</i>'; … … 1966 1968 // call to action 1967 1969 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>'; 1969 1971 } 1970 1972 -
social-rocket/trunk/readme.txt
r2763304 r2784349 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.5 8 Stable tag: 1.3. 28 Stable tag: 1.3.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 84 84 == Changelog == 85 = 1.3.3 = 86 * FIX: sanitization issues with button CTA, icon class. 87 85 88 = 1.3.2 = 86 89 * FIX: issues with dismissing Facebook "invalid token" notice. -
social-rocket/trunk/social-rocket.php
r2763304 r2784349 3 3 * Plugin Name: Social Rocket 4 4 * Description: Social Sharing... to the Moon! 5 * Version: 1.3. 25 * Version: 1.3.3 6 6 * Author: Social Rocket 7 7 * Author URI: http://wpsocialrocket.com/ … … 21 21 } 22 22 23 define( 'SOCIAL_ROCKET_VERSION', '1.3. 2' );23 define( 'SOCIAL_ROCKET_VERSION', '1.3.3' ); 24 24 define( 'SOCIAL_ROCKET_DBVERSION', '5' ); 25 25 define( 'SOCIAL_ROCKET_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.