Plugin Directory

Changeset 1794778

Timestamp:
12/31/2017 06:10:27 AM (7 years ago)
Author:
sk.shaikat
Message:

update version to 1.5.8.7

Location:
woocommerce-upcoming-product
Files:
15 added
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-upcoming-product/trunk/readme.txt

    r1776567 r1794778  
    44Donate link: https://www.paypal.me/skshaikat
    55Requires at least: 3.1
    6 Tested up to: 4.9
    7 Stable tag: 1.5.8.6
     6Tested up to:
     7Stable tag: 1.5.8.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Change log ==
     50
     51
     52
     53
    5054
    5155= 1.5.8.6 = Nov 28, 2017
  • woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php

    r1776567 r1794778  
    44Plugin URI: https://github.com/Sk-Shaikat/woocommerce-upcoming-product
    55Description: Best Plugin to Manage your upcoming product easily in WooCommerce.
    6 Version: 1.5.8.6
     6Version: 1.5.8.
    77Author: Sk Shaikat
    88Author URI: http://www.shaikat.me
     
    3939     * @uses add_action()
    4040     */
    41     public function __construct()
    42     {
     41    public function __construct() {
    4342        $this->wup_define_constants();
    4443        $this->wup_init_hooks();
     
    119118        // Before init action.
    120119        do_action( 'before_wup_init' );
     120
     121
     122
    121123        static $instance = false;
    122124
     
    133135     * Nothing being called here yet.
    134136     */
    135     public function activate()
    136     {
     137    public function activate() {
     138        if ( ! function_exists( 'WC' ) ) {
     139            require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     140            deactivate_plugins( plugin_basename( __FILE__ ) );
     141
     142            wp_die( '<div class="error"><p>' . sprintf( __( '<b>Dokan</b> requires %sWooCommerce%s to be installed & activated!', 'dokan-lite' ), '<a target="_blank" href="https://wordpress.org/plugins/woocommerce/">', '</a>' ) . '</p></div>' );
     143        }
    137144        if (! wp_next_scheduled ( 'wup_expired_upcoming_product' ) ) {
    138145            wp_schedule_event( time(), 'twicedaily', 'wup_expired_upcoming_product' );
     
    694701                            }
    695702                            if ( empty( $_available_on ) ) {
    696                                 $not_available_date_text = WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
     703                                $not_available_date_text = WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not et' );
    697704                                echo $not_available_date_text;
    698705                            }else {
Note: See TracChangeset for help on using the changeset viewer.