From b8ae8fc19a1870abd081d20f28aa213626c78a47 Mon Sep 17 00:00:00 2001
From: agata <automa@insicuri.net>
Date: Wed, 22 Jan 2020 16:36:05 +0100
Subject: [PATCH] [auto] plugin: dvk-social-sharing 1.3.3

---
 .../plugins/dvk-social-sharing/CHANGELOG.md   |   6 +
 .../includes/class-admin.php                  |   3 +-
 .../includes/class-public.php                 |   4 +-
 .../dvk-social-sharing/includes/functions.php |   7 -
 .../includes/template-functions.php           |   2 +-
 .../includes/views/settings-page.php          |   7 +-
 .../plugins/dvk-social-sharing/index.php      |  11 +-
 .../languages/dvk-social-sharing.pot          |  43 ++-
 .../dvk-social-sharing/languages/index.php    |  10 +-
 .../plugins/dvk-social-sharing/readme.txt     | 295 +++++++++---------
 10 files changed, 204 insertions(+), 184 deletions(-)

diff --git a/wp-content/plugins/dvk-social-sharing/CHANGELOG.md b/wp-content/plugins/dvk-social-sharing/CHANGELOG.md
index fd152d4e5..01ce1c556 100644
--- a/wp-content/plugins/dvk-social-sharing/CHANGELOG.md
+++ b/wp-content/plugins/dvk-social-sharing/CHANGELOG.md
@@ -1,6 +1,12 @@
 Changelog
 ===================
 
+#### 1.3.3 - Dec 31, 2019
+
+- Remove unused LinkedIn parameters.
+- Switch to WordPress.org managed translations.
+
+
 #### 1.3.2 - March 23, 2018
 
 - Minor code optimisations
diff --git a/wp-content/plugins/dvk-social-sharing/includes/class-admin.php b/wp-content/plugins/dvk-social-sharing/includes/class-admin.php
index c6b0ebed5..a801680fa 100644
--- a/wp-content/plugins/dvk-social-sharing/includes/class-admin.php
+++ b/wp-content/plugins/dvk-social-sharing/includes/class-admin.php
@@ -18,7 +18,8 @@ class DVKSS_Admin {
 	private $plugin_file;
 
 	/**
-	* Constructor
+	 * Constructor
+	 * @param string $plugin_file
 	*/ 
 	public function __construct( $plugin_file ) {
 		$this->plugin_file = $plugin_file;	
diff --git a/wp-content/plugins/dvk-social-sharing/includes/class-public.php b/wp-content/plugins/dvk-social-sharing/includes/class-public.php
index 2129f3ce6..411cc6156 100644
--- a/wp-content/plugins/dvk-social-sharing/includes/class-public.php
+++ b/wp-content/plugins/dvk-social-sharing/includes/class-public.php
@@ -5,7 +5,9 @@ class DVKSS_Public {
 	private $plugin_file;
 	
 	/**
-	* Constructor
+	 * Constructor
+	 *
+	 * @param $plugin_file
 	*/
 	public function __construct( $plugin_file ) {
 		$this->plugin_file = $plugin_file;
diff --git a/wp-content/plugins/dvk-social-sharing/includes/functions.php b/wp-content/plugins/dvk-social-sharing/includes/functions.php
index 2def68c51..a84979048 100644
--- a/wp-content/plugins/dvk-social-sharing/includes/functions.php
+++ b/wp-content/plugins/dvk-social-sharing/includes/functions.php
@@ -36,10 +36,3 @@ function dvkss_get_options()
 
 	return $options;
 }
-
-/**
-* Load the plugin translation strings
-*/
-function dvkss_load_textdomain() {
-	load_plugin_textdomain( 'dvk-social-sharing', false, 'dvk-social-sharing/languages/' );
-}
diff --git a/wp-content/plugins/dvk-social-sharing/includes/template-functions.php b/wp-content/plugins/dvk-social-sharing/includes/template-functions.php
index ccd554887..8a1a4cefe 100644
--- a/wp-content/plugins/dvk-social-sharing/includes/template-functions.php
+++ b/wp-content/plugins/dvk-social-sharing/includes/template-functions.php
@@ -61,7 +61,7 @@ function dvk_social_sharing( $args = array() ) {
         		break;
 
                 case 'linkedin':
-        			?><a rel="external nofollow" class="ss-linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo $title; ?>&summary=&source=" target="_blank" >
+        			?><a rel="external nofollow" class="ss-linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo $title; ?>" target="_blank" >
                     <span class="ss-icon ss-icon-linkedin"></span>
                     <span class="ss-text"><?php echo $args['linkedin_text']; ?></span>
                     </a> <?php
diff --git a/wp-content/plugins/dvk-social-sharing/includes/views/settings-page.php b/wp-content/plugins/dvk-social-sharing/includes/views/settings-page.php
index 8fc7d9266..106ed94e2 100644
--- a/wp-content/plugins/dvk-social-sharing/includes/views/settings-page.php
+++ b/wp-content/plugins/dvk-social-sharing/includes/views/settings-page.php
@@ -141,7 +141,7 @@ $networks = array(
 
             <ul class="ul-square">
 				<li><a href="https://wordpress.org/support/view/plugin-reviews/dvk-social-sharing?rate=5#postform" target="_blank"><?php printf( __( 'Leave a %s review on WordPress.org', 'dvk-social-sharing' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ); ?></a></li>
-				<li><a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode('Need social sharing options for your WordPress site? This plugin is great: '); ?>&via=dvkoot&url=<?php echo urlencode('http://wordpress.org/plugins/dvk-social-sharing/'); ?>" target="_blank">Tweet about the plugin</a></li>
+				<li><a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode('Need social sharing options for your WordPress site? This plugin is great: '); ?>&via=dannyvankooten&url=<?php echo urlencode('http://wordpress.org/plugins/dvk-social-sharing/'); ?>" target="_blank">Tweet about the plugin</a></li>
 			</ul>
 
             <p>Or check out the following plugins by the same author.</p>
@@ -150,10 +150,13 @@ $networks = array(
                     <a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a><br />
                     The easiest way to connect your WordPress site to MailChimp.
                 </li>
+                <li>
+                    <a href="https://wordpress.org/plugins/koko-analytics/">Koko Analytics</a><br />
+                    Privacy-friendly analytics for your WordPress site.
+                </li>
                 <li>
                     <a href="https://wordpress.org/plugins/html-forms/">HTML Forms</a><br />
                     A fast & flexible way to add a contact form to your site.
-
                 </li>
                 <li>
                     <a href="https://wordpress.org/plugins/boxzilla/">Boxzilla Pop-Ups</a><br />
diff --git a/wp-content/plugins/dvk-social-sharing/index.php b/wp-content/plugins/dvk-social-sharing/index.php
index 525886488..55a77df0a 100644
--- a/wp-content/plugins/dvk-social-sharing/index.php
+++ b/wp-content/plugins/dvk-social-sharing/index.php
@@ -1,9 +1,9 @@
 <?php
 /*
 Plugin Name: Social Sharing (by Danny)
-Version: 1.3.2
-Plugin URI: https://dannyvankooten.com/wordpress-plugins/social-sharing-by-danny/
-Description: Adds super lightweight (no-scripts) social share buttons to your posts.
+Version: 1.3.3
+Plugin URI: https://dannyvankooten.com/wordpress-plugins/
+Description: Adds super lightweight (no scripts) social share buttons to your posts.
 Author: ibericode
 Author URI: https://dannyvankooten.com/
 Text Domain: dvk-social-sharing
@@ -11,7 +11,7 @@ Domain Path: /languages/
 License: GPL v3
 
 Social Sharing By Danny Plugin
-Copyright (C) 2013-2018, Danny van Kooten, hi@dannyvankooten.com
+Copyright (C) 2013-2020, Danny van Kooten, hi@dannyvankooten.com
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -33,11 +33,10 @@ if ( ! defined( 'ABSPATH' ) ) {
 	exit;
 }
 
-define( 'DVKSS_VERSION', '1.3.2' );
+define( 'DVKSS_VERSION', '1.3.3' );
 define( 'DVKSS_PLUGIN_DIR', dirname( __FILE__ ) );
 
 require_once DVKSS_PLUGIN_DIR . '/includes/functions.php';
-add_action( 'plugins_loaded', 'dvkss_load_textdomain' );
 
 if( ! is_admin() ) {
 
diff --git a/wp-content/plugins/dvk-social-sharing/languages/dvk-social-sharing.pot b/wp-content/plugins/dvk-social-sharing/languages/dvk-social-sharing.pot
index 10bc70138..f6fddba0f 100644
--- a/wp-content/plugins/dvk-social-sharing/languages/dvk-social-sharing.pot
+++ b/wp-content/plugins/dvk-social-sharing/languages/dvk-social-sharing.pot
@@ -1,17 +1,38 @@
-# Copyright (C) 2018 dvk-social-sharing
-# This file is distributed under the same license as the dvk-social-sharing package.
+# Copyright (C) 2019 ibericode
+# This file is distributed under the same license as the Social Sharing (by Danny) plugin.
 msgid ""
 msgstr ""
-"Project-Id-Version: dvk-social-sharing\n"
+"Project-Id-Version: Social Sharing (by Danny) 1.3.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dvk-social-sharing\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Basepath: ..\n"
-"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Poedit-SearchPathExcluded-0: *.js\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"POT-Creation-Date: 2019-12-31T11:10:26+00:00\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: WP-CLI 2.4.0\n"
+"X-Domain: dvk-social-sharing\n"
+
+#. Plugin Name of the plugin
+msgid "Social Sharing (by Danny)"
+msgstr ""
+
+#. Plugin URI of the plugin
+msgid "https://dannyvankooten.com/wordpress-plugins/"
+msgstr ""
+
+#. Description of the plugin
+msgid "Adds super lightweight (no scripts) social share buttons to your posts."
+msgstr ""
+
+#. Author of the plugin
+msgid "ibericode"
+msgstr ""
+
+#. Author URI of the plugin
+msgid "https://dannyvankooten.com/"
+msgstr ""
 
 #: includes/template-functions.php:17
 msgid "on LinkedIn"
@@ -93,10 +114,10 @@ msgstr ""
 msgid "Leave a %s review on WordPress.org"
 msgstr ""
 
-#: includes/views/settings-page.php:167
+#: includes/views/settings-page.php:170
 msgid "Looking for support?"
 msgstr ""
 
-#: includes/views/settings-page.php:168
+#: includes/views/settings-page.php:171
 msgid "Please use the %splugin support forums%s on WordPress.org."
 msgstr ""
diff --git a/wp-content/plugins/dvk-social-sharing/languages/index.php b/wp-content/plugins/dvk-social-sharing/languages/index.php
index 904a33713..dd2fec83c 100644
--- a/wp-content/plugins/dvk-social-sharing/languages/index.php
+++ b/wp-content/plugins/dvk-social-sharing/languages/index.php
@@ -1,6 +1,4 @@
-<?php
-if( ! defined("DVKSS_VERSION") ) {
-	header( 'Status: 403 Forbidden' );
-	header( 'HTTP/1.1 403 Forbidden' );
-	exit;
-}
\ No newline at end of file
+<?php
+/**
+ * Do not put language files here, they are handled by WordPress.org.
+ */
\ No newline at end of file
diff --git a/wp-content/plugins/dvk-social-sharing/readme.txt b/wp-content/plugins/dvk-social-sharing/readme.txt
index de46158dc..a0a046e11 100644
--- a/wp-content/plugins/dvk-social-sharing/readme.txt
+++ b/wp-content/plugins/dvk-social-sharing/readme.txt
@@ -3,20 +3,20 @@ Contributors: DvanKooten, ibericode
 Donate link: https://dannyvankooten.com/donate/
 Tags: social, social sharing, buttons, twitter, googleplus, facebook
 Requires at least: 3.7
-Tested up to: 4.8.2
-Stable tag: 1.3.2
+Tested up to: 5.3
+Stable tag: 1.3.3
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
-Adds very simple social sharing buttons for Twitter, Facebook and Google+ to the end of your posts.
+Adds very simple social sharing buttons for Twitter, Facebook, LinkedIn and Google+ to the end of your posts.
 
 == Description ==
 
 = Social Sharing By Danny =
 
-The simplest sharing links possible for Twitter, Facebook and Google+.
+The simplest sharing links possible for Twitter, Facebook, LinkedIn and Google+.
 
-Most social sharing plugins are too ugly, heavy, complicated or poorly coded for my liking. This plugin aims to be different. Simple, lightweight and flexible.
+Most social sharing plugins are too ugly, heavy, complicated or poorly coded for my liking. This plugin aims to be better: simple, lightweight and flexible.
 
 = No script dependencies =
 
@@ -28,7 +28,7 @@ You can have the plugin load two very small files to add icons and a pop-up func
 
 **Plugin Features**
 
-- Sharing links for Twitter, Facebook and Google+
+- Sharing links for Twitter, Facebook, LinkedIn and Google+
 - Simple icon styles with a hover effect
 - Simple script of just 600 bytes (not jQuery dependent) which will make the links open in a pop-up window.
 - A shortcode and a template function to display the buttons anywhere you want.
@@ -37,20 +37,11 @@ You can have the plugin load two very small files to add icons and a pop-up func
 
 **Translations**
 
-- English (en_US) - Danny van Kooten
-- Dutch (nl_NL) - Danny van Kooten
-- French (fr_FR) - [Said](http://www.ninapeople.com/)
-- Danish (da_DK) - [Finn Hoelgaard](http://fhn.dk/)
-- Slovenian (sl_SI) - [Domen Hrabar, Viking Marketing](http://www.vikingmarketing.si/)
-- Russian (ru_RU) - Nikita
-- Spanish (es_ES) - [Luciano A. Ferrer](http://cbasites.net/)
-- German (de_DE) - Andreas Kuhl
-- Finish (fi_FI) - [Ari-Pekka Koponen](http://versi.fi/)
-- Italian (it_IT) - Alessandro Guidi
+Is the plugin not translated into your language? You can [contribute your translations using the translation editor here on WordPress.org](https://translate.wordpress.org/projects/wp-plugins/dvk-social-sharing/).
 
-If you have created your own language pack, or have an update of an existing one, you can send [gettext PO and MO files](http://codex.wordpress.org/Translating_WordPress) to me so that I can bundle it into the social sharing plugin. You can [download the latest POT file here](http://plugins.svn.wordpress.org/dvk-social-sharing/trunk/languages/dvk-social-sharing.pot).
+**Other plugins by the same author**
 
-Enjoying this plugin? Check out other [WordPress plugins](https://dannyvankooten.com/wordpress-plugins/) by the same author
+Check out other [WordPress plugins](https://dannyvankooten.com/wordpress-plugins/) by the same author
 
 
 == Frequently Asked Questions ==
@@ -136,134 +127,140 @@ The texts for the different links. Defaults to the string set in the translation
 Have a look at the [frequently asked questions](https://wordpress.org/plugins/dvk-social-sharing/faq/) section for some examples of additional customization.
 
 == Changelog ==
-
-
-#### 1.3.2 - March 23, 2018
-
-- Minor code optimisations
-- Added `linkedin_text` shortcode argument to FAQ.
-
-
-#### 1.3.1 - October 26, 2017
-
-Misc. textual improvements.
-
-
-#### 1.3 - October 4, 2017
-
-**Additions**
-
-- Added LinkedIn.
-
-
-#### 1.2.7 - January 6, 2017
-
-**Improvements**
-
-- Use `https://` protocol for sharing links.
-- Use SVG icons.
-
-**Additions**
-
-- Add "large" icon size option.
-- Choose social network options from settings page.
-- Added Italian translations, thanks to Alessandro Guidi.
-
-
-#### 1.2.6 - March 29, 2016 
-
-**Fixes**
-
-- Apostrophes in titles not properly escaped in sharing URL's. Thanks Robin Aldenhoven!
-
-#### 1.2.5 - January 26, 2015 
-
-**Improvements**
-
-- Minor improvements to pop-up script
-
-**Additions**
-
-- Added Finnish (fi_FI) translations, thanks to [Ari-Pekka Koponen](http://versi.fi/)
-
-
-#### 1.2.4 - November 17, 2014 
-
-**Improvements**
-
-- Wrapped link text in element so it can be hidden using CSS
-- Improvements to pop-up JavaScript
-
-#### 1.2.3 - September 4, 2014 
-
-**Improvements**
-
-- Added minified scripts and option to load minified version
-- Some textual improvements
-
-#### 1.2.2 - April 30, 2014 
-
-**Fixes**
-
-- Fixed not being able to save all "auto add to .." checkboxes unchecked
-
-#### 1.2.1 - April 29, 2014 
-**Additions**
-
-- Added German translations, thanks Andreas Kuhl!
-
-**Improvements**
-
-- Wrapped non-translatable strings in translation calls.
-- Updated Dutch translations
-
-#### 1.2 - March 19, 2014 
-**Additions**
-
-- Added option to automatically add sharing options to all registered post types
-- Added Spanish translations, props to [Luciano A. Ferrer](http://cbasites.net/).
-
-**Improvements**
-
-- Disabled Pop-up JS by default until we figure out a cross-browser compatibility fix.
-
-#### 1.1 - February 19, 2014 
-- Added: Slovenian translations, thanks to [Domen Hrabar, Viking Marketing](http://www.vikingmarketing.si/)
-- Improved: direct file access security
-
-
-#### 1.0.9 - December 30, 2013 
-- Added: Danish translation, thanks to [Finn Hoelgaard](http://fhn.dk/)!
-- Added: Russian translation, thanks to Nikita!
-- Improved: Pop-up script now waits for full page load.
-
-#### 1.0.6 - December 20, 2013 
-- Improved: Pop-up JS now used addEventListener to enable multiple event listeners (like a Google Analytics plugin) attaching to the sharing links.
-
-#### 1.0.5 - December 9, 2013 
-- Added: French translations, thanks to [Said](http://www.ninapeople.com/)
-- Improved: All backend strings are now translatable
-- Improved: Prevented direct access or search engine indexing of plugin files
-- Improved: Facebook URL sharing parameters
-
-#### 1.0.4 - December 2, 2013 
-- Improved: Minified pop-up script to 480 bytes.
-- Improved: Removed image attribute from Facebook Share URL. FB will now pick up `og:image` meta tags.
-
-#### 1.0.3 - November 25, 2013 
-- Fixed: undefined index notice when saving options.
-
-#### 1.0.2 - November 20, 2013 
-
-- Added: Dutch translation
-- Added: Option to change the text that shows before the sharing links.
-
-#### 1.0.1 - November 20, 2013 
-
-- Fixed: Added settings link to plugins overview page
-- Fixed: "tweet about" option in admin now tweets about the correct plugin.
-
-#### 1.0 - November 17, 2013 
-
-- Initial release.
-
+
+
+#### 1.3.3 - Dec 31, 2019
+
+- Remove unused LinkedIn parameters.
+- Switch to WordPress.org managed translations.
+
+
+#### 1.3.2 - March 23, 2018
+
+- Minor code optimisations
+- Added `linkedin_text` shortcode argument to FAQ.
+
+
+#### 1.3.1 - October 26, 2017
+
+Misc. textual improvements.
+
+
+#### 1.3 - October 4, 2017
+
+**Additions**
+
+- Added LinkedIn.
+
+
+#### 1.2.7 - January 6, 2017
+
+**Improvements**
+
+- Use `https://` protocol for sharing links.
+- Use SVG icons.
+
+**Additions**
+
+- Add "large" icon size option.
+- Choose social network options from settings page.
+- Added Italian translations, thanks to Alessandro Guidi.
+
+
+#### 1.2.6 - March 29, 2016 
+
+**Fixes**
+
+- Apostrophes in titles not properly escaped in sharing URL's. Thanks Robin Aldenhoven!
+
+#### 1.2.5 - January 26, 2015 
+
+**Improvements**
+
+- Minor improvements to pop-up script
+
+**Additions**
+
+- Added Finnish (fi_FI) translations, thanks to [Ari-Pekka Koponen](http://versi.fi/)
+
+
+#### 1.2.4 - November 17, 2014 
+
+**Improvements**
+
+- Wrapped link text in element so it can be hidden using CSS
+- Improvements to pop-up JavaScript
+
+#### 1.2.3 - September 4, 2014 
+
+**Improvements**
+
+- Added minified scripts and option to load minified version
+- Some textual improvements
+
+#### 1.2.2 - April 30, 2014 
+
+**Fixes**
+
+- Fixed not being able to save all "auto add to .." checkboxes unchecked
+
+#### 1.2.1 - April 29, 2014 
+**Additions**
+
+- Added German translations, thanks Andreas Kuhl!
+
+**Improvements**
+
+- Wrapped non-translatable strings in translation calls.
+- Updated Dutch translations
+
+#### 1.2 - March 19, 2014 
+**Additions**
+
+- Added option to automatically add sharing options to all registered post types
+- Added Spanish translations, props to [Luciano A. Ferrer](http://cbasites.net/).
+
+**Improvements**
+
+- Disabled Pop-up JS by default until we figure out a cross-browser compatibility fix.
+
+#### 1.1 - February 19, 2014 
+- Added: Slovenian translations, thanks to [Domen Hrabar, Viking Marketing](http://www.vikingmarketing.si/)
+- Improved: direct file access security
+
+
+#### 1.0.9 - December 30, 2013 
+- Added: Danish translation, thanks to [Finn Hoelgaard](http://fhn.dk/)!
+- Added: Russian translation, thanks to Nikita!
+- Improved: Pop-up script now waits for full page load.
+
+#### 1.0.6 - December 20, 2013 
+- Improved: Pop-up JS now used addEventListener to enable multiple event listeners (like a Google Analytics plugin) attaching to the sharing links.
+
+#### 1.0.5 - December 9, 2013 
+- Added: French translations, thanks to [Said](http://www.ninapeople.com/)
+- Improved: All backend strings are now translatable
+- Improved: Prevented direct access or search engine indexing of plugin files
+- Improved: Facebook URL sharing parameters
+
+#### 1.0.4 - December 2, 2013 
+- Improved: Minified pop-up script to 480 bytes.
+- Improved: Removed image attribute from Facebook Share URL. FB will now pick up `og:image` meta tags.
+
+#### 1.0.3 - November 25, 2013 
+- Fixed: undefined index notice when saving options.
+
+#### 1.0.2 - November 20, 2013 
+
+- Added: Dutch translation
+- Added: Option to change the text that shows before the sharing links.
+
+#### 1.0.1 - November 20, 2013 
+
+- Fixed: Added settings link to plugins overview page
+- Fixed: "tweet about" option in admin now tweets about the correct plugin.
+
+#### 1.0 - November 17, 2013 
+
+- Initial release.
+
-- 
GitLab