Plugin Directory

Changeset 1184927


Ignore:
Timestamp:
06/21/2015 06:35:20 AM (11 years ago)
Author:
rossdev
Message:

Fixed missing function error for WC()->wc_add_notice()

Location:
wpf-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpf-woocommerce/trunk/README.txt

    r1092082 r1184927  
    44Donate link: https://wpfortify.com
    55Requires at least: 3.9
    6 Tested up to: 4.1
    7 Stable tag: 2.6.1
     6Tested up to: 4.2.2
     7Stable tag: 2.6.2
    88License: GPLv2+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81= 2.6.2 =
     82* Fixed missing function error for WC()->wc_add_notice()
     83
    8184= 2.6.1 =
    8285* Added MM / YY placeholder
  • wpf-woocommerce/trunk/includes/class-wpf-woocommerce.php

    r1092082 r1184927  
    361361                $card_id = $card_ids[ $_POST['wpfortify_card'] ]['card_id'];
    362362            } else {
    363                 WC()->wc_add_notice( __( 'Invalid card.', 'wpf-woocommerce' ), 'error' );
     363                wc_add_notice( __( 'Invalid card.', 'wpf-woocommerce' ), 'error' );
    364364                return;
    365365            }
     
    436436
    437437            if ( is_wp_error( $response ) ) {
    438                 WC()->wc_add_notice( $response->get_error_message(), 'error' );
     438                wc_add_notice( $response->get_error_message(), 'error' );
    439439                return;
    440440            }
     
    451451                );
    452452            } else {
    453                 WC()->wc_add_notice( __( 'There was a problem updating the order.', 'wpf-woocommerce' ), 'error' );
     453                wc_add_notice( __( 'There was a problem updating the order.', 'wpf-woocommerce' ), 'error' );
    454454                return;
    455455            }
     
    459459
    460460            if ( is_wp_error( $response ) ) {
    461                 WC()->wc_add_notice( $response->get_error_message(), 'error' );
     461                wc_add_notice( $response->get_error_message(), 'error' );
    462462                return;
    463463            }
     
    587587                echo $this->wpf_mask( array( 'status' => 'order_updated' ) );
    588588                exit;
    589             } else {
    590                 echo $this->wpf_mask( array( 'error' => 'no order id' ) );
    591                 exit;
    592589            }
    593590        }
  • wpf-woocommerce/trunk/wpf-woocommerce.php

    r1092082 r1184927  
    44Plugin URI: http://wordpress.org/plugins/wpf-woocommerce/
    55Description: wpFortify provides a hosted SSL checkout page for Stripe payments. A free wpFortify account is required for this plugin to work.
    6 Version: 2.6.1
     6Version: 2.6.2
    77Author: wpFortify
    88Author URI: https://wpfortify.com
     
    3030
    3131        // Define
    32         define( 'WPF_WC_GATEWAY_VERSION', '2.6.1' );
     32        define( 'WPF_WC_GATEWAY_VERSION', '2.6.2' );
    3333        define( 'WPF_WC_GATEWAY_TEMPLATE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) . '/templates/' );
    3434        define( 'WPF_WC_GATEWAY_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
Note: See TracChangeset for help on using the changeset viewer.