#57716 closed task (blessed) (fixed)
Remove server-side redirection in site editor
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | gutenberg-merge has-patch has-unit-tests commit |
Focuses: | Cc: |
Description
Remove server-side redirection if missing postType
and postId
query args when visiting Site Editor.
This is not needed any more as the routing is handled client side.
Related GB PRs:
- https://github.com/WordPress/gutenberg/pull/48023
- https://github.com/WordPress/gutenberg/pull/47777
Testing instructions would be to click Appearance->Editor
in WP admin and everything should work as before.
It requires this PR to land first: https://github.com/WordPress/wordpress-develop/pull/4070
Change History (17)
This ticket was mentioned in PR #4073 on WordPress/wordpress-develop by @ntsekouras.
2 years ago
#2
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/57716
Remove server-side redirection if missing postType and postId query args when visiting Site Editor.
This is not needed any more as the routing is handled client side.
Related GB PRs:
- https://github.com/WordPress/gutenberg/pull/48023
- https://github.com/WordPress/gutenberg/pull/47777
Testing instructions would be to click Appearance->Editor in WP admin and everything should work as before.
It requires this PR to land first: https://github.com/WordPress/wordpress-develop/pull/4070
#3
@
2 years ago
- Milestone changed from Awaiting Review to 6.2
- Owner set to hellofromTonya
- Status changed from new to reviewing
- Type changed from enhancement to task (blessed)
Currently reviewing for Beta 2 commit.
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
2 years ago
@hellofromTonya commented on PR #4073:
2 years ago
#5
https://github.com/WordPress/wordpress-develop/pull/4070 has been committed, unblocking this PR ✅
Currently reviewing for committing.
#6
@
2 years ago
- Keywords commit added
Patch: https://github.com/WordPress/wordpress-develop/pull/4070
- Confirmed covers the changes from https://github.com/WordPress/gutenberg/pull/48023/ ✅
- Tested before and after > works as expected ✅
Ready for commit 👍
Prepping commit now for Beta 2.
@hellofromTonya commented on PR #4073:
2 years ago
#8
Committed via https://core.trac.wordpress.org/changeset/55338.
#9
follow-up:
↓ 10
@
2 years ago
@hellofromTonya @ntsekouras Can and should the _resolve_home_block_template()
function be removed or deprecated? It's no longer used since [55338].
#10
in reply to:
↑ 9
@
2 years ago
- Keywords needs-patch added; has-patch commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to johnbillion:
@hellofromTonya @ntsekouras Can and should the
_resolve_home_block_template()
function be removed or deprecated? It's no longer used since [55338].
Good catch @johnbillion! The code in this ticket was added in [53093] including _resolve_home_block_template()
.
Can it be removed or deprecated?
Yes, I think so.
- No longer used in Core or Gutenberg.
- No instances in wordpress.org's plugin directory.
- No instances in wordpress.org's theme directory.
- It's marked private (internal Core usage).
Here's its doc page https://developer.wordpress.org/reference/functions/_resolve_home_block_template/.
Deprecate or remove?
I'd like to remove it as it's not used (see above), likely low BC risk given its specific use case, and not wired as a callback. But "likely low BC risk" concerns me. Leaning towards deprecating.
What do you think @johnbillion?
#11
@
2 years ago
Yeah +1 to deprecating and adding a note to the description to say the function is no longer used.
This ticket was mentioned in PR #4143 on WordPress/wordpress-develop by @hellofromTonya.
2 years ago
#12
- Keywords has-patch has-unit-tests added; needs-patch removed
Deprecate _resolve_home_block_template()
which is no longer used in Core since 55338.
As there is no replacement function, none is suggested in the deprecation notice.
Trac ticket: https://core.trac.wordpress.org/ticket/57716
@hellofromTonya commented on PR #4143:
2 years ago
#17
Committed via https://core.trac.wordpress.org/changeset/55436.
#57715 was marked as a duplicate.