-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisguise.php
More file actions
36 lines (30 loc) · 965 Bytes
/
disguise.php
File metadata and controls
36 lines (30 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Plugin Name: Disguise Http Requests
* Plugin URI: https://github.com/g000m/disguise-http-requests
* Description: Disguise the origin of http requests. Designed to allow Satispress to retrieve updates in the name of a licensed host.
* Author: Gabe Herbert
* Author URI: https://gabeherbert.com
* Text Domain: disguise
* Domain Path: /languages
* Version: 0.1.0
* GitHub Plugin URI: g000m/disguise-http-requests
*
* @package Disguise
*/
namespace Disguise;
// Exit if accessed directly.
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
// Display a notice and bail if dependencies are missing.
if ( ! function_exists( __NAMESPACE__ . '\autoloader_classmap' ) ) {
require_once __DIR__ . '/src/functions.php';
if ( is_admin() ) {
require_once __DIR__ . '/src/Disguises.php';
}
return;
}