Plugin Directory

Changeset 1175117


Ignore:
Timestamp:
06/05/2015 09:47:26 AM (11 years ago)
Author:
dzeriho
Message:

Initial Bug Fixes.

Location:
woocommerce-frontend-shop-manager-free-version/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-frontend-shop-manager-free-version/trunk/readme.txt

    r1174554 r1175117  
    55Requires at least: 3.5
    66Tested up to: 4.2.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPL2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • woocommerce-frontend-shop-manager-free-version/trunk/woocommerce-frontend-shop-manager.php

    r1174491 r1175117  
    55Description:  WooCommerce Frontend Shop Manager! The ultimate tool for managing WooCommerce shops, right at the frontend, featuring live product editing and vendor support! For WooCommerce Frontend Shop Manager Premuim visit mihajlovicnenad.com
    66Author: Mihajlovic Nenad
    7 Version: 1.0.0
     7Version: 1.0.1
    88Author URI: http://www.mihajlovicnenad.com
    99*/
     
    1515    public static $path;
    1616    public static $url_path;
     17    public static $settings;
    1718
    1819    public static function init() {
     
    2930        self::$path = plugin_dir_path( __FILE__ );
    3031        self::$url_path = plugins_url( __FILE__ );
     32
     33        self::$settings['user'] = wp_get_current_user();
     34        self::$settings['woocommerce']['decimal_sep'] = get_option( 'woocommerce_price_decimal_sep' );
     35
     36        if ( self::$settings['user']->has_cap( 'administrator' ) || self::$settings['user']->has_cap( 'manage_woocommerce' ) ) {
     37            self::$settings['admin_mode'] = true;
     38        }
    3139
    3240        add_action( 'init', array(&$this, 'wfsm_textdomain') );
Note: See TracChangeset for help on using the changeset viewer.