Changeset 1494628
- Timestamp:
- 09/12/2016 04:14:37 PM (10 years ago)
- Location:
- wp-job-manager-contact-listing/trunk
- Files:
-
- 3 edited
-
includes/forms/ninjaforms.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-job-manager-contact-listing.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-job-manager-contact-listing/trunk/includes/forms/ninjaforms.php
r1461119 r1494628 10 10 11 11 /** 12 * Pre THREE release. 13 * @access protected 14 */ 15 public $is_pre_three; 16 17 /** 12 18 * Load the base form class. 13 19 * … … 17 23 */ 18 24 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 19 27 parent::__construct(); 20 28 } … … 42 50 $args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' ); 43 51 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 } 45 57 } 46 58 … … 120 132 $_forms = array(); 121 133 122 if ( version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' )) {134 if ( $this->is_pre_three ) { 123 135 $f = Ninja_Forms()->forms()->get_all(); 124 136 $x = 0; -
wp-job-manager-contact-listing/trunk/readme.txt
r1488339 r1494628 8 8 Requires at least: 4.4 9 9 Tested up to: 4.6 10 Stable Tag: 1.2. 210 Stable Tag: 1.2.3 11 11 License: GPLv3 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 76 76 == Changelog == 77 77 78 = 1.2.3: September 12, 2016 = 79 80 * Ninja Forms compatibility. 81 78 82 = 1.2.2: June 22, 2016 = 79 83 -
wp-job-manager-contact-listing/trunk/wp-job-manager-contact-listing.php
r1461119 r1494628 6 6 * Author: Astoundify 7 7 * Author URI: http://astoundify.com 8 * Version: 1.2. 28 * Version: 1.2.3 9 9 * Text Domain: wp-job-manager-contact-listing 10 10 * Domain Path: /languages
Note: See TracChangeset
for help on using the changeset viewer.