Making WordPress.org


Ignore:
Timestamp:
03/11/2019 10:38:25 PM (7 years ago)
Author:
coffee2code
Message:

Jobs: Show error message if job poster provides an email address when they indicated they want job seekers to contact them via a web form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp.php

    r8409 r8445  
    716716                    $has_errors = __( 'The provided "How to Apply" email address is not a proper email address.', 'jobswp' );
    717717                    unset( $_POST['howtoapply'] );
     718                } elseif ( 'web' == $_POST['howtoapply_method'] && is_email( $_POST['howtoapply'] ) ) {
     719                    $has_errors = __( 'The provided "How to Apply" online form address appear to be an email address. Either supply a website address or change the dropdown to "Email Address".', 'jobswp' );
    718720                }
    719721            endif;
Note: See TracChangeset for help on using the changeset viewer.