[wp-trac] [WordPress Trac] #54216: missing base href in wp-admin
WordPress Trac
noreply at wordpress.org
Mon Oct 4 12:24:27 UTC 2021
#54216: missing base href in wp-admin
----------------------------+-----------------------------
Reporter: danielrufde | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
I'm currently testing WordPress with a custom setup using the built-in PHP
webserver (php -S localhost:8080 -t .) and I stumbled upon a problem.
When I access http://localhost:8080/wp-admin everything looks fine. But
the links point to options-general.php, edit.php, plugins.php and so on
which results in http://localhost:8080/options-general.php,
http://localhost:8080/edit.php, http://localhost:8080/plugins.php and so
on.
Only on http://localhost:8080/wp-admin/index.php and http://localhost:8080
/wp-admin/ the links result in http://localhost:8080/wp-admin/options-
general.php and so on.
I am aware that the PHP built-in webserver should normally not be used but
I have to use it since there are several issues with the WP CLI like
https://github.com/wp-cli/server-command/issues/71 and I just need a small
local demo setup using github.com/DanielRuf/run-local-wordpress.
I added the missing base metatag in the wp_admin_bar_header function using
a simple echo "<base href=\"".admin_url('')."\">";
I suggest to add an option to enable the output of the needed base tag.
This trac issue is created as according to
https://wordpress.org/support/topic/missing-base-href-in-wp-admin-needed-
for-php-built-in-webserver/#post-14932543 this should be reported as "bug"
or trac issue in the WordPress core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54216>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list