-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathbootstrap.php
More file actions
23 lines (21 loc) · 824 Bytes
/
bootstrap.php
File metadata and controls
23 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* Central bootstrapping entry point for all non-autoloaded files.
*
* This file is mainly used for taking direct control of included files off from Composer's
* "files" directive, as that one can easily include the files multiple times, leading to
* redeclaration fatal errors.
*
* @package AmpProject/AmpWP
*/
$files_to_include = [
__DIR__ . '/../back-compat/back-compat.php' => 'amp_backcompat_use_v03_templates',
__DIR__ . '/../includes/amp-helper-functions.php' => 'amp_activate',
__DIR__ . '/../includes/admin/functions.php' => 'amp_init_customizer',
__DIR__ . '/../includes/deprecated.php' => 'amp_load_classes',
];
foreach ( $files_to_include as $file_to_include => $function_to_check ) {
if ( ! function_exists( $function_to_check ) ) {
include $file_to_include;
}
}