User Submitted Posts - Version 20200911

Version Description

To upgrade User Submitted Posts, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically.

Important! The /custom/ directory is deprecated. If you are using a custom form template, please move it to /wp-content/your-theme/usp/. For more information, check out the "Custom Submission Form" section under Installation.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database. Submitted posts are NOT removed if you deactivate the plugin, reset default options, or uninstall the plugins; that is, all submitted posts (and any attached meta data) must be removed manually.

Download this release

Release Info

Developer specialk
Plugin Icon 128x128 User Submitted Posts
Version 20200911
Comparing to
See all releases

Code changes from version 20200906 to 20200911

readme.txt CHANGED
@@ -10,8 +10,8 @@ Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.5
13
- Stable tag: 20200906
14
- Version: 20200906
15
  Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
@@ -738,6 +738,11 @@ Links, tweets and likes also appreciated. Thanks! :)
738
  If you like USP, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
739
 
740
 
 
 
 
 
 
741
  **20200906**
742
 
743
  * Fixes JavaScript error with select/dropdown fields
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.5
13
+ Stable tag: 20200911
14
+ Version: 20200911
15
  Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
738
  If you like USP, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
739
 
740
 
741
+ **20200911**
742
+
743
+ * Fixes bug where line breaks and new lines were not saved
744
+ * Tests on WordPress 5.5 + 5.6 (alpha)
745
+
746
  **20200906**
747
 
748
  * Fixes JavaScript error with select/dropdown fields
resources/jquery.usp.core.js CHANGED
@@ -79,6 +79,7 @@ jQuery(document).ready(function($) {
79
  var name = $(this).attr('id');
80
  var cookie = Cookies.get(name);
81
  if (cookie) {
 
82
  if (type == 'checkbox') {
83
  if (cookie == 1) {
84
  $(this).val(1).prop('checked', 1);
@@ -103,6 +104,7 @@ jQuery(document).ready(function($) {
103
  }
104
  $(this).on('change', function() {
105
  if (type == 'checkbox') {
 
106
  if ($(this).is(':checked')) {
107
  var value = 1;
108
  $(this).val(1).prop('checked', 1);
@@ -113,7 +115,7 @@ jQuery(document).ready(function($) {
113
  } else {
114
  var value = $(this).val();
115
  }
116
- Cookies.set(name, value, { path: '/', expires: 365000, sameSite: 'strict' });
117
  });
118
  });
119
  }
79
  var name = $(this).attr('id');
80
  var cookie = Cookies.get(name);
81
  if (cookie) {
82
+ cookie = decodeURIComponent(cookie);
83
  if (type == 'checkbox') {
84
  if (cookie == 1) {
85
  $(this).val(1).prop('checked', 1);
104
  }
105
  $(this).on('change', function() {
106
  if (type == 'checkbox') {
107
+
108
  if ($(this).is(':checked')) {
109
  var value = 1;
110
  $(this).val(1).prop('checked', 1);
115
  } else {
116
  var value = $(this).val();
117
  }
118
+ Cookies.set(name, encodeURIComponent(value), { path: '/', expires: 365000, sameSite: 'strict' });
119
  });
120
  });
121
  }
user-submitted-posts.php CHANGED
@@ -10,8 +10,8 @@
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.5
13
- Stable tag: 20200906
14
- Version: 20200906
15
  Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
@@ -40,7 +40,7 @@ if (!defined('ABSPATH')) die();
40
 
41
 
42
  define('USP_WP_VERSION', '4.1');
43
- define('USP_VERSION', '20200906');
44
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
  define('USP_PATH', plugin_basename(__FILE__));
46
 
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.5
13
+ Stable tag: 20200911
14
+ Version: 20200911
15
  Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
40
 
41
 
42
  define('USP_WP_VERSION', '4.1');
43
+ define('USP_VERSION', '20200911');
44
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
  define('USP_PATH', plugin_basename(__FILE__));
46