Making WordPress.org

Changeset 8446


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

Jobs: Show error message if job poster provides an invalid URL for their online form.

File:
1 edited

Legend:

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

    r8445 r8446  
    718718                } elseif ( 'web' == $_POST['howtoapply_method'] && is_email( $_POST['howtoapply'] ) ) {
    719719                    $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' );
     720                } elseif ( 'web' == $_POST['howtoapply_method'] && ! wp_http_validate_url( esc_url_raw( $_POST['howtoapply'] ) ) ) {
     721                    $has_errors = __( 'The provided "How to Apply" online form address is not a proper URL.', 'jobswp' );
    720722                }
    721723            endif;
Note: See TracChangeset for help on using the changeset viewer.