auto-patch 700-dev-dev01-2024-06-01T22_54_01

This commit is contained in:
root
2024-06-01 22:54:01 +00:00
parent a961f203c3
commit 72a1eb6e5a
123 changed files with 794 additions and 4518 deletions

View File

@@ -197,14 +197,14 @@ class Minute_Control {
public function inline_shortcode( $atts ) {
global $post;
$data_url = isset( $atts['url'] ) ? esc_attr( 'data-url=' . esc_url( $atts['url'] ) ) : '';
$data_url = isset( $atts['url'] ) ? $atts['url'] : '';
if ( is_archive() || is_front_page() || is_tag() ) {
$data_url = esc_attr( 'data-url=' . get_permalink( $post->ID ) );
$data_url = get_permalink( $post->ID );
}
// Build container.
return '<div class="sharethis-inline-share-buttons" ' . $data_url . '></div>';
return '<div class="sharethis-inline-share-buttons" ' . ( false === empty( $data_url ) ? 'data-url="' . esc_url( $data_url ) . '"' : '' ) . '></div>';
}
/**

View File

@@ -6,8 +6,8 @@ Author URI: https://sharethis.com/
Author: ShareThis
Requires at least: 5.5
Tested up to: 6.5.3
Stable tag: 2.3.1
Version: 2.3.1
Stable tag: 2.3.2
Version: 2.3.2
License: GPLv2 or later
@@ -73,6 +73,9 @@ We cache your ShareThis platform button configurations (social networks, button
== Changelog ==
= 2.3.2 =
* Additional security checks.
= 2.3.1 =
* Fix XSS security hole in shortcode

View File

@@ -3,7 +3,7 @@
* Plugin Name: ShareThis Share Buttons
* Plugin URI: https://sharethis.com/
* Description: Grow your website traffic with share buttons for 40+ social channels including Facebook, LinkedIn, Twitter, WhatsApp, and more.
* Version: 2.3.1
* Version: 2.3.2
* Author: ShareThis
* Author URI: https://sharethis.com/
* Text Domain: sharethis-share-buttons
@@ -28,7 +28,7 @@
/**
* Plugin version constant.
*/
const SHARETHIS_SHARE_BUTTONS_VERSION = '2.3.1';
const SHARETHIS_SHARE_BUTTONS_VERSION = '2.3.2';
if ( version_compare( phpversion(), '5.3', '>=' ) ) {
require_once __DIR__ . '/instance.php';