Skip to content
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

Fix hardcoded wp-admin URLs #576

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

t-hamano
Copy link
Contributor

@t-hamano t-hamano commented Apr 21, 2024

Fixes #561

This PR fixes the following two links so that they work correctly in an environment installed in a subdirectory.

http://localhost:8888/wp-admin/themes.php?page=manage-fonts

manage-fonts

http://localhost:8888/wp-admin/themes.php?page=create-block-theme

create-block-theme

Testing Instructions

It's a bit complicated, but in order to actually test this PR, you'll need an environment with WordPress installed in a subdirectory. There are several ways to do this, but this handbook page will help you set up your environment.

Comment on lines -250 to +253
alt="WordPress 6.5 Font Library"
alt={ __(
'WordPress 6.5 Font Library',
'create-block-theme'
) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor fix

Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

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

These changes test well for me and the code looks good. Thanks for the fix, @t-hamano!

@mikachan mikachan merged commit 5d8dd7b into WordPress:trunk Apr 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hardcoded URLs to the Site Editor breaks links on some installs
2 participants