From 29c10bad1dc822cc9b2e440bf964476a4afe5baf Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 22 Feb 2016 09:08:26 -0500 Subject: [PATCH] Final PR --- README.md | 8 -------- library/class-wo-api.php | 6 +----- library/class-wo-table.php | 7 ++----- library/keys/private_key.pem | 27 --------------------------- library/keys/public_key.pem | 9 --------- readme.txt | 4 ++-- wp-oauth-main.php | 9 +++------ wp-oauth.php | 2 +- 8 files changed, 9 insertions(+), 63 deletions(-) delete mode 100644 README.md delete mode 100644 library/keys/private_key.pem delete mode 100644 library/keys/public_key.pem diff --git a/README.md b/README.md deleted file mode 100644 index 66ef511..0000000 --- a/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# [WP OAuth Server](https://wp-oauth.com/) - -Create and Manage an OAuth 2.0 server powered by WordPress. Become a Single Sign On Provider and or resource server. -WP OAuth Server is built for medium to large business's but works well for small and personal projects as well. - -This plugin only supports WordPress 4.4.0 or greater - - diff --git a/library/class-wo-api.php b/library/class-wo-api.php index 6a1c3db..2e412a4 100644 --- a/library/class-wo-api.php +++ b/library/class-wo-api.php @@ -5,11 +5,7 @@ * For now, you can read here to understand how this plugin works. * @link(Github, http://bshaffer.github.io/oauth2-server-php-docs/) */ -if (! function_exists( 'add_filter' ) ) { - header('Status: 403 Forbidden'); - header('HTTP/1.1 403 Forbidden'); - exit(); -} +defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); do_action( 'wo_before_api', array( $_REQUEST ) ); require_once dirname( __FILE__ ) . '/OAuth2/Autoloader.php'; diff --git a/library/class-wo-table.php b/library/class-wo-table.php index af42ccb..21eb221 100644 --- a/library/class-wo-table.php +++ b/library/class-wo-table.php @@ -1,9 +1,6 @@ * @package WordPress OAuth Server */ -if (!function_exists('add_filter')) { - header('Status: 403 Forbidden'); - header('HTTP/1.1 403 Forbidden'); - exit(); -} + +defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); class WO_Server { /** Plugin Version */ - public $version = "3.1.95"; + public $version = "3.1.96"; /** Server Instance */ public static $_instance = null; diff --git a/wp-oauth.php b/wp-oauth.php index b280f2d..fac5ab8 100644 --- a/wp-oauth.php +++ b/wp-oauth.php @@ -2,7 +2,7 @@ /** * Plugin Name: WP OAuth Server * Plugin URI: http://wp-oauth.com - * Version: 3.1.95 + * Version: 3.1.96 * Description: Use WordPress to power your OAuth Server. Provide Single Sign On and other OAuth functionality. * Author: Justin Greer * Author URI: http://wp-oauth.com