|
10 | 10 | * |
11 | 11 | * Plugin Name: Cloudflare Access SSO |
12 | 12 | * Description: Facilitates automatic login to WordPress when domain is protected with Cloudflare Access |
13 | | - * Version: 1.0.3 |
| 13 | + * Version: 1.0.4 |
14 | 14 | * Plugin URI: https://github.com/jamesmorrison/cloudflare-access-sso |
15 | 15 | * Author: James Morrison |
16 | 16 | * Author URI: https://jamesmorrison.uk/ |
|
33 | 33 | // Security check |
34 | 34 | defined( 'ABSPATH' ) || exit; |
35 | 35 |
|
| 36 | +// Useful global constants |
| 37 | +define( 'CF_ACCESS_SSO_PLUGIN_VERSION', '1.0.4' ); |
| 38 | +define( 'CF_ACCESS_SSO_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 39 | +define( 'CF_ACCESS_SSO_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 40 | +define( 'CF_ACCESS_SSO_PLUGIN_INC', CF_ACCESS_SSO_PLUGIN_PATH . 'includes/' ); |
| 41 | +define( 'CF_ACCESS_GITHUB_URL', 'https://github.com/jamesmorrison/cloudflare-access-sso' ); |
| 42 | + |
36 | 43 | // The Cloudflare Team Name is required |
37 | 44 | if ( ! defined( 'CF_ACCESS_TEAM_NAME' ) ) { |
38 | 45 | error_log( 'Cloudflare Access SSO Error: Required constant: CF_ACCESS_TEAM_NAME is not defined.' ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log |
|
67 | 74 | define( 'CF_ACCESS_NEW_USER_ROLE', 'subscriber' ); |
68 | 75 | } |
69 | 76 |
|
70 | | -// Useful global constants |
71 | | -define( 'CF_ACCESS_SSO_PLUGIN_VERSION', '1.0.3' ); |
72 | | -define( 'CF_ACCESS_SSO_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
73 | | -define( 'CF_ACCESS_SSO_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
74 | | -define( 'CF_ACCESS_SSO_PLUGIN_INC', CF_ACCESS_SSO_PLUGIN_PATH . 'includes/' ); |
75 | | -define( 'CF_ACCESS_GITHUB_URL', 'https://github.com/jamesmorrison/cloudflare-access-sso' ); |
76 | | - |
77 | 77 | // Load plugin classes |
78 | 78 | if ( ! file_exists( CF_ACCESS_SSO_PLUGIN_PATH . 'vendor/autoload.php' ) ) { |
79 | 79 | error_log( 'Cloudflare Access SSO Error: Composer dependencies are missing. Please run `composer install` in the plugin directory.' ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log |
|
0 commit comments