Skip to content

Commit

Permalink
Use absolute require file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Apr 1, 2022
1 parent efd400d commit 6d4c81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seriously-simple-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

use SeriouslySimpleStats\Classes\Stats;

require_once 'vendor/autoload.php';

define( 'SSP_STATS_VERSION', '1.3.0' );
define( 'SSP_STATS_DIR_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );

require_once SSP_STATS_DIR_PATH . 'vendor/autoload.php';

if ( ! function_exists( 'is_ssp_active' ) ) {
require_once 'ssp-includes/ssp-functions.php';
require_once SSP_STATS_DIR_PATH . 'ssp-includes/ssp-functions.php';
}

if ( is_ssp_active( '1.13.1' ) ) {
Expand Down

0 comments on commit 6d4c81a

Please sign in to comment.