#1506 closed defect (bug) (fixed)
upgrade.php "have fun" link to blog is blank
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.6 |
Component: | Administration | Keywords: | upgrade bg|has-patch bg|commit |
Focuses: | Cc: |
Description
upgrade php uses get_settings('home') instead of get_settings('url') to generate the link back to the main page. Home is currently an empty variable.
Patch attached.
Attachments (3)
Change History (14)
#1
@
18 years ago
- Summary changed from upgrade.php uses 'home' instead of 'siteurl' for return link to upgrade.php uses 'home' instead of 'siteurl' for return link [patch attached]
#3
@
18 years ago
siteurl is not the proper place to send someone. home should not be empty. That is what needs to be fixed.
#4
@
18 years ago
Some clarification on the purpose of options in general, and 'home' vs. 'siteurl' in specific might be useful.
I noticed that a lot of the 'siteurl' option requests had changed to 'home' in this latest patch. Plugin authors would do good to be aware of potential resulting changes to their code - I am known to have used 'siteurl' quite often.
#6
@
18 years ago
$guesurl isn't necessarily right... it points to the wordpress directory, which is what it did for 1.5.x
#8
@
18 years ago
- Keywords bg|has-patch bg|commit added; bg|needs-patch removed
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
Okay. Uploaded two patches.
The upgrade.php one adds a trailing slash to the URI given. Small thing, I know... but might as well, while we're at it.
The upgrade-schema.php patch keeps ringmaster's fix to add a 'home' value on install, but also has a line to add it if it is blank (for the upgrade). The problem was that add_option() doesn't do anything if the option already exists. So my patch checks to see if it is blank, and updates it if it is. Tested, and works.
Marking this for commit.
#9
@
18 years ago
- Summary changed from upgrade.php uses 'home' instead of 'siteurl' for return link [patch attached] to upgrade.php "have fun" link to blog is blank
Summary should read "instead of get_settings('siteurl')" not "instead of get_settings('url')". Patch was correct, typo in summary on my part