#62929 closed defect (bug) (invalid)
Playground: Sample page has a broken link to dashboard
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
I know that the underlying functionality is much bigger, but I still want to raise this ticket.
On WordPress Playground the sample page links to the dashboard, which is a broken link.
As a new WordPress user, you should go to **your dashboard** to delete this page and create new pages for your content.
your dashboard is linking to 127.0.0.1:9400/wp-admin which is not working.
A quick fix would be to remove the link from the sample pages.
Change History (6)
This ticket was mentioned in PR #8279 on WordPress/wordpress-develop by @ankitkumarshah.
14 months ago
#1
- Keywords has-patch added
@ankitkumarshah commented on PR #8279:
14 months ago
#2
For now, In this PR I have implemented the quick fix but I think we can add aIS_WORDPRESS_PLAYGROUND constant and accordingly render your dashboard with and without link.
Found that we can detect WordPress is running in playground by $_SERVER[https://wordpress.org/support/topic/is-there-a-way-from-inside-wordpress-to-detect-its-running-in-playground/ 'SERVER_SOFTWARE'] == 'PHP.wasm' according to this [discussion] But I am unsure is this correct.
@ankitkumarshah commented on PR #8279:
14 months ago
#3
Hi @hanneslsm could you please test and review this PR.
#4
@
14 months ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Hi there and welcome to WordPress Trac
Playground issues like this should be reported at https://github.com/WordPress/wordpress-playground, as it's not a bug in WordPress core itself.
@swissspidy commented on PR #8279:
14 months ago
#5
Please kindly note that this should be reported & fixed at https://github.com/WordPress/wordpress-playground instead
Trac ticket: #62929
## Description
This PR removes the dashboard link from the sample page content in
upgrade.php. Previously, the link was usingadmin_url()which caused issues in environments like WordPress Playground where the URL might not be accessible.## Testing Instructions
## Screenshots (if applicable)

### Before:
### After:
