forked from WoollyinWalesIT/jomres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
21 lines (19 loc) · 792 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
* Core file.
*
* @author Vince Wooll <sales@jomres.net>
*
* @version Jomres 10.2.2
*
* @copyright 2005-2022 Vince Wooll
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly
**/
/**
*
* Prevents scripts from trying to run files directly from the Jomres directory.
*
* Recent changes to WP 5.x mean that WP was trying to call index.php in the Jomres dir. Previously this script did nothing except to say "don't use me" however now it will require the index.php in the directory above, essentially ensuring that Jomres is correctly triggered through the WP framework instead.
*
*/
require_once( __DIR__.DIRECTORY_SEPARATOR.'../index.php');