| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | |
| 35 | 35 | if ($file === USP_FILE) { |
| 36 | 36 | |
| 37 | 37 | $pro_href = 'https://plugin-planet.com/usp-pro/'; |
| 38 | - $pro_title = esc_attr__('Get USP Pro for unlimited forms!', 'usp'); | |
| 39 | - $pro_text = esc_html__('Go Pro', 'usp'); | |
| 40 | - $pro_style = 'font-weight:bold;'; | |
| 38 | + $pro_title = esc_attr__('Get USP Pro for unlimited forms', 'usp'); | |
| 39 | + $pro_text = esc_html__('Go Pro', 'usp'); | |
| 40 | + $pro_style = 'padding:2px 4px;font-weight:bold;border:1px solid #00CCCC;border-radius:2px;background-color:#fff;'; | |
| 41 | 41 | |
| 42 | 42 | $pro = '<a target="_blank" rel="noopener noreferrer" href="'. $pro_href .'" title="'. $pro_title .'" style="'. $pro_style .'">'. $pro_text .'</a>'; |
| 43 | 43 | |
| 44 | 44 | array_unshift($links, $pro); |
| @@ -55,13 +55,13 @@ | ||
| 55 | 55 | function add_usp_links($links, $file) { |
| 56 | 56 | |
| 57 | 57 | if ($file === USP_FILE) { |
| 58 | 58 | |
| 59 | - $home_href = 'https://perishablepress.com/user-submitted-posts/'; | |
| 60 | - $home_title = esc_attr__('Plugin Homepage', 'usp'); | |
| 61 | - $home_text = esc_html__('Homepage', 'usp'); | |
| 59 | + $home_href = 'https://plugin-planet.com/usp-pro/'; | |
| 60 | + $home_title = esc_attr__('Get USP Pro for unlimited forms', 'usp'); | |
| 61 | + $home_text = esc_html__('Go Pro', 'usp'); | |
| 62 | 62 | |
| 63 | - $links[] = '<a target="_blank" rel="noopener noreferrer" href="'. $home_href .'" title="'. $home_title .'">'. $home_text .'</a>'; | |
| 63 | + $links[] = '<strong><a target="_blank" rel="noopener noreferrer" href="'. $home_href .'" title="'. $home_title .'">'. $home_text .'</a></strong>'; | |
| 64 | 64 | |
| 65 | 65 | $rate_href = 'https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post'; |
| 66 | 66 | $rate_title = esc_attr__('Give USP a 5-star rating at WordPress.org', 'usp'); |
| 67 | 67 | $rate_text = esc_html__('Rate this plugin »', 'usp'); |
| @@ -985,8 +985,9 @@ | ||
| 985 | 985 | |
| 986 | 986 | function usp_delete_plugin_options() { |
| 987 | 987 | |
| 988 | 988 | delete_option('usp_options'); |
| 989 | + delete_option('user-submitted-posts-dismiss-notice'); | |
| 989 | 990 | |
| 990 | 991 | } |
| 991 | 992 | |
| 992 | 993 | |
| @@ -1258,12 +1259,14 @@ | ||
| 1258 | 1259 | ?> |
| 1259 | 1260 | |
| 1260 | 1261 | <div class="notice notice-success notice-lh"> |
| 1261 | 1262 | <p> |
| 1262 | - <strong><?php esc_html_e('⭐ SAVE 30% on USP Pro!', 'usp'); ?></strong> | |
| 1263 | - <a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/"><?php esc_html_e('Build unlimited front-end forms', 'usp'); ?></a>. | |
| 1264 | - <?php esc_html_e('Lifetime licenses available.', 'usp'); ?> | |
| 1265 | - <?php esc_html_e('Apply code', 'usp'); ?> <code>USPPRO</code> <?php esc_html_e('at checkout. Sale ends 3/28/2026.', 'usp'); ?> | |
| 1263 | + <strong><?php esc_html_e('☀️ Summer Sale!', 'usp'); ?></strong> | |
| 1264 | + <?php esc_html_e('Take 35% OFF any of our', 'usp'); ?> | |
| 1265 | + <a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/"><?php esc_html_e('Pro WordPress plugins', 'usp'); ?></a> | |
| 1266 | + <?php esc_html_e('and', 'usp'); ?> | |
| 1267 | + <a target="_blank" rel="noopener noreferrer" href="https://books.perishablepress.com/"><?php esc_html_e('books', 'usp'); ?></a>. | |
| 1268 | + <?php esc_html_e('Apply code', 'usp'); ?> <code>SUMMER</code> <?php esc_html_e('at checkout. Sale ends 9/20/2026.', 'usp'); ?> | |
| 1266 | 1269 | <?php echo usp_dismiss_notice_link(); ?> |
| 1267 | 1270 | </p> |
| 1268 | 1271 | </div> |
| 1269 | 1272 | |
| @@ -1341,9 +1344,9 @@ | ||
| 1341 | 1344 | } |
| 1342 | 1345 | |
| 1343 | 1346 | function usp_check_date_expired() { |
| 1344 | 1347 | |
| 1345 | - $expires = apply_filters('usp_check_date_expired', '2026-03-28'); | |
| 1348 | + $expires = apply_filters('usp_check_date_expired', '2026-09-20'); | |
| 1346 | 1349 | |
| 1347 | 1350 | return (new DateTime() > new DateTime($expires)) ? true : false; |
| 1348 | 1351 | |
| 1349 | 1352 | } |