Skip to content
Snippets Groups Projects
Commit 56e68fe5 authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

Merge branch 'feature/autoload-classmap' into 'master'

feature(core): Added classmap autoload

See merge request !32
parents 2a57d608 7dd90810
No related branches found
Tags 3.2.8
1 merge request!32feature(core): Added classmap autoload
Pipeline #11307 failed with stages
in 53 seconds
## [3.2.8] - 2022-07-18
### Added
- __DIR__ for requires
## [3.2.7] - 2021-03-01 ## [3.2.7] - 2021-03-01
### Fixed ### Fixed
- Update message and translation - Update message and translation
......
<?php <?php
if ( ! interface_exists( 'WPDesk_Requirement_Checker' ) ) { if ( ! interface_exists( 'WPDesk_Requirement_Checker' ) ) {
require_once 'Requirement_Checker.php'; require_once __DIR__ . '/Requirement_Checker.php';
} }
if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) { if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
......
<?php <?php
if ( ! class_exists( 'Basic_Requirement_Checker' ) ) { if ( ! class_exists( 'Basic_Requirement_Checker' ) ) {
require_once 'Basic_Requirement_Checker.php'; require_once __DIR__ . '/Basic_Requirement_Checker.php';
} }
if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) { if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) {
require_once 'Basic_Requirement_Checker_With_Update_Disable.php'; require_once __DIR__ . '/Basic_Requirement_Checker_With_Update_Disable.php';
} }
/** /**
......
<?php <?php
if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) { if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
require_once 'Basic_Requirement_Checker.php'; require_once __DIR__ . '/Basic_Requirement_Checker.php';
} }
if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) { if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) {
......
...@@ -13,4 +13,4 @@ if ( getenv( 'PLUGIN_PATH' ) !== false ) { ...@@ -13,4 +13,4 @@ if ( getenv( 'PLUGIN_PATH' ) !== false ) {
require_once( getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/functions.php' ); require_once( getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/functions.php' );
putenv('WP_TESTS_DIR=' . getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit'); putenv('WP_TESTS_DIR=' . getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit');
require_once( getenv( 'WC_DEVELOP_DIR' ) . '/tests/bootstrap.php' ); require_once( getenv( 'WC_DEVELOP_DIR' ) . '/tests/legacy/bootstrap.php' );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment