Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
External Permalinks Redux
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
External Permalinks Redux
Commits
11bf59dd
Commit
11bf59dd
authored
2 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Scaffold class for block-editor integration
parent
387a2b18
No related branches found
No related tags found
1 merge request
!14
Add native block-editor support
Pipeline
#4801
failed with stages
in 2 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
external-permalinks-redux.php
+12
-0
12 additions, 0 deletions
external-permalinks-redux.php
inc/class-external-permalinks-redux-block-editor.php
+11
-0
11 additions, 0 deletions
inc/class-external-permalinks-redux-block-editor.php
with
23 additions
and
0 deletions
external-permalinks-redux.php
+
12
−
0
View file @
11bf59dd
...
@@ -24,6 +24,9 @@
...
@@ -24,6 +24,9 @@
* @package External_Permalinks_Redux
* @package External_Permalinks_Redux
*/
*/
// Include block-editor class.
require_once
__DIR__
.
'/inc/class-external-permalinks-redux-block-editor.php'
;
/**
/**
* Class external_permalinks_redux.
* Class external_permalinks_redux.
*/
*/
...
@@ -57,6 +60,13 @@ class external_permalinks_redux {
...
@@ -57,6 +60,13 @@ class external_permalinks_redux {
*/
*/
public
$status_codes
;
public
$status_codes
;
/**
* Instance of the block-editor integration class.
*
* @var External_Permalinks_Redux_Block_Editor
*/
public
$block_editor
;
/**
/**
* Instantiate class as a singleton.
* Instantiate class as a singleton.
*
*
...
@@ -82,6 +92,8 @@ class external_permalinks_redux {
...
@@ -82,6 +92,8 @@ class external_permalinks_redux {
add_filter
(
'post_type_link'
,
array
(
$this
,
'filter_post_permalink'
),
1
,
2
);
add_filter
(
'post_type_link'
,
array
(
$this
,
'filter_post_permalink'
),
1
,
2
);
add_filter
(
'page_link'
,
array
(
$this
,
'filter_page_link'
),
1
,
2
);
add_filter
(
'page_link'
,
array
(
$this
,
'filter_page_link'
),
1
,
2
);
add_action
(
'wp'
,
array
(
$this
,
'action_wp'
)
);
add_action
(
'wp'
,
array
(
$this
,
'action_wp'
)
);
$this
->
block_editor
=
new
External_Permalinks_Redux_Block_Editor
();
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
inc/class-external-permalinks-redux-block-editor.php
0 → 100644
+
11
−
0
View file @
11bf59dd
<?php
/**
* Block editor support.
*
* @package External_Permalinks_Redux
*/
/**
* Class Block_Editor.
*/
class
External_Permalinks_Redux_Block_Editor
{}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment