From 11bf59dd29fb8170671a02962e8728ac6e0c03d1 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 11 Jun 2022 15:46:41 -0700
Subject: [PATCH] Scaffold class for block-editor integration

---
 external-permalinks-redux.php                        | 12 ++++++++++++
 inc/class-external-permalinks-redux-block-editor.php | 11 +++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 inc/class-external-permalinks-redux-block-editor.php

diff --git a/external-permalinks-redux.php b/external-permalinks-redux.php
index b3a194d..ace9c2b 100644
--- a/external-permalinks-redux.php
+++ b/external-permalinks-redux.php
@@ -24,6 +24,9 @@
  * @package External_Permalinks_Redux
  */
 
+// Include block-editor class.
+require_once __DIR__ . '/inc/class-external-permalinks-redux-block-editor.php';
+
 /**
  * Class external_permalinks_redux.
  */
@@ -57,6 +60,13 @@ class external_permalinks_redux {
 	 */
 	public $status_codes;
 
+	/**
+	 * Instance of the block-editor integration class.
+	 *
+	 * @var External_Permalinks_Redux_Block_Editor
+	 */
+	public $block_editor;
+
 	/**
 	 * Instantiate class as a singleton.
 	 *
@@ -82,6 +92,8 @@ class external_permalinks_redux {
 		add_filter( 'post_type_link', array( $this, 'filter_post_permalink' ), 1, 2 );
 		add_filter( 'page_link', array( $this, 'filter_page_link' ), 1, 2 );
 		add_action( 'wp', array( $this, 'action_wp' ) );
+
+		$this->block_editor = new External_Permalinks_Redux_Block_Editor();
 	}
 
 	/**
diff --git a/inc/class-external-permalinks-redux-block-editor.php b/inc/class-external-permalinks-redux-block-editor.php
new file mode 100644
index 0000000..1406cc5
--- /dev/null
+++ b/inc/class-external-permalinks-redux-block-editor.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * Block editor support.
+ *
+ * @package External_Permalinks_Redux
+ */
+
+/**
+ * Class Block_Editor.
+ */
+class External_Permalinks_Redux_Block_Editor {}
-- 
GitLab