BUG: PDFs can be generated even if job is trashed
-
We had a customer complain, that an old job still could be found on google and by clicking on the link a PDF was generated.
Besides the problem, that the link still exists in google, the bigger issue is the PDF generating. The job was on draft and later trashed, but nonetheless the PDF was generated.
The plugin doesn’t check for the post status on PDF export. Simple solution would be to put one line of code in the class-job-postings.php around line 595:
if(get_post_status($post_id) != "publish") return;
With this the PDF will only be created, when the post is published.
- You must be logged in to reply to this topic.