Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Patch to check if Redirection plugin is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Chach Sikes authored and Chach Sikes committed Jan 21, 2022
1 parent a067600 commit 4918673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ca-design-system-gutenberg-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Create content with the California Design System.
* Author: Office of Digital Innovation
* Author URI: https://digital.ca.gov
* Version: 1.1.4
* Version: 1.1.5
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: ca-design-system
Expand All @@ -22,7 +22,7 @@
}

// Plugin Constants.
define('CAGOV_DESIGN_SYSTEM_HEADLESS_WORDPRESS__VERSION', '1.1.4');
define('CAGOV_DESIGN_SYSTEM_HEADLESS_WORDPRESS__VERSION', '1.1.5');
define('CAGOV_DESIGN_SYSTEM_HEADLESS_WORDPRESS__DIR_PATH', plugin_dir_path(__FILE__));
define('CAGOV_DESIGN_SYSTEM_HEADLESS_WORDPRESS__ADMIN_URL', plugin_dir_url(__FILE__));
define('CAGOV_DESIGN_SYSTEM_HEADLESS_WORDPRESS__FILE', __FILE__);
Expand Down
2 changes: 1 addition & 1 deletion includes/publishing/api_redirection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function cagov_design_system_start_rest_redirection()
{
$redirection_plugin = WP_PLUGIN_DIR . '/redirection';

if (is_dir($redirection_plugin)) {
if (is_dir($redirection_plugin) && is_plugin_active( "redirection" ) ) {
// plugin directory found!
require_once $redirection_plugin . '/api/api.php';
require_once $redirection_plugin . '/redirection-admin.php';
Expand Down

0 comments on commit 4918673

Please sign in to comment.