Plugin Directory

Changeset 1494628


Ignore:
Timestamp:
09/12/2016 04:14:37 PM (10 years ago)
Author:
adampickering
Message:

1.2.3: September 12, 2016

  • Ninja Forms compatibility.
Location:
wp-job-manager-contact-listing/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-job-manager-contact-listing/trunk/includes/forms/ninjaforms.php

    r1461119 r1494628  
    1010
    1111    /**
     12     * Pre THREE release.
     13     * @access protected
     14     */
     15    public $is_pre_three;
     16
     17    /**
    1218     * Load the base form class.
    1319     *
     
    1723     */
    1824    public function __construct() {
     25        $this->is_pre_three = version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' ) || get_option( 'ninja_forms_load_deprecated', false );
     26
    1927        parent::__construct();
    2028    }
     
    4250        $args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' );
    4351
    44         echo do_shortcode( sprintf( '[ninja_forms_display_form id="%s" %s]', $form, $args ) );
     52        if ( $this->is_pre_three ) {
     53            echo do_shortcode( sprintf( '[ninja_forms_display_form id="%s" %s]', $form, $args ) );
     54        } else {
     55            echo do_shortcode( sprintf( '[ninja_forms id="%s" %s]', $form, $args ) );
     56        }
    4557    }
    4658
     
    120132        $_forms = array();
    121133
    122         if ( version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' ) ) {
     134        if ( $this->is_pre_three ) {
    123135            $f = Ninja_Forms()->forms()->get_all();
    124136            $x = 0;
  • wp-job-manager-contact-listing/trunk/readme.txt

    r1488339 r1494628  
    88Requires at least: 4.4
    99Tested up to: 4.6
    10 Stable Tag: 1.2.2
     10Stable Tag: 1.2.3
    1111License: GPLv3
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7676== Changelog ==
    7777
     78= 1.2.3: September 12, 2016 =
     79
     80* Ninja Forms compatibility.
     81
    7882= 1.2.2: June 22, 2016 =
    7983
  • wp-job-manager-contact-listing/trunk/wp-job-manager-contact-listing.php

    r1461119 r1494628  
    66 * Author:      Astoundify
    77 * Author URI:  http://astoundify.com
    8  * Version:     1.2.2
     8 * Version:     1.2.3
    99 * Text Domain: wp-job-manager-contact-listing
    1010 * Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.