Skip to content

Revert Admin bar: Update the Edit Site link #69974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025
Merged

Conversation

carolinan
Copy link
Contributor

What?

Reverts #69271, the updated "Edit Site" link in the WordPress admin bar, based on feedback.
This PR removes the admin-bar.php file which contained the filter which updated the admin bar link.
It keeps the old changelog with the reference to the core ticket.

Partial for #63785

Why?

Based on feedback, the updated link, - which lead to the first page in the Site Editor and not the current template, caused disruption of user workflows.

Testing Instructions

If you are testing this on WordPress 6.8, there will be no change, since the removed file was added to the plugin to make the plugin compatible with 6.8.

On versions lower than 6.8:
Apply the PR.
Activate the Gutenberg plugin.
Activate a block theme.
Visit the front of the website while logged in, with the admin bar enabled.
Locate the "Edit Site" link in the admin bar and confirm that activating the link leads to the current template, in the Site Editor.

@carolinan carolinan marked this pull request as ready for review April 23, 2025 16:24
@carolinan carolinan requested a review from spacedmonkey as a code owner April 23, 2025 16:24
Copy link

github-actions bot commented Apr 23, 2025

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.

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

Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: aaronjorbin <jorbin@git.wordpress.org>
Co-authored-by: Marc-pi <mdxfr@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

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

@carolinan
Copy link
Contributor Author

I understand this does not solve the problem in core, which needs a Trac ticket - I do not see that a trac ticket for reverting has been opened already. But this is what I managed to do today. If this is not the correct method, feel free to close.

@carolinan carolinan added the [Type] Enhancement A suggestion for improvement. label Apr 23, 2025
@t-hamano t-hamano added the General Interface Parts of the UI which don't fall neatly under other labels. label Apr 24, 2025
@t-hamano t-hamano moved this to 🔎 Needs Review in WordPress 6.8.x Editor Tasks Apr 24, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I have submitted a core ticket and a core patch. Can you link the core patch URL to this PR?

I think the rule of adding a backport changelog applies to minor releases as well as major ones.

require __DIR__ . '/compat/wordpress-6.8/admin-bar.php';
// Note: admin-bar.php (69271) was reverted in Gutenberg 20.8.0. See https://github.com/WordPress/gutenberg/pull/69974.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this comment necessary?

Copy link
Contributor Author

@carolinan carolinan May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it because I knew this would not be the last change to this menu feature.
When I had to research the past changes, it was a bit of a pain to find all the history.

@aaronjorbin
Copy link
Member

The related change for WordPress Core has landed - https://core.trac.wordpress.org/changeset/60193

@t-hamano t-hamano added the No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core label Apr 28, 2025
@Marc-pi
Copy link

Marc-pi commented May 5, 2025

@aaronjorbin / @t-hamano / @Mamaduka seems this one did not land into 20.8 RC, right?
can you add it into GB 20.8 final ?

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the related change for WordPress core has been committed, I think the backport changelog file isn't required in this PR.

@t-hamano
Copy link
Contributor

t-hamano commented May 6, 2025

@Mamaduka, Is there any chance to include this PR in Gutenberg 20.8? I know the 20.8 RC has already been processed.

@Mamaduka Mamaduka added the Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) label May 7, 2025
@Mamaduka
Copy link
Member

Mamaduka commented May 7, 2025

I'll backport this before the stable release. Thanks for the ping.

@Mamaduka Mamaduka merged commit d2b7569 into trunk May 7, 2025
73 of 76 checks passed
@Mamaduka Mamaduka deleted the revert/69271-admin-bar branch May 7, 2025 09:11
@github-actions github-actions bot added this to the Gutenberg 20.9 milestone May 7, 2025
@t-hamano t-hamano moved this from 🔎 Needs Review to ✅ Done in WordPress 6.8.x Editor Tasks May 8, 2025
Mamaduka added a commit that referenced this pull request May 14, 2025
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: aaronjorbin <jorbin@git.wordpress.org>
Co-authored-by: Marc-pi <mdxfr@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
@Mamaduka Mamaduka removed the Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) label May 14, 2025
Mamaduka added a commit that referenced this pull request May 14, 2025
Co-authored-by: Carolina Nymark <myazalea@hotmail.com>
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: aaronjorbin <jorbin@git.wordpress.org>
Co-authored-by: Marc-pi <mdxfr@git.wordpress.org>
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: aaronjorbin <jorbin@git.wordpress.org>
Co-authored-by: Marc-pi <mdxfr@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels. No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core [Type] Enhancement A suggestion for improvement.
Projects
Development

Successfully merging this pull request may close these issues.

5 participants