|
3 | 3 | * Plugin Name: WooCommerce POS
|
4 | 4 | * Plugin URI: https://wordpress.org/plugins/woocommerce-pos/
|
5 | 5 | * Description: A simple front-end for taking WooCommerce orders at the Point of Sale. Requires <a href="http://wordpress.org/plugins/woocommerce/">WooCommerce</a>.
|
6 |
| - * Version: 1.6.1 |
| 6 | + * Version: 1.6.2 |
7 | 7 | * Author: kilbot
|
8 | 8 | * Author URI: http://wcpos.com
|
9 | 9 | * Text Domain: woocommerce-pos
|
|
14 | 14 | * Tested up to: 6.5
|
15 | 15 | * Requires PHP: 7.4
|
16 | 16 | * Requires Plugins: woocommerce
|
17 |
| - * WC tested up to: 8.9 |
| 17 | + * WC tested up to: 9.0 |
18 | 18 | * WC requires at least: 5.3
|
19 | 19 | *
|
20 | 20 | * @see http://wcpos.com
|
|
24 | 24 | namespace WCPOS\WooCommercePOS;
|
25 | 25 |
|
26 | 26 | // Define plugin constants.
|
27 |
| -const VERSION = '1.6.1'; |
| 27 | +const VERSION = '1.6.2'; |
28 | 28 | const PLUGIN_NAME = 'woocommerce-pos';
|
29 | 29 | const SHORT_NAME = 'wcpos';
|
30 | 30 | \define( __NAMESPACE__ . '\PLUGIN_FILE', plugin_basename( __FILE__ ) ); // 'woocommerce-pos/woocommerce-pos.php'
|
|
37 | 37 | const MIN_PRO_VERSION = '1.5.0';
|
38 | 38 |
|
39 | 39 | // Load .env flags (for development).
|
40 |
| -function load_env( $file ) { |
| 40 | +function wcpos_load_env( $file ) { |
41 | 41 | if ( ! file_exists( $file ) ) {
|
42 | 42 | return;
|
43 | 43 | }
|
@@ -75,7 +75,7 @@ function wcpos_load_autoloaders() {
|
75 | 75 | wcpos_load_autoloaders();
|
76 | 76 |
|
77 | 77 | // Environment variables.
|
78 |
| -load_env( __DIR__ . '/.env' ); |
| 78 | +wcpos_load_env( __DIR__ . '/.env' ); |
79 | 79 |
|
80 | 80 | // Error handling for autoload failure.
|
81 | 81 | if ( ! class_exists( \WCPOS\WooCommercePOS\Activator::class ) || ! class_exists( \WCPOS\WooCommercePOS\Deactivator::class ) ) {
|
|
0 commit comments