User Submitted Posts - Version 20170531

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.

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 must be removed manually.

Download this release

Release Info

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

Code changes from version 20170326 to 20170531

readme.txt CHANGED
@@ -10,8 +10,8 @@ Donate link: https://m0n.co/donate
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 4.8
13
- Stable tag: 20170326
14
- Version: 20170326
15
  Text Domain: usp
16
  Domain Path: /languages
17
  License: GPL v2 or later
@@ -119,7 +119,7 @@ Plus much more! Too many features to list them all :)
119
 
120
  User Submitted Posts supports translation into any language. Current translations include:
121
 
122
- * ar_AR : Arabic (Argentina)
123
  * de_DE : German
124
  * es_ES : Spanish (Spain)
125
  * fa_IR : Persian
@@ -597,6 +597,12 @@ Links, tweets and likes also appreciated. Thanks! :)
597
 
598
  == Changelog ==
599
 
 
 
 
 
 
 
600
  **20170326**
601
 
602
  * Adds Google reCAPTCHA (anti-spam) field
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 4.8
13
+ Stable tag: 20170531
14
+ Version: 20170531
15
  Text Domain: usp
16
  Domain Path: /languages
17
  License: GPL v2 or later
119
 
120
  User Submitted Posts supports translation into any language. Current translations include:
121
 
122
+ * ar_AR : Arabic (Morocco)
123
  * de_DE : German
124
  * es_ES : Spanish (Spain)
125
  * fa_IR : Persian
597
 
598
  == Changelog ==
599
 
600
+ **20170531**
601
+
602
+ * Fixes bug with Google reCAPTCHA
603
+ * Adds localization to featured image variable
604
+ * Further tests on WordPress 4.8 (beta)
605
+
606
  **20170326**
607
 
608
  * Adds Google reCAPTCHA (anti-spam) field
user-submitted-posts.php CHANGED
@@ -10,8 +10,8 @@
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 4.8
13
- Stable tag: 20170326
14
- Version: 20170326
15
  Text Domain: usp
16
  Domain Path: /languages
17
  License: GPL v2 or later
@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) die();
36
 
37
 
38
  define('USP_WP_VERSION', '4.1');
39
- define('USP_VERSION', '20170326');
40
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
41
  define('USP_PATH', plugin_basename(__FILE__));
42
 
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 4.8
13
+ Stable tag: 20170531
14
+ Version: 20170531
15
  Text Domain: usp
16
  Domain Path: /languages
17
  License: GPL v2 or later
36
 
37
 
38
  define('USP_WP_VERSION', '4.1');
39
+ define('USP_VERSION', '20170531');
40
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
41
  define('USP_PATH', plugin_basename(__FILE__));
42
 
views/submission-form-alt.php CHANGED
@@ -35,6 +35,8 @@ else :
35
  $usp_recaptcha_public = (isset($usp_options['recaptcha_public']) && !empty($usp_options['recaptcha_public'])) ? true : false;
36
  $usp_recaptcha_private = (isset($usp_options['recaptcha_private']) && !empty($usp_options['recaptcha_private'])) ? true : false;
37
 
 
 
38
  if (isset($_GET['success']) && $_GET['success'] == '1') {
39
 
40
  echo '<div id="usp-success-message">'. $usp_options['success-message'] .'</div>';
@@ -136,14 +138,14 @@ else :
136
  <?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
137
 
138
  <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
139
- <div class="g-recaptcha" data-sitekey="6LcD3-4SAAAAAD2UfHrxo8NXhQ9lTlpOVKnGIPVy"></div>
140
 
141
  <?php } if ($usp_options['usp_images'] == 'show') { ?>
142
  <?php if ($usp_options['max-images'] !== 0) { ?>
143
 
144
  <fieldset class="usp-images">
145
  <label for="user-submitted-image"><?php esc_html_e('Upload an Image', 'usp'); ?></label>
146
- <div id="usp-upload-message"><?php echo $usp_options['upload-message']; ?></div>
147
  <div id="user-submitted-image">
148
  <?php // upload files
149
 
35
  $usp_recaptcha_public = (isset($usp_options['recaptcha_public']) && !empty($usp_options['recaptcha_public'])) ? true : false;
36
  $usp_recaptcha_private = (isset($usp_options['recaptcha_private']) && !empty($usp_options['recaptcha_private'])) ? true : false;
37
 
38
+ $usp_data_sitekey = isset($usp_options['recaptcha_public']) ? $usp_options['recaptcha_public'] : '';
39
+
40
  if (isset($_GET['success']) && $_GET['success'] == '1') {
41
 
42
  echo '<div id="usp-success-message">'. $usp_options['success-message'] .'</div>';
138
  <?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
139
 
140
  <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
141
+ <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
142
 
143
  <?php } if ($usp_options['usp_images'] == 'show') { ?>
144
  <?php if ($usp_options['max-images'] !== 0) { ?>
145
 
146
  <fieldset class="usp-images">
147
  <label for="user-submitted-image"><?php esc_html_e('Upload an Image', 'usp'); ?></label>
148
+ <div id="usp-upload-message"><?php esc_html_e($usp_options['upload-message'], 'usp'); ?></div>
149
  <div id="user-submitted-image">
150
  <?php // upload files
151
 
views/submission-form.php CHANGED
@@ -32,6 +32,8 @@ else :
32
  $usp_recaptcha_public = (isset($usp_options['recaptcha_public']) && !empty($usp_options['recaptcha_public'])) ? true : false;
33
  $usp_recaptcha_private = (isset($usp_options['recaptcha_private']) && !empty($usp_options['recaptcha_private'])) ? true : false;
34
 
 
 
35
  ?>
36
 
37
  <!-- User Submitted Posts @ https://m0n.co/usp -->
@@ -131,14 +133,14 @@ else :
131
  <?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
132
 
133
  <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
134
- <div class="g-recaptcha" data-sitekey="6LcD3-4SAAAAAD2UfHrxo8NXhQ9lTlpOVKnGIPVy"></div>
135
 
136
  <?php } if ($usp_options['usp_images'] == 'show') { ?>
137
  <?php if ($usp_options['max-images'] !== 0) { ?>
138
 
139
  <fieldset class="usp-images">
140
  <label for="user-submitted-image"><?php esc_html_e('Upload an Image', 'usp'); ?></label>
141
- <div id="usp-upload-message"><?php echo $usp_options['upload-message']; ?></div>
142
  <div id="user-submitted-image">
143
  <?php // upload files
144
 
32
  $usp_recaptcha_public = (isset($usp_options['recaptcha_public']) && !empty($usp_options['recaptcha_public'])) ? true : false;
33
  $usp_recaptcha_private = (isset($usp_options['recaptcha_private']) && !empty($usp_options['recaptcha_private'])) ? true : false;
34
 
35
+ $usp_data_sitekey = isset($usp_options['recaptcha_public']) ? $usp_options['recaptcha_public'] : '';
36
+
37
  ?>
38
 
39
  <!-- User Submitted Posts @ https://m0n.co/usp -->
133
  <?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
134
 
135
  <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
136
+ <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
137
 
138
  <?php } if ($usp_options['usp_images'] == 'show') { ?>
139
  <?php if ($usp_options['max-images'] !== 0) { ?>
140
 
141
  <fieldset class="usp-images">
142
  <label for="user-submitted-image"><?php esc_html_e('Upload an Image', 'usp'); ?></label>
143
+ <div id="usp-upload-message"><?php esc_html_e($usp_options['upload-message'], 'usp'); ?></div>
144
  <div id="user-submitted-image">
145
  <?php // upload files
146