PluginProbe
User Submitted Posts – Enable Users to Submit Posts from the Front End / 20260916
User Submitted Posts – Enable Users to Submit Posts from the Front End v20260916
20260916 20260810 20260608 20230806 20230809 20230811 20230901 20230902 20230914 20231102 20240319 20240516 20240703 20241026 20250327 20250329 20251121 20251210 20260110 20260113 20260207 20260217 20260407 20260422 trunk All 59 releases
← All changes | user-submitted-posts.php +12 -10 2026020720260916 View file →
@@ -8,11 +8,11 @@
8 8 Author URI: https://plugin-planet.com/
9 9 Donate link: https://monzillamedia.com/donate.html
10 10 Contributors: specialk
11 11 Requires at least: 4.7
12 - Tested up to: 6.9
13 - Stable tag: 20260207
14 - Version: 20260207
12 + Tested up to: 7.1
13 + Stable tag: 20260916
14 + Version: 20260916
15 15 Requires PHP: 5.6.20
16 16 Text Domain: usp
17 17 Domain Path: /languages
18 18 License: GPL v2 or later
@@ -35,9 +35,9 @@
35 35
36 36 if (!defined('ABSPATH')) die();
37 37
38 38 if (!defined('USP_WP_VERSION')) define('USP_WP_VERSION', '4.7');
39 -if (!defined('USP_VERSION')) define('USP_VERSION', '20260207');
39 +if (!defined('USP_VERSION')) define('USP_VERSION', '20260916');
40 40 if (!defined('USP_PLUGIN')) define('USP_PLUGIN', 'User Submitted Posts');
41 41 if (!defined('USP_FILE')) define('USP_FILE', plugin_basename(__FILE__));
42 42 if (!defined('USP_PATH')) define('USP_PATH', plugin_dir_path(__FILE__));
43 43 if (!defined('USP_URL')) define('USP_URL', plugin_dir_url (__FILE__));
@@ -119,10 +119,10 @@
119 119 deactivate_plugins(USP_FILE);
120 120
121 121 $msg = '<strong>'. USP_PLUGIN .'</strong> ';
122 122 $msg .= esc_html__('requires WordPress ', 'usp') . USP_WP_VERSION;
123 - $msg .= esc_html__(' or higher, and has been deactivated! ', 'usp');
124 - $msg .= esc_html__('Please return to the', 'usp') .' <a href="'. admin_url() .'">';
123 + $msg .= esc_html__(' or higher, and has been deactivated. ', 'usp');
124 + $msg .= esc_html__('Please return to the', 'usp') .' <a href="'. admin_url('plugins.php') .'">';
125 125 $msg .= esc_html__('WordPress Admin Area', 'usp') .'</a> ';
126 126 $msg .= esc_html__('to upgrade WordPress and try again.', 'usp');
127 127
128 128 wp_die($msg);
@@ -313,8 +313,10 @@
313 313 if (strpos($category, ',') !== false) {
314 314
315 315 $cats = array_map('intval', array_map('trim', explode(',', $category)));
316 316
317 + $cats = array_intersect($cats, $allowed_cats);
318 +
317 319 } else {
318 320
319 321 $cats = intval($category);
320 322
@@ -693,12 +695,12 @@
693 695 if (!empty($name) || !empty($email) || !empty($url) || !empty($ip)) {
694 696
695 697 echo '<ul style="margin-left:24px;list-style:square outside;">';
696 698
697 - if (!empty($name)) echo '<li>'. esc_html__('Submitter Name: ', 'usp') . $name .'</li>';
698 - if (!empty($email)) echo '<li>'. esc_html__('Submitter Email: ', 'usp') . $email .'</li>';
699 - if (!empty($url)) echo '<li>'. esc_html__('Submitter URL: ', 'usp') . $url .'</li>';
700 - if (!empty($ip) && !$usp_options['disable_ip_tracking']) echo '<li>'. esc_html__('Submitter IP: ', 'usp') . $ip .'</li>';
699 + if (!empty($name)) echo '<li>'. esc_html__('Submitter Name: ', 'usp') . esc_html($name) .'</li>';
700 + if (!empty($email)) echo '<li>'. esc_html__('Submitter Email: ', 'usp') . esc_html($email) .'</li>';
701 + if (!empty($url)) echo '<li>'. esc_html__('Submitter URL: ', 'usp') . esc_html($url) .'</li>';
702 + if (!empty($ip) && !$usp_options['disable_ip_tracking']) echo '<li>'. esc_html__('Submitter IP: ', 'usp') . esc_html($ip) .'</li>';
701 703
702 704 echo '</ul>';
703 705
704 706 }