Changeset 2805086
- Timestamp:
- 10/26/2022 03:22:59 PM (22 months ago)
- Location:
- wp-job-manager
- Files:
-
- 2 added
- 20 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-job-manager/tags/1.38.1/changelog.txt
r2780949 r2805086 1 2 3 4 5 6 1 7 = 1.38.0 = 2 8 * Enhancement: Add remote position to filtering (@tripflex) -
wp-job-manager/tags/1.38.1/includes/3rd-party/3rd-party.php
r2100476 r2805086 14 14 require_once JOB_MANAGER_PLUGIN_DIR . '/includes/3rd-party/rp4wp.php'; 15 15 require_once JOB_MANAGER_PLUGIN_DIR . '/includes/3rd-party/wp-all-import.php'; 16 -
wp-job-manager/tags/1.38.1/includes/class-wp-job-manager-shortcodes.php
r2780619 r2805086 96 96 */ 97 97 public function handle_redirects() { 98 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Input is used safely. 99 if ( ! get_current_user_id() || ( ! empty( $_REQUEST['job_id'] ) && job_manager_user_can_edit_job( intval( $_REQUEST['job_id'] ) ) ) ) { 98 $submit_job_form_page_id = get_option( 'job_manager_submit_job_form_page_id' ); 99 100 if ( ! is_user_logged_in() || ! is_page( $submit_job_form_page_id ) || 101 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Input is used safely. 102 ( ! empty( $_REQUEST['job_id'] ) && job_manager_user_can_edit_job( intval( $_REQUEST['job_id'] ) ) ) 103 ) { 100 104 return; 101 105 } 102 106 103 $submit_job_form_page_id = get_option( 'job_manager_submit_job_form_page_id' ); 104 $submission_limit = get_option( 'job_manager_submission_limit' ); 105 $job_count = job_manager_count_user_job_listings(); 107 $submission_limit = get_option( 'job_manager_submission_limit' ); 108 $job_count = job_manager_count_user_job_listings(); 106 109 107 110 if ( … … 109 112 && $submission_limit 110 113 && $job_count >= $submission_limit 111 && is_page( $submit_job_form_page_id )112 114 ) { 113 115 $employer_dashboard_page_id = get_option( 'job_manager_job_dashboard_page_id' ); -
wp-job-manager/tags/1.38.1/includes/forms/class-wp-job-manager-form-submit-job.php
r2780619 r2805086 516 516 if ( ! $this->should_application_field_skip_email_url_validation() && isset( $values['job']['application'] ) ) { 517 517 $allowed_application_method = get_option( 'job_manager_allowed_application_method', '' ); 518 518 519 519 520 $is_valid = true; … … 526 527 } 527 528 528 switch ( $allowed_application_method ) { 529 case 'email': 530 if ( ! $is_valid || ! is_email( $values['job']['application'] ) ) { 531 throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) ); 532 } 533 break; 534 case 'url': 535 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 536 throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) ); 537 } 538 break; 539 default: 540 if ( ! is_email( $values['job']['application'] ) ) { 529 if ( $application_required || ! empty( $values['job']['application'] ) ) { 530 switch ( $allowed_application_method ) { 531 case 'email': 532 if ( ! $is_valid || ! is_email( $values['job']['application'] ) ) { 533 throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) ); 534 } 535 break; 536 case 'url': 541 537 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 542 throw new Exception( __( 'Please enter a valid application email address orURL', 'wp-job-manager' ) );538 throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) ); 543 539 } 544 } 545 break; 540 break; 541 default: 542 if ( ! is_email( $values['job']['application'] ) ) { 543 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 544 throw new Exception( __( 'Please enter a valid application email address or URL', 'wp-job-manager' ) ); 545 } 546 } 547 break; 548 } 546 549 } 547 550 } -
wp-job-manager/tags/1.38.1/includes/helper/class-wp-job-manager-helper.php
r2166302 r2805086 512 512 * @param string $email 513 513 */ 514 p rivatefunction activate_licence( $product_slug, $licence_key, $email ) {514 p function activate_licence( $product_slug, $licence_key, $email ) { 515 515 $response = $this->api->activate( 516 516 [ -
wp-job-manager/tags/1.38.1/includes/helper/views/html-licences.php
r2745746 r2805086 45 45 echo '<div class="notice inline notice-' . esc_attr( $message['type'] ) . '"><p>' . wp_kses_post( $message['message'] ) . '</p></div>'; 46 46 } 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 47 84 ?> 48 <form method="post">49 <?php wp_nonce_field( 'wpjm-manage-licence' ); ?>50 <?php51 if ( ! empty( $licence['licence_key'] ) && ! empty( $licence['email'] ) ) {52 ?>53 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_action" name="action" value="deactivate"/>54 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_plugin" name="product_slug" value="<?php echo esc_attr( $product_slug ); ?>"/>55 56 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key"><?php esc_html_e( 'License', 'wp-job-manager' ); ?>:57 <input type="text" disabled="disabled" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key" name="licence_key" placeholder="XXXX-XXXX-XXXX-XXXX" value="<?php echo esc_attr( $licence['licence_key'] ); ?>"/>58 </label>59 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email"><?php esc_html_e( 'Email', 'wp-job-manager' ); ?>:60 <input type="email" disabled="disabled" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email" name="email" placeholder="<?php esc_attr_e( 'Email address', 'wp-job-manager' ); ?>" value="<?php echo esc_attr( $licence['email'] ); ?>"/>61 </label>62 63 <input type="submit" class="button" name="submit" value="<?php esc_attr_e( 'Deactivate License', 'wp-job-manager' ); ?>" />64 <?php65 } else { // licence is not active.66 ?>67 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_action" name="action" value="activate"/>68 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_plugin" name="product_slug" value="<?php echo esc_attr( $product_slug ); ?>"/>69 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key"><?php esc_html_e( 'License', 'wp-job-manager' ); ?>:70 <input type="text" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key" name="licence_key" placeholder="XXXX-XXXX-XXXX-XXXX"/>71 </label>72 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email"><?php esc_html_e( 'Email', 'wp-job-manager' ); ?>:73 <input type="email" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email" name="email" placeholder="<?php esc_attr_e( 'Email address', 'wp-job-manager' ); ?>" value="<?php echo esc_attr( get_option( 'admin_email' ) ); ?>"/>74 </label>75 <input type="submit" class="button" name="submit" value="<?php esc_attr_e( 'Activate License', 'wp-job-manager' ); ?>" />76 <?php77 } // end if : else licence is not active.78 ?>79 </form>80 85 </div> 81 86 </div> -
wp-job-manager/tags/1.38.1/languages/wp-job-manager.pot
r2780619 r2805086 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Job Manager 1.38. 0\n"5 "Project-Id-Version: WP Job Manager 1.38.\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-job-manager/\n" 7 7 "Last-Translator: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022- 08-26T17:27:21+00:00\n"12 "POT-Creation-Date: 2022-1+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 6.0\n"14 "X-Generator: WP-CLI 2.\n" 15 15 "X-Domain: wp-job-manager\n" 16 16 … … 31 31 #. Author of the plugin 32 32 msgid "Automattic" 33 34 35 36 33 37 msgstr "" 34 38 … … 278 282 279 283 #: includes/admin/class-wp-job-manager-cpt.php:507 280 #: includes/class-wp-job-manager-shortcodes.php:39 3284 #: includes/class-wp-job-manager-shortcodes.php:39 281 285 msgid "Filled?" 282 286 msgstr "" … … 318 322 #: includes/admin/class-wp-job-manager-cpt.php:652 319 323 #: includes/class-wp-job-manager-post-types.php:340 320 #: includes/class-wp-job-manager-shortcodes.php:44 1321 #: includes/class-wp-job-manager-shortcodes.php:47 4324 #: includes/class-wp-job-manager-shortcodes.php:44 325 #: includes/class-wp-job-manager-shortcodes.php:47 322 326 msgid "Edit" 323 327 msgstr "" 324 328 325 329 #: includes/admin/class-wp-job-manager-cpt.php:659 326 #: includes/class-wp-job-manager-shortcodes.php:4 89330 #: includes/class-wp-job-manager-shortcodes.php:4 327 331 msgid "Delete" 328 332 msgstr "" … … 1567 1571 msgstr "" 1568 1572 1569 #: includes/class-wp-job-manager-shortcodes.php:20 11573 #: includes/class-wp-job-manager-shortcodes.php:20 1570 1574 msgid "Invalid ID" 1571 1575 msgstr "" 1572 1576 1573 #: includes/class-wp-job-manager-shortcodes.php:2 081577 #: includes/class-wp-job-manager-shortcodes.php:2 1574 1578 msgid "This position has already been filled" 1575 1579 msgstr "" 1576 1580 1577 1581 #. translators: Placeholder %s is the job listing title. 1578 #: includes/class-wp-job-manager-shortcodes.php:21 61582 #: includes/class-wp-job-manager-shortcodes.php:21 1579 1583 msgid "%s has been filled" 1580 1584 msgstr "" 1581 1585 1582 #: includes/class-wp-job-manager-shortcodes.php:22 11586 #: includes/class-wp-job-manager-shortcodes.php:22 1583 1587 msgid "This position is not filled" 1584 1588 msgstr "" 1585 1589 1586 1590 #. translators: Placeholder %s is the job listing title. 1587 #: includes/class-wp-job-manager-shortcodes.php:2 291591 #: includes/class-wp-job-manager-shortcodes.php:2 1588 1592 msgid "%s has been marked as not filled" 1589 1593 msgstr "" 1590 1594 1591 1595 #. translators: Placeholder %s is the job listing title. 1592 #: includes/class-wp-job-manager-shortcodes.php:23 71596 #: includes/class-wp-job-manager-shortcodes.php:23 1593 1597 msgid "%s has been deleted" 1594 1598 msgstr "" 1595 1599 1596 #: includes/class-wp-job-manager-shortcodes.php:24 21597 #: includes/class-wp-job-manager-shortcodes.php:25 61600 #: includes/class-wp-job-manager-shortcodes.php:24 1601 #: includes/class-wp-job-manager-shortcodes.php:25 1598 1602 msgid "Missing submission page." 1599 1603 msgstr "" 1600 1604 1601 1605 #. translators: Placeholder %s is the plural label for the job listing post type. 1602 #: includes/class-wp-job-manager-shortcodes.php:39 21606 #: includes/class-wp-job-manager-shortcodes.php:39 1603 1607 #: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:36 1604 1608 #: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:52 … … 1607 1611 msgstr "" 1608 1612 1609 #: includes/class-wp-job-manager-shortcodes.php:39 41613 #: includes/class-wp-job-manager-shortcodes.php:39 1610 1614 msgid "Date Posted" 1611 1615 msgstr "" 1612 1616 1613 #: includes/class-wp-job-manager-shortcodes.php:39 51617 #: includes/class-wp-job-manager-shortcodes.php:39 1614 1618 msgid "Listing Expires" 1615 1619 msgstr "" 1616 1620 1617 #: includes/class-wp-job-manager-shortcodes.php:44 71621 #: includes/class-wp-job-manager-shortcodes.php:44 1618 1622 msgid "Mark not filled" 1619 1623 msgstr "" 1620 1624 1621 #: includes/class-wp-job-manager-shortcodes.php:45 21625 #: includes/class-wp-job-manager-shortcodes.php:45 1622 1626 msgid "Mark filled" 1623 1627 msgstr "" 1624 1628 1625 #: includes/class-wp-job-manager-shortcodes.php:4 581629 #: includes/class-wp-job-manager-shortcodes.php:4 1626 1630 msgid "Duplicate" 1627 1631 msgstr "" 1628 1632 1629 #: includes/class-wp-job-manager-shortcodes.php:46 51633 #: includes/class-wp-job-manager-shortcodes.php:46 1630 1634 msgid "Relist" 1631 1635 msgstr "" 1632 1636 1633 #: includes/class-wp-job-manager-shortcodes.php:48 21637 #: includes/class-wp-job-manager-shortcodes.php:48 1634 1638 msgid "Continue Submission" 1635 1639 msgstr "" 1636 1640 1637 #: includes/class-wp-job-manager-shortcodes.php:6 881638 #: includes/class-wp-job-manager-shortcodes.php:72 71641 #: includes/class-wp-job-manager-shortcodes.php:6 1642 #: includes/class-wp-job-manager-shortcodes.php:72 1639 1643 msgid "Load more listings" 1640 1644 msgstr "" … … 1777 1781 1778 1782 #: includes/forms/class-wp-job-manager-form-submit-job.php:93 1779 #: includes/forms/class-wp-job-manager-form-submit-job.php:6 671783 #: includes/forms/class-wp-job-manager-form-submit-job.php:6 1780 1784 #: templates/job-preview.php:30 1781 1785 msgid "Preview" … … 1868 1872 msgstr "" 1869 1873 1870 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 11874 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 1871 1875 msgid "Please enter a valid application email address" 1872 1876 msgstr "" 1873 1877 1874 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 61878 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 1875 1879 msgid "Please enter a valid application URL" 1876 1880 msgstr "" 1877 1881 1878 #: includes/forms/class-wp-job-manager-form-submit-job.php:54 21882 #: includes/forms/class-wp-job-manager-form-submit-job.php:54 1879 1883 msgid "Please enter a valid application email address or URL" 1880 1884 msgstr "" 1881 1885 1882 #: includes/forms/class-wp-job-manager-form-submit-job.php:72 61886 #: includes/forms/class-wp-job-manager-form-submit-job.php:72 1883 1887 msgid "Please enter a username." 1884 1888 msgstr "" 1885 1889 1886 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 01890 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 1887 1891 msgid "Please enter a password." 1888 1892 msgstr "" 1889 1893 1890 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 41894 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 1891 1895 msgid "Please enter your email address." 1892 1896 msgstr "" 1893 1897 1894 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 01898 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 1895 1899 msgid "Passwords must match." 1896 1900 msgstr "" 1897 1901 1898 1902 #. translators: Placeholder %s is the password hint. 1899 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 61903 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 1900 1904 msgid "Invalid Password: %s" 1901 1905 msgstr "" 1902 1906 1903 #: includes/forms/class-wp-job-manager-form-submit-job.php:7 481907 #: includes/forms/class-wp-job-manager-form-submit-job.php:7 1904 1908 msgid "Password is not valid." 1905 1909 msgstr "" 1906 1910 1907 #: includes/forms/class-wp-job-manager-form-submit-job.php:78 01911 #: includes/forms/class-wp-job-manager-form-submit-job.php:78 1908 1912 msgid "You must be signed in to post a new listing." 1909 1913 msgstr "" 1910 1914 1911 1915 #. translators: placeholder is the URL to the job dashboard page. 1912 #: includes/forms/class-wp-job-manager-form-submit-job.php:80 61916 #: includes/forms/class-wp-job-manager-form-submit-job.php:80 1913 1917 msgid "Draft was saved. Job listing drafts can be resumed from the <a href=\"%s\">job dashboard</a>." 1914 1918 msgstr "" … … 1924 1928 1925 1929 #: includes/helper/class-wp-job-manager-helper.php:285 1926 #: includes/helper/views/html-licences.php:7 51930 #: includes/helper/views/html-licences.php:7 1927 1931 #: tests/php/tests/includes/helper/test_class.wp-job-manager-helper.php:278 1928 1932 msgid "Activate License" … … 1968 1972 msgstr "" 1969 1973 1970 #: includes/helper/views/html-licences.php:5 61971 #: includes/helper/views/html-licences.php: 691974 #: includes/helper/views/html-licences.php:5 1975 #: includes/helper/views/html-licences.php: 1972 1976 msgid "License" 1973 msgstr ""1974 1975 #: includes/helper/views/html-licences.php:591976 #: includes/helper/views/html-licences.php:721977 msgid "Email"1978 1977 msgstr "" 1979 1978 1980 1979 #: includes/helper/views/html-licences.php:60 1981 1980 #: includes/helper/views/html-licences.php:73 1981 1982 1983 1984 1985 1982 1986 msgid "Email address" 1983 1987 msgstr "" 1984 1988 1985 #: includes/helper/views/html-licences.php:6 31989 #: includes/helper/views/html-licences.php:6 1986 1990 msgid "Deactivate License" 1987 1991 msgstr "" 1988 1992 1989 1993 #. translators: Placeholder %s is the lost license key URL. 1990 #: includes/helper/views/html-licences.php:8 41994 #: includes/helper/views/html-licences.php:8 1991 1995 msgid "Lost your license key? <a href=\"%s\">Retrieve it here</a>." 1992 1996 msgstr "" 1993 1997 1994 #: includes/helper/views/html-licences.php: 861998 #: includes/helper/views/html-licences.php: 1995 1999 msgid "No plugins are activated that have licenses managed by WP Job Manager." 1996 2000 msgstr "" -
wp-job-manager/tags/1.38.1/readme.txt
r2780949 r2805086 153 153 154 154 == Changelog == 155 156 157 158 159 160 155 161 156 162 = 1.38.0 = -
wp-job-manager/tags/1.38.1/wp-job-manager-template.php
r2758091 r2805086 1135 1135 $company_twitter = get_the_company_twitter( $post ); 1136 1136 1137 if ( 0 === strlen( $company_twitter ) ) {1137 if ( ( $company_twitter ) ) { 1138 1138 return null; 1139 1139 } … … 1163 1163 $company_twitter = $post->_company_twitter; 1164 1164 1165 if ( 0 === strlen( $company_twitter ) ) {1165 if ( ( $company_twitter ) ) { 1166 1166 return null; 1167 1167 } -
wp-job-manager/tags/1.38.1/wp-job-manager.php
r2780619 r2805086 4 4 * Plugin URI: https://wpjobmanager.com/ 5 5 * Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site. 6 * Version: 1.38. 06 * Version: 1.38. 7 7 * Author: Automattic 8 8 * Author URI: https://wpjobmanager.com/ 9 9 * Requires at least: 5.8 10 * Tested up to: 6. 010 * Tested up to: 6. 11 11 * Requires PHP: 7.2 12 12 * Text Domain: wp-job-manager … … 22 22 23 23 // Define constants. 24 define( 'JOB_MANAGER_VERSION', '1.38. 0' );24 define( 'JOB_MANAGER_VERSION', '1.38.' ); 25 25 define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 26 26 define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) ); -
wp-job-manager/trunk/changelog.txt
r2780949 r2805086 1 2 3 4 5 6 1 7 = 1.38.0 = 2 8 * Enhancement: Add remote position to filtering (@tripflex) -
wp-job-manager/trunk/includes/3rd-party/3rd-party.php
r2100476 r2805086 14 14 require_once JOB_MANAGER_PLUGIN_DIR . '/includes/3rd-party/rp4wp.php'; 15 15 require_once JOB_MANAGER_PLUGIN_DIR . '/includes/3rd-party/wp-all-import.php'; 16 -
wp-job-manager/trunk/includes/class-wp-job-manager-shortcodes.php
r2780619 r2805086 96 96 */ 97 97 public function handle_redirects() { 98 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Input is used safely. 99 if ( ! get_current_user_id() || ( ! empty( $_REQUEST['job_id'] ) && job_manager_user_can_edit_job( intval( $_REQUEST['job_id'] ) ) ) ) { 98 $submit_job_form_page_id = get_option( 'job_manager_submit_job_form_page_id' ); 99 100 if ( ! is_user_logged_in() || ! is_page( $submit_job_form_page_id ) || 101 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Input is used safely. 102 ( ! empty( $_REQUEST['job_id'] ) && job_manager_user_can_edit_job( intval( $_REQUEST['job_id'] ) ) ) 103 ) { 100 104 return; 101 105 } 102 106 103 $submit_job_form_page_id = get_option( 'job_manager_submit_job_form_page_id' ); 104 $submission_limit = get_option( 'job_manager_submission_limit' ); 105 $job_count = job_manager_count_user_job_listings(); 107 $submission_limit = get_option( 'job_manager_submission_limit' ); 108 $job_count = job_manager_count_user_job_listings(); 106 109 107 110 if ( … … 109 112 && $submission_limit 110 113 && $job_count >= $submission_limit 111 && is_page( $submit_job_form_page_id )112 114 ) { 113 115 $employer_dashboard_page_id = get_option( 'job_manager_job_dashboard_page_id' ); -
wp-job-manager/trunk/includes/forms/class-wp-job-manager-form-submit-job.php
r2780619 r2805086 516 516 if ( ! $this->should_application_field_skip_email_url_validation() && isset( $values['job']['application'] ) ) { 517 517 $allowed_application_method = get_option( 'job_manager_allowed_application_method', '' ); 518 518 519 519 520 $is_valid = true; … … 526 527 } 527 528 528 switch ( $allowed_application_method ) { 529 case 'email': 530 if ( ! $is_valid || ! is_email( $values['job']['application'] ) ) { 531 throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) ); 532 } 533 break; 534 case 'url': 535 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 536 throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) ); 537 } 538 break; 539 default: 540 if ( ! is_email( $values['job']['application'] ) ) { 529 if ( $application_required || ! empty( $values['job']['application'] ) ) { 530 switch ( $allowed_application_method ) { 531 case 'email': 532 if ( ! $is_valid || ! is_email( $values['job']['application'] ) ) { 533 throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) ); 534 } 535 break; 536 case 'url': 541 537 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 542 throw new Exception( __( 'Please enter a valid application email address orURL', 'wp-job-manager' ) );538 throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) ); 543 539 } 544 } 545 break; 540 break; 541 default: 542 if ( ! is_email( $values['job']['application'] ) ) { 543 if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) { 544 throw new Exception( __( 'Please enter a valid application email address or URL', 'wp-job-manager' ) ); 545 } 546 } 547 break; 548 } 546 549 } 547 550 } -
wp-job-manager/trunk/includes/helper/class-wp-job-manager-helper.php
r2166302 r2805086 512 512 * @param string $email 513 513 */ 514 p rivatefunction activate_licence( $product_slug, $licence_key, $email ) {514 p function activate_licence( $product_slug, $licence_key, $email ) { 515 515 $response = $this->api->activate( 516 516 [ -
wp-job-manager/trunk/includes/helper/views/html-licences.php
r2745746 r2805086 45 45 echo '<div class="notice inline notice-' . esc_attr( $message['type'] ) . '"><p>' . wp_kses_post( $message['message'] ) . '</p></div>'; 46 46 } 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 47 84 ?> 48 <form method="post">49 <?php wp_nonce_field( 'wpjm-manage-licence' ); ?>50 <?php51 if ( ! empty( $licence['licence_key'] ) && ! empty( $licence['email'] ) ) {52 ?>53 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_action" name="action" value="deactivate"/>54 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_plugin" name="product_slug" value="<?php echo esc_attr( $product_slug ); ?>"/>55 56 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key"><?php esc_html_e( 'License', 'wp-job-manager' ); ?>:57 <input type="text" disabled="disabled" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key" name="licence_key" placeholder="XXXX-XXXX-XXXX-XXXX" value="<?php echo esc_attr( $licence['licence_key'] ); ?>"/>58 </label>59 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email"><?php esc_html_e( 'Email', 'wp-job-manager' ); ?>:60 <input type="email" disabled="disabled" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email" name="email" placeholder="<?php esc_attr_e( 'Email address', 'wp-job-manager' ); ?>" value="<?php echo esc_attr( $licence['email'] ); ?>"/>61 </label>62 63 <input type="submit" class="button" name="submit" value="<?php esc_attr_e( 'Deactivate License', 'wp-job-manager' ); ?>" />64 <?php65 } else { // licence is not active.66 ?>67 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_action" name="action" value="activate"/>68 <input type="hidden" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_plugin" name="product_slug" value="<?php echo esc_attr( $product_slug ); ?>"/>69 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key"><?php esc_html_e( 'License', 'wp-job-manager' ); ?>:70 <input type="text" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_licence_key" name="licence_key" placeholder="XXXX-XXXX-XXXX-XXXX"/>71 </label>72 <label for="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email"><?php esc_html_e( 'Email', 'wp-job-manager' ); ?>:73 <input type="email" id="<?php echo esc_attr( sanitize_title( $product_slug ) ); ?>_email" name="email" placeholder="<?php esc_attr_e( 'Email address', 'wp-job-manager' ); ?>" value="<?php echo esc_attr( get_option( 'admin_email' ) ); ?>"/>74 </label>75 <input type="submit" class="button" name="submit" value="<?php esc_attr_e( 'Activate License', 'wp-job-manager' ); ?>" />76 <?php77 } // end if : else licence is not active.78 ?>79 </form>80 85 </div> 81 86 </div> -
wp-job-manager/trunk/languages/wp-job-manager.pot
r2780619 r2805086 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Job Manager 1.38. 0\n"5 "Project-Id-Version: WP Job Manager 1.38.\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-job-manager/\n" 7 7 "Last-Translator: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022- 08-26T17:27:21+00:00\n"12 "POT-Creation-Date: 2022-1+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 6.0\n"14 "X-Generator: WP-CLI 2.\n" 15 15 "X-Domain: wp-job-manager\n" 16 16 … … 31 31 #. Author of the plugin 32 32 msgid "Automattic" 33 34 35 36 33 37 msgstr "" 34 38 … … 278 282 279 283 #: includes/admin/class-wp-job-manager-cpt.php:507 280 #: includes/class-wp-job-manager-shortcodes.php:39 3284 #: includes/class-wp-job-manager-shortcodes.php:39 281 285 msgid "Filled?" 282 286 msgstr "" … … 318 322 #: includes/admin/class-wp-job-manager-cpt.php:652 319 323 #: includes/class-wp-job-manager-post-types.php:340 320 #: includes/class-wp-job-manager-shortcodes.php:44 1321 #: includes/class-wp-job-manager-shortcodes.php:47 4324 #: includes/class-wp-job-manager-shortcodes.php:44 325 #: includes/class-wp-job-manager-shortcodes.php:47 322 326 msgid "Edit" 323 327 msgstr "" 324 328 325 329 #: includes/admin/class-wp-job-manager-cpt.php:659 326 #: includes/class-wp-job-manager-shortcodes.php:4 89330 #: includes/class-wp-job-manager-shortcodes.php:4 327 331 msgid "Delete" 328 332 msgstr "" … … 1567 1571 msgstr "" 1568 1572 1569 #: includes/class-wp-job-manager-shortcodes.php:20 11573 #: includes/class-wp-job-manager-shortcodes.php:20 1570 1574 msgid "Invalid ID" 1571 1575 msgstr "" 1572 1576 1573 #: includes/class-wp-job-manager-shortcodes.php:2 081577 #: includes/class-wp-job-manager-shortcodes.php:2 1574 1578 msgid "This position has already been filled" 1575 1579 msgstr "" 1576 1580 1577 1581 #. translators: Placeholder %s is the job listing title. 1578 #: includes/class-wp-job-manager-shortcodes.php:21 61582 #: includes/class-wp-job-manager-shortcodes.php:21 1579 1583 msgid "%s has been filled" 1580 1584 msgstr "" 1581 1585 1582 #: includes/class-wp-job-manager-shortcodes.php:22 11586 #: includes/class-wp-job-manager-shortcodes.php:22 1583 1587 msgid "This position is not filled" 1584 1588 msgstr "" 1585 1589 1586 1590 #. translators: Placeholder %s is the job listing title. 1587 #: includes/class-wp-job-manager-shortcodes.php:2 291591 #: includes/class-wp-job-manager-shortcodes.php:2 1588 1592 msgid "%s has been marked as not filled" 1589 1593 msgstr "" 1590 1594 1591 1595 #. translators: Placeholder %s is the job listing title. 1592 #: includes/class-wp-job-manager-shortcodes.php:23 71596 #: includes/class-wp-job-manager-shortcodes.php:23 1593 1597 msgid "%s has been deleted" 1594 1598 msgstr "" 1595 1599 1596 #: includes/class-wp-job-manager-shortcodes.php:24 21597 #: includes/class-wp-job-manager-shortcodes.php:25 61600 #: includes/class-wp-job-manager-shortcodes.php:24 1601 #: includes/class-wp-job-manager-shortcodes.php:25 1598 1602 msgid "Missing submission page." 1599 1603 msgstr "" 1600 1604 1601 1605 #. translators: Placeholder %s is the plural label for the job listing post type. 1602 #: includes/class-wp-job-manager-shortcodes.php:39 21606 #: includes/class-wp-job-manager-shortcodes.php:39 1603 1607 #: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:36 1604 1608 #: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:52 … … 1607 1611 msgstr "" 1608 1612 1609 #: includes/class-wp-job-manager-shortcodes.php:39 41613 #: includes/class-wp-job-manager-shortcodes.php:39 1610 1614 msgid "Date Posted" 1611 1615 msgstr "" 1612 1616 1613 #: includes/class-wp-job-manager-shortcodes.php:39 51617 #: includes/class-wp-job-manager-shortcodes.php:39 1614 1618 msgid "Listing Expires" 1615 1619 msgstr "" 1616 1620 1617 #: includes/class-wp-job-manager-shortcodes.php:44 71621 #: includes/class-wp-job-manager-shortcodes.php:44 1618 1622 msgid "Mark not filled" 1619 1623 msgstr "" 1620 1624 1621 #: includes/class-wp-job-manager-shortcodes.php:45 21625 #: includes/class-wp-job-manager-shortcodes.php:45 1622 1626 msgid "Mark filled" 1623 1627 msgstr "" 1624 1628 1625 #: includes/class-wp-job-manager-shortcodes.php:4 581629 #: includes/class-wp-job-manager-shortcodes.php:4 1626 1630 msgid "Duplicate" 1627 1631 msgstr "" 1628 1632 1629 #: includes/class-wp-job-manager-shortcodes.php:46 51633 #: includes/class-wp-job-manager-shortcodes.php:46 1630 1634 msgid "Relist" 1631 1635 msgstr "" 1632 1636 1633 #: includes/class-wp-job-manager-shortcodes.php:48 21637 #: includes/class-wp-job-manager-shortcodes.php:48 1634 1638 msgid "Continue Submission" 1635 1639 msgstr "" 1636 1640 1637 #: includes/class-wp-job-manager-shortcodes.php:6 881638 #: includes/class-wp-job-manager-shortcodes.php:72 71641 #: includes/class-wp-job-manager-shortcodes.php:6 1642 #: includes/class-wp-job-manager-shortcodes.php:72 1639 1643 msgid "Load more listings" 1640 1644 msgstr "" … … 1777 1781 1778 1782 #: includes/forms/class-wp-job-manager-form-submit-job.php:93 1779 #: includes/forms/class-wp-job-manager-form-submit-job.php:6 671783 #: includes/forms/class-wp-job-manager-form-submit-job.php:6 1780 1784 #: templates/job-preview.php:30 1781 1785 msgid "Preview" … … 1868 1872 msgstr "" 1869 1873 1870 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 11874 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 1871 1875 msgid "Please enter a valid application email address" 1872 1876 msgstr "" 1873 1877 1874 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 61878 #: includes/forms/class-wp-job-manager-form-submit-job.php:53 1875 1879 msgid "Please enter a valid application URL" 1876 1880 msgstr "" 1877 1881 1878 #: includes/forms/class-wp-job-manager-form-submit-job.php:54 21882 #: includes/forms/class-wp-job-manager-form-submit-job.php:54 1879 1883 msgid "Please enter a valid application email address or URL" 1880 1884 msgstr "" 1881 1885 1882 #: includes/forms/class-wp-job-manager-form-submit-job.php:72 61886 #: includes/forms/class-wp-job-manager-form-submit-job.php:72 1883 1887 msgid "Please enter a username." 1884 1888 msgstr "" 1885 1889 1886 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 01890 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 1887 1891 msgid "Please enter a password." 1888 1892 msgstr "" 1889 1893 1890 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 41894 #: includes/forms/class-wp-job-manager-form-submit-job.php:73 1891 1895 msgid "Please enter your email address." 1892 1896 msgstr "" 1893 1897 1894 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 01898 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 1895 1899 msgid "Passwords must match." 1896 1900 msgstr "" 1897 1901 1898 1902 #. translators: Placeholder %s is the password hint. 1899 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 61903 #: includes/forms/class-wp-job-manager-form-submit-job.php:74 1900 1904 msgid "Invalid Password: %s" 1901 1905 msgstr "" 1902 1906 1903 #: includes/forms/class-wp-job-manager-form-submit-job.php:7 481907 #: includes/forms/class-wp-job-manager-form-submit-job.php:7 1904 1908 msgid "Password is not valid." 1905 1909 msgstr "" 1906 1910 1907 #: includes/forms/class-wp-job-manager-form-submit-job.php:78 01911 #: includes/forms/class-wp-job-manager-form-submit-job.php:78 1908 1912 msgid "You must be signed in to post a new listing." 1909 1913 msgstr "" 1910 1914 1911 1915 #. translators: placeholder is the URL to the job dashboard page. 1912 #: includes/forms/class-wp-job-manager-form-submit-job.php:80 61916 #: includes/forms/class-wp-job-manager-form-submit-job.php:80 1913 1917 msgid "Draft was saved. Job listing drafts can be resumed from the <a href=\"%s\">job dashboard</a>." 1914 1918 msgstr "" … … 1924 1928 1925 1929 #: includes/helper/class-wp-job-manager-helper.php:285 1926 #: includes/helper/views/html-licences.php:7 51930 #: includes/helper/views/html-licences.php:7 1927 1931 #: tests/php/tests/includes/helper/test_class.wp-job-manager-helper.php:278 1928 1932 msgid "Activate License" … … 1968 1972 msgstr "" 1969 1973 1970 #: includes/helper/views/html-licences.php:5 61971 #: includes/helper/views/html-licences.php: 691974 #: includes/helper/views/html-licences.php:5 1975 #: includes/helper/views/html-licences.php: 1972 1976 msgid "License" 1973 msgstr ""1974 1975 #: includes/helper/views/html-licences.php:591976 #: includes/helper/views/html-licences.php:721977 msgid "Email"1978 1977 msgstr "" 1979 1978 1980 1979 #: includes/helper/views/html-licences.php:60 1981 1980 #: includes/helper/views/html-licences.php:73 1981 1982 1983 1984 1985 1982 1986 msgid "Email address" 1983 1987 msgstr "" 1984 1988 1985 #: includes/helper/views/html-licences.php:6 31989 #: includes/helper/views/html-licences.php:6 1986 1990 msgid "Deactivate License" 1987 1991 msgstr "" 1988 1992 1989 1993 #. translators: Placeholder %s is the lost license key URL. 1990 #: includes/helper/views/html-licences.php:8 41994 #: includes/helper/views/html-licences.php:8 1991 1995 msgid "Lost your license key? <a href=\"%s\">Retrieve it here</a>." 1992 1996 msgstr "" 1993 1997 1994 #: includes/helper/views/html-licences.php: 861998 #: includes/helper/views/html-licences.php: 1995 1999 msgid "No plugins are activated that have licenses managed by WP Job Manager." 1996 2000 msgstr "" -
wp-job-manager/trunk/readme.txt
r2780949 r2805086 153 153 154 154 == Changelog == 155 156 157 158 159 160 155 161 156 162 = 1.38.0 = -
wp-job-manager/trunk/wp-job-manager-template.php
r2758091 r2805086 1135 1135 $company_twitter = get_the_company_twitter( $post ); 1136 1136 1137 if ( 0 === strlen( $company_twitter ) ) {1137 if ( ( $company_twitter ) ) { 1138 1138 return null; 1139 1139 } … … 1163 1163 $company_twitter = $post->_company_twitter; 1164 1164 1165 if ( 0 === strlen( $company_twitter ) ) {1165 if ( ( $company_twitter ) ) { 1166 1166 return null; 1167 1167 } -
wp-job-manager/trunk/wp-job-manager.php
r2780619 r2805086 4 4 * Plugin URI: https://wpjobmanager.com/ 5 5 * Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site. 6 * Version: 1.38. 06 * Version: 1.38. 7 7 * Author: Automattic 8 8 * Author URI: https://wpjobmanager.com/ 9 9 * Requires at least: 5.8 10 * Tested up to: 6. 010 * Tested up to: 6. 11 11 * Requires PHP: 7.2 12 12 * Text Domain: wp-job-manager … … 22 22 23 23 // Define constants. 24 define( 'JOB_MANAGER_VERSION', '1.38. 0' );24 define( 'JOB_MANAGER_VERSION', '1.38.' ); 25 25 define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 26 26 define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
Note: See TracChangeset
for help on using the changeset viewer.