User Submitted Posts - Version 20190502

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

Download this release

Release Info

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

Code changes from version 20190501 to 20190502

images/250x250-ga-pro.jpg ADDED
Binary file
library/shortcode-login.php CHANGED
@@ -105,7 +105,7 @@ function usp_login_form() {
105
 
106
  <?php endif; ?>
107
 
108
- <form method="post" action="<?php echo home_url(); ?>/wp-login.php">
109
  <div class="username">
110
  <label for="log"><?php esc_html_e('Username', 'usp-pro'); ?>: </label>
111
  <input name="log" id="log" type="text" value="">
@@ -130,7 +130,7 @@ function usp_login_form() {
130
  <div id="tab2_login" class="tab_content">
131
  <h3><?php esc_html_e('Register for this site!', 'usp-pro'); ?></h3>
132
  <p><?php esc_html_e('Sign up now for the good stuff.', 'usp-pro'); ?></p>
133
- <form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>">
134
  <div class="username">
135
  <label for="user_login_register"><?php esc_html_e('Username', 'usp-pro'); ?>: </label>
136
  <input name="user_login" id="user_login_register" type="text" value="">
@@ -150,7 +150,7 @@ function usp_login_form() {
150
  <div id="tab3_login" class="tab_content">
151
  <h3><?php esc_html_e('Lose something?', 'usp-pro'); ?></h3>
152
  <p><?php esc_html_e('Enter your username or email to reset your password.', 'usp-pro'); ?></p>
153
- <form method="post" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>">
154
  <div class="username">
155
  <label for="user_login_password"><?php esc_html_e('Username or Email', 'usp-pro'); ?>: </label>
156
  <input name="user_login" id="user_login_password" type="text" value="">
105
 
106
  <?php endif; ?>
107
 
108
+ <form method="post" action="<?php echo wp_login_url(); ?>">
109
  <div class="username">
110
  <label for="log"><?php esc_html_e('Username', 'usp-pro'); ?>: </label>
111
  <input name="log" id="log" type="text" value="">
130
  <div id="tab2_login" class="tab_content">
131
  <h3><?php esc_html_e('Register for this site!', 'usp-pro'); ?></h3>
132
  <p><?php esc_html_e('Sign up now for the good stuff.', 'usp-pro'); ?></p>
133
+ <form method="post" action="<?php echo wp_registration_url(); ?>">
134
  <div class="username">
135
  <label for="user_login_register"><?php esc_html_e('Username', 'usp-pro'); ?>: </label>
136
  <input name="user_login" id="user_login_register" type="text" value="">
150
  <div id="tab3_login" class="tab_content">
151
  <h3><?php esc_html_e('Lose something?', 'usp-pro'); ?></h3>
152
  <p><?php esc_html_e('Enter your username or email to reset your password.', 'usp-pro'); ?></p>
153
+ <form method="post" action="<?php echo wp_lostpassword_url(); ?>">
154
  <div class="username">
155
  <label for="user_login_password"><?php esc_html_e('Username or Email', 'usp-pro'); ?>: </label>
156
  <input name="user_login" id="user_login_password" type="text" value="">
library/support-panel.php CHANGED
@@ -36,6 +36,9 @@ $array = array(
36
  8 => '<a target="_blank" rel="noopener noreferrer" href="https://htaccessbook.com/" title="Optimize and Secure with .htaccess">
37
  <img width="125" height="125" src="'. $plugin_url .'images/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy" />
38
  </a>',
 
 
 
39
 
40
  );
41
 
36
  8 => '<a target="_blank" rel="noopener noreferrer" href="https://htaccessbook.com/" title="Optimize and Secure with .htaccess">
37
  <img width="125" height="125" src="'. $plugin_url .'images/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy" />
38
  </a>',
39
+ 9 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ga-google-analytics-pro/" title="Connect Google Analytics to WordPress">
40
+ <img width="125" height="125" src="'. $plugin_url .'images/250x250-ga-pro.jpg" alt="GA Google Analytics Pro" />
41
+ </a>',
42
 
43
  );
44
 
readme.txt CHANGED
@@ -10,9 +10,9 @@ Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.2
13
- Stable tag: 20190501
14
- Version: 20190501
15
- Requires PHP: 5.3
16
  Text Domain: usp
17
  Domain Path: /languages
18
  License: GPL v2 or later
@@ -257,7 +257,7 @@ Then, paste those two files into a directory named `/usp/` in your theme:
257
  /wp-content/themes/your-theme/usp/usp.css
258
  /wp-content/themes/your-theme/usp/submission-form.php
259
 
260
- Lastly, visit the plugin settings and change "Form style" to "Custom Form + CSS". You now may customize the two files as desired; they will not be overwritten when the plugin is updated.
261
 
262
  Alternately, you can set the option "Form style" to "HTML5 Form + Disable CSS" to use the default USP form along with your own CSS. FYI: here is a list of [USP CSS selectors](https://m0n.co/e).
263
 
@@ -709,6 +709,14 @@ Links, tweets and likes also appreciated. Thanks! :)
709
  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!
710
 
711
 
 
 
 
 
 
 
 
 
712
  **20190501**
713
 
714
  * Fixes security issue with uploaded images on Apache + FastCGI
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.2
13
+ Stable tag: 20190502
14
+ Version: 20190502
15
+ Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
18
  License: GPL v2 or later
257
  /wp-content/themes/your-theme/usp/usp.css
258
  /wp-content/themes/your-theme/usp/submission-form.php
259
 
260
+ Lastly, visit the plugin settings and change "Form style" to "Custom Form + CSS". You now may customize the two files as desired; they will not be overwritten when the plugin is updated. For help with making basic changes to the custom form, check out the [USP FAQs](https://perishablepress.com/faqs-user-submitted-posts/#customize-form) at Perishable Press.
261
 
262
  Alternately, you can set the option "Form style" to "HTML5 Form + Disable CSS" to use the default USP form along with your own CSS. FYI: here is a list of [USP CSS selectors](https://m0n.co/e).
263
 
709
  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!
710
 
711
 
712
+ **20190502**
713
+
714
+ * Bumps [minimum PHP version](https://codex.wordpress.org/Template:Server_requirements) to 5.6.20
715
+ * Improves form posting for Login/Register form
716
+ * Tweaks plugin settings screen content
717
+ * Updates default translation template
718
+ * Tests on WordPress 5.2
719
+
720
  **20190501**
721
 
722
  * Fixes security issue with uploaded images on Apache + FastCGI
user-submitted-posts.php CHANGED
@@ -10,9 +10,9 @@
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.2
13
- Stable tag: 20190501
14
- Version: 20190501
15
- Requires PHP: 5.3
16
  Text Domain: usp
17
  Domain Path: /languages
18
  License: GPL v2 or later
@@ -40,7 +40,7 @@ if (!defined('ABSPATH')) die();
40
 
41
 
42
  define('USP_WP_VERSION', '4.1');
43
- define('USP_VERSION', '20190501');
44
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
  define('USP_PATH', plugin_basename(__FILE__));
46
 
@@ -906,7 +906,7 @@ function usp_attach_images($post_id, $newPost, $files, $file_count) {
906
 
907
  $append = ($file_count > 1) ? '-'. $i : '';
908
 
909
- $file_name = basename(sanitize_file_name($files['name'][$i]));
910
 
911
  $parts = pathinfo($file_name);
912
 
10
  Contributors: specialk
11
  Requires at least: 4.1
12
  Tested up to: 5.2
13
+ Stable tag: 20190502
14
+ Version: 20190502
15
+ Requires PHP: 5.6.20
16
  Text Domain: usp
17
  Domain Path: /languages
18
  License: GPL v2 or later
40
 
41
 
42
  define('USP_WP_VERSION', '4.1');
43
+ define('USP_VERSION', '20190502');
44
  define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
  define('USP_PATH', plugin_basename(__FILE__));
46
 
906
 
907
  $append = ($file_count > 1) ? '-'. $i : '';
908
 
909
+ $file_name = sanitize_file_name(basename($files['name'][$i]));
910
 
911
  $parts = pathinfo($file_name);
912