Skip to content

Conversation

@AKSHAT2802
Copy link
Contributor

@AKSHAT2802 AKSHAT2802 commented Aug 27, 2025

PROOF OF CONCEPT - AWAITING FEATURE APPROVAL

What?

Closes: #71328

This PR introduces a new core/post-edit-link block that provides a convenient way for content editors to access the WordPress admin edit screen directly from the frontend. The block displays an "Edit" link that is only visible to users with appropriate edit permissions.

Why?

There is a PHP function called get_edit_post_link, which renders the link to edit the post. Many classic themes use this function to make users edit the post easily:
However, there is no equivalent block to display the link, so it is not possible to inject the edit link into the theme template.

@Mamaduka
Copy link
Member

Thanks for contributing, @AKSHAT2802!

There's no decision whether this feature should be implemented or not. I would recommend waiting until similar issues are actionable before starting work on the PRs.

@AKSHAT2802 AKSHAT2802 marked this pull request as ready for review August 28, 2025 10:05
@github-actions
Copy link

github-actions bot commented Aug 28, 2025

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin, New Block.
  • Labels found: [Type] Enhancement, New Block.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @vinay070403.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: vinay070403.

Co-authored-by: AKSHAT2802 <akshat2802@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@AKSHAT2802
Copy link
Contributor Author

Thanks for contributing, @AKSHAT2802!

There's no decision whether this feature should be implemented or not. I would recommend waiting until similar issues are actionable before starting work on the PRs.

Thanks for the guidance! @Mamaduka You're absolutely right 🙇
Since this PR is already in draft status, I'll keep it as a proof-of-concept implementation.
I'll update the PR description to clearly indicate this is a proof-of-concept pending feature approval

@AKSHAT2802 AKSHAT2802 marked this pull request as draft August 28, 2025 10:09
@im3dabasia im3dabasia added New Block Suggestion for a new block [Type] Enhancement A suggestion for improvement. labels Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Block Suggestion for a new block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Block: "Post Edit Link" block

3 participants