-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust file structure to allow for easier installation (#5)
* Adjust file structure to allow for easier installation * Update README
- Loading branch information
1 parent
ad4a813
commit 4e61a41
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
], | ||
"autoload": { | ||
"files": [ | ||
"wp-rest-api-auth0.php" | ||
"src/wp-rest-api-auth0.php" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<?php | ||
/** | ||
* Loader for joshcanhelp/wp-rest-api-auth0 MU-Plugin. | ||
* | ||
* Copy this file to wp-content/mu-plugins/ | ||
* Plugin Name: WP REST API Auth0 | ||
* Plugin URL: https://github.com/joshcanhelp/wp-rest-api-auth0 | ||
* Description: Protect your WordPress REST API with Auth0 | ||
* Version: 1.2.0 | ||
* Author: Josh Cunningham <[email protected]> | ||
* Author URI: https://www.joshcanhelp.com | ||
* | ||
* @package WpRestApiAuth0 | ||
*/ | ||
|
@@ -11,9 +14,9 @@ | |
|
||
if ( | ||
! class_exists( 'Auth0\\SDK\\Helpers\\Tokens\\SymmetricVerifier' ) | ||
&& is_file( __DIR__ . '/wp-rest-api-auth0/vendor/autoload.php' ) | ||
&& is_file( __DIR__ . '/vendor/autoload.php' ) | ||
) { | ||
require_once __DIR__ . '/wp-rest-api-auth0/vendor/autoload.php'; | ||
require_once __DIR__ . '/vendor/autoload.php'; | ||
} | ||
|
||
require_once __DIR__ . '/wp-rest-api-auth0/wp-rest-api-auth0.php'; | ||
require_once __DIR__ . '/src/wp-rest-api-auth0.php'; |