Plugin Directory

Changeset 2566311


Ignore:
Timestamp:
07/17/2021 12:34:02 PM (5 years ago)
Author:
RapidDev
Message:

Fix directories again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wc-poczta/trunk/wc-poczta.php

    r2566307 r2566311  
    1717 * License: GPL-3.0
    1818 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
    19  * Version: 1.3.2
     19 * Version: 1.3.3
    2020 * Text Domain: wc_poczta
    2121 * Domain Path: /languages
     
    3232  $pluginPath = plugin_dir_path(__FILE__);
    3333
    34   if (defined('WP_DEBUG') && WP_DEBUG && is_file($pluginPath . 'vendor\\autoload.php')) {
    35     require_once $pluginPath . 'vendor\\autoload.php';
     34  if (defined('WP_DEBUG') && WP_DEBUG && is_file($pluginPath . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php')) {
     35    require_once $pluginPath . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
    3636  }
    3737
    38   require_once $pluginPath . 'code\\core\\' . 'Helpers.php';
    39   require_once $pluginPath . 'code\\core\\' . 'Bootstrap.php';
    40   require_once $pluginPath . 'code\\core\\' . 'Actions.php';
    41   require_once $pluginPath . 'code\\core\\' . 'ShippingRegistrar.php';
     38  $corePath = 'code' . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR;
     39
     40  require_once $pluginPath . $corePath . 'Helpers.php';
     41  require_once $pluginPath . $corePath . 'Bootstrap.php';
     42  require_once $pluginPath . $corePath . 'Actions.php';
     43  require_once $pluginPath . $corePath . 'ShippingRegistrar.php';
    4244
    4345  \WCPoczta\Code\Core\Bootstrap::init($pluginPath, plugin_dir_url(__FILE__), '1.3.194');
Note: See TracChangeset for help on using the changeset viewer.