Opened 20 years ago
Closed 19 years ago
#4006 closed defect (bug) (fixed)
wp_die stylesheet path needs to be absolute
| Reported by: | filosofo | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Administration | Version: | 2.2 |
| Severity: | normal | Keywords: | wp_die stylesheet is_wp_error has-patch |
| Cc: | Focuses: |
Description
I have a plugin that calls wp_die, but not in the WP top-level directory, so the relative links to the error message stylesheet don't work.
The attached patch makes the path to the stylesheet absolute.
Attachments (3)
Change History (10)
#4
in reply to: ↑ 2
@
20 years ago
- Keywords is_wp_error added
Replying to Sewar:
This way
wp_diewon't work if WP didn't installed yet, see #3138.
Oops. I wondered why that existing code was there.
The second patch works even without wp installed, in the top-level directory and in wp-admin.
I also added a fix you can see in the upper half of the patch for a problematic call to is_wp_error if you try to run /wp-admin/install.php
#5
@
20 years ago
Great, if this code moved to get_bloginfo('wpurl') it will be possible for other parts of WP to use it also.
Thanks a lot for fixing these bugs.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This way
wp_diewon't work if WP didn't installed yet, see #3138.But if #4003 committed, this will be usable.