Skip to content

Fix: Correct site_url handling for custom post types and taxonomies in acf admin #957

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttsuru
Copy link

@ttsuru ttsuru commented May 1, 2025

In the WordPress admin panel, when viewing the advanced settings for custom post types and taxonomies, the permalink structure is displayed.

However, in environments like Bedrock or when WordPress is installed in a subdirectory such as /wp, site_url() may include /wp, even though this path is not part of the actual public URL.

Example:

This caused discrepancies in the displayed URLs.
This PR fixes the issue by ensuring the correct URL is used.

@ttsuru ttsuru requested a review from a team as a code owner May 1, 2025 05:40
@ttsuru
Copy link
Author

ttsuru commented May 1, 2025

image

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.

1 participant