Plugin Directory

Changeset 931885


Ignore:
Timestamp:
06/13/2014 04:38:50 PM (12 years ago)
Author:
isikom
Message:

released version 0.5.6

Location:
woocommerce-add-form-to-product
Files:
37 added
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-add-form-to-product/trunk/readme.txt

    r931637 r931885  
    44Requires at least: 3.5
    55Tested up to: 3.9.1
    6 Stable tag: 0.5.5
     6Stable tag: 0.5.6
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
     51= 0.5.6 - 13/06/2014 =
     52* Fix error on Back End before showing submitted texts
     53
    5154= 0.5.5 - 13/06/2014 =
    5255* Fix fatal error after install if Contact Form 7 missed
  • woocommerce-add-form-to-product/trunk/woocommerce-add-form-to-product.php

    r931637 r931885  
    66 * Author: Michele Menciassi
    77 * Author URI: https://plus.google.com/+MicheleMenciassi
    8  * Version: 0.5.5
     8 * Version: 0.5.6
    99 * License: GPLv2 or later
    1010 */
     
    3333             */
    3434            public function init() {
    35                 if (defined(WPCF7_PLUGIN_DIR)){
    36                     require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
     35                if (in_array('contact-form-7/wp-contact-form-7.php', apply_filters('active_plugins', get_option('active_plugins')))) {
     36                    if (defined(WPCF7_PLUGIN_DIR)){
     37                        require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
     38                    }else{
     39                        /* TODO remove Constant */
     40                        require_once( WP_PLUGIN_DIR . '/contact-form-7/wp-contact-form-7.php');
     41                        require_once( WP_PLUGIN_DIR . '/contact-form-7/includes/controller.php');
     42                    }
    3743                }
    3844                if (is_admin()){
     
    961967                                //$cf7_shortcode = '[contact-form-7 id="'.$form_data->ID.'" title="'.$form_data->post_title.'"]';
    962968                                //$formdata = do_shortcode($cf7_shortcode);
    963                                 $formdata = wpcf7_contact_form_tag_func(array('id' => $form_data->ID, 'title' => $form_data->post_title), null, 'contact-form-7');
     969                                $formdata = array();
     970                                if (function_exists("wpcf7_contact_form_tag_func")){
     971                                    $formdata = wpcf7_contact_form_tag_func(array('id' => $form_data->ID, 'title' => $form_data->post_title), null, 'contact-form-7');
     972                                }
    964973                                $label = array();
    965974                                // STOP GET FORM SEVEN LABEL
Note: See TracChangeset for help on using the changeset viewer.