Plugin Directory

Changeset 2012107


Ignore:
Timestamp:
01/14/2019 03:40:13 PM (7 years ago)
Author:
adampickering
Message:

1.16.0 New: WP Job Manager 1.32.0 support.

Location:
wp-job-manager-locations/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-job-manager-locations/trunk/assets/js/main.js

    r1700422 r2012107  
    2626
    2727        addSubmission: function() {
    28             $( '#job_region, #resume_region' ).chosen({
    29                 search_contains: true
    30             });
     28            if ( typeof chosen === "function" ) {
     29                $( '#job_region, #resume_region' ).chosen( {
     30                    search_contains: true,
     31                } );
     32            } else {
     33                $( '#job_region, #resume_region' ).select2( job_manager_select2_multiselect_args );
     34            }
    3135        },
    3236
     
    5660                };
    5761
    58                 if ( ! wrapper ) {
    59                     $regions.chosen( args );
     62                if ( typeof chosen === "function" ) {
     63                    if ( ! wrapper ) {
     64                        $regions.chosen( args );
     65                    } else {
     66                        $regions.children( 'select' ).chosen( args );
     67                    }
    6068                } else {
    61                     $regions.children( 'select' ).chosen( args );
     69                    if ( ! wrapper ) {
     70                        $regions.select2( job_manager_select2_multiselect_args );
     71                    } else {
     72                        $regions.children( 'select' ).select2( job_manager_select2_multiselect_args );
     73                    }
    6274                }
    6375            });
  • wp-job-manager-locations/trunk/includes/class-template.php

    r1875771 r2012107  
    3131     */
    3232    public function wp_enqueue_scripts() {
    33         wp_enqueue_script( 'job-regions', wp_job_manager_regions()->plugin_url . 'assets/js/main.js', array( 'jquery', 'chosen' ), 20140525, true );
     33        $deps = array( 'jquery' );
     34
     35        if ( wp_script_is( 'chosen' ) ) {
     36            $deps[] = 'chosen';
     37        } else {
     38            $deps[] = 'select2';
     39        }
     40
     41        wp_enqueue_script( 'job-regions', wp_job_manager_regions()->plugin_url . 'assets/js/main.js', $deps, 20140525, true );
    3442    }
    3543
  • wp-job-manager-locations/trunk/languages/wp-job-manager-locations.pot

    r1874791 r2012107  
    1 # Copyright (C) 2018 Astoundify
     1# Copyright (C) 2019 Astoundify
    22# This file is distributed under the same license as the Regions for WP Job Manager package.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Regions for WP Job Manager 1.15.0\n"
     5"Project-Id-Version: Regions for WP Job Manager 1.16.0\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
    8 "POT-Creation-Date: 2018-05-14 14:40:00+00:00\n"
     8"POT-Creation-Date: 2019-01-14 15:35:04+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
     12"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1414"Language-Team: LANGUAGE <LL@li.org>\n"
    1515"X-Generator: grunt-wp-i18n1.0.0\n"
    1616
    17 #: includes/class-taxonomy.php:17 includes/class-template.php:74
     17#: includes/class-taxonomy.php:17 includes/class-template.php:82
    1818msgid "Job Region"
    1919msgstr ""
     
    6464msgstr ""
    6565
    66 #: includes/class-template.php:58
     66#: includes/class-template.php:66
    6767msgid "Region"
    6868msgstr ""
    6969
    70 #: includes/class-template.php:94
     70#: includes/class-template.php:102
    7171msgid "All Regions"
    7272msgstr ""
    7373
    74 #: includes/class-template.php:111
     74#: includes/class-template.php:119
    7575msgid "Select Region"
    7676msgstr ""
  • wp-job-manager-locations/trunk/readme.txt

    r1875771 r2012107  
    66Tags: job, job listing, job region
    77Requires at least: 4.7.0
    8 Tested up to: 4.9.6
    9 Stable Tag: 1.15.1
     8Tested up to: 5.0.3
     9Stable Tag: 1.16.0
    1010License: GPLv3
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3131
    3232== Changelog ==
     33
     34= 1.16.0: January 14, 2018 =
     35
     36* New: WP Job Manager 1.32.0 support.
    3337
    3438= 1.15.1: May 16, 2018 =
  • wp-job-manager-locations/trunk/wp-job-manager-locations.php

    r1875771 r2012107  
    66 * Author:      Astoundify
    77 * Author URI:  http://astoundify.com
    8  * Version:     1.15.1
     8 * Version:     1.16.0
    99 * Text Domain: wp-job-manager-locations
    1010 * Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.