embedpress
Last commit date
EmbedPress
8 years ago
assets
8 years ago
languages
8 years ago
vendor
8 years ago
CONTRIBUTING.md
8 years ago
PROVIDERS.md
8 years ago
autoloader.php
8 years ago
embedpress.php
8 years ago
includes.php
8 years ago
index.html
9 years ago
providers.php
8 years ago
readme.txt
8 years ago
autoloader.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package EmbedPress |
| 4 | * @author EmbedPress <help@embedpress.com> |
| 5 | * @copyright Copyright (C) 2018 EmbedPress. All rights reserved. |
| 6 | * @license GPLv2 or later |
| 7 | * @since 1.0.0 |
| 8 | */ |
| 9 | |
| 10 | use \EmbedPress\AutoLoader; |
| 11 | |
| 12 | defined('ABSPATH') or die("No direct script access allowed."); |
| 13 | |
| 14 | $autoLoaderFullClassName = EMBEDPRESS_NAMESPACE .'\\'. EMBEDPRESS_AUTOLOADER_NAME; |
| 15 | if (!defined('EMBEDPRESS_IS_LOADED') || !class_exists($autoLoaderFullClassName)) { |
| 16 | define('EMBEDPRESS_IS_LOADED', true); |
| 17 | |
| 18 | if (!class_exists($autoLoaderFullClassName)) { |
| 19 | require_once EMBEDPRESS_PATH_CORE . EMBEDPRESS_AUTOLOADER_NAME .'.php'; |
| 20 | } |
| 21 | |
| 22 | AutoLoader::register(str_replace('\\', "", EMBEDPRESS_NAMESPACE), EMBEDPRESS_PATH_CORE); |
| 23 | } |
| 24 | unset($autoLoaderFullClassName); |
| 25 |