Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
895 stars 366 forks source link

Bound listing duration between 1 and 100 years, or no expiration #2695

Closed thedebian closed 6 months ago

thedebian commented 6 months ago

Fixes #2690

Changes Proposed in this Pull Request

This PR fixes an issue with the listing duration being a free text setting. It is now a number, bound from 1 to 100 years. If a number if below or above, it will be reset to "no expiration". It's also adding a placeholder "No limit" to the field.

Testing Instructions


Plugin build for 008c0fbb1105b54c53cac9be799d70300cdb4b08
📦 Download plugin zip
▶️ Open in playground
thedebian commented 6 months ago

Looks good. Could the same issue happen with the 'Listing Limit' setting? Looks like I can even save it as a string:

Good catch, I'll check other settings and update them too 👍