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
9a60bbed
Commit
9a60bbed
authored
2 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Linting
parent
089c59b9
No related branches found
No related tags found
1 merge request
!14
Add native block-editor support
Pipeline
#4813
passed with stages
in 2 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/src/js/index.js
+2
-3
2 additions, 3 deletions
assets/src/js/index.js
tests/test-class-external-permalinks-redux-block-editor.php
+1
-1
1 addition, 1 deletion
tests/test-class-external-permalinks-redux-block-editor.php
with
3 additions
and
4 deletions
assets/src/js/index.js
+
2
−
3
View file @
9a60bbed
...
@@ -14,10 +14,9 @@ const slug = 'external-permalinks-redux';
...
@@ -14,10 +14,9 @@ const slug = 'external-permalinks-redux';
/**
/**
* Render panel view.
* Render panel view.
*
*
* @param {Object} props Component props.
* @param {Object} props
Component props.
* @param {string} props.postType Post type.
* @param {string} props.postType Post type.
* @returns {JSX.Element|null}
* @return {JSX.Element|null} Sidebar panel.
* @constructor
*/
*/
const
View
=
(
{
postType
}
)
=>
{
const
View
=
(
{
postType
}
)
=>
{
if
(
!
postType
)
{
if
(
!
postType
)
{
...
...
This diff is collapsed.
Click to expand it.
tests/test-class-external-permalinks-redux-block-editor.php
+
1
−
1
View file @
9a60bbed
...
@@ -137,7 +137,7 @@ class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase {
...
@@ -137,7 +137,7 @@ class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase {
*/
*/
public
function
test__get_status_codes
()
{
public
function
test__get_status_codes
()
{
$class
=
External_Permalinks_Redux_Block_Editor
::
get_instance
();
$class
=
External_Permalinks_Redux_Block_Editor
::
get_instance
();
$reflection
=
new
\
ReflectionClass
(
$class
);
$reflection
=
new
ReflectionClass
(
$class
);
$method
=
$reflection
->
getMethod
(
'_get_status_codes'
);
$method
=
$reflection
->
getMethod
(
'_get_status_codes'
);
$method
->
setAccessible
(
true
);
$method
->
setAccessible
(
true
);
...
...
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