Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#1506 closed defect (bug) (fixed)

upgrade.php "have fun" link to blog is blank

Reported by: ryanduff's profile ryanduff Owned by: markjaquith's profile markjaquith
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)

upgrade-schema.diff (478 bytes) - added by ringmaster 18 years ago.
This sets 'home' to a guess at the blog URL.
wp16-upgrade.php.diff (544 bytes) - added by markjaquith 18 years ago.
for WP 1.6 SVN (should have a trailing slash on the URI)
wp16-upgrade-schema.php.diff (592 bytes) - added by markjaquith 18 years ago.
for WP 1.6 SVN (adds 'home' on install, and on upgrade (if blank))

Download all attachments as: .zip

Change History (14)

#1 @ryanduff
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]

#2 @ryanduff
18 years ago

Summary should read "instead of get_settings('siteurl')" not "instead of get_settings('url')". Patch was correct, typo in summary on my part

#3 @ryan
18 years ago

siteurl is not the proper place to send someone. home should not be empty. That is what needs to be fixed.

@ringmaster
18 years ago

This sets 'home' to a guess at the blog URL.

#4 @ringmaster
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.

#5 @markjaquith
18 years ago

  • Keywords bg|needs-patch added

#6 @markjaquith
18 years ago

$guesurl isn't necessarily right... it points to the wordpress directory, which is what it did for 1.5.x

#7 @ryanduff
18 years ago

#1596 was marked a duplicate of this

@markjaquith
18 years ago

for WP 1.6 SVN (should have a trailing slash on the URI)

@markjaquith
18 years ago

for WP 1.6 SVN (adds 'home' on install, and on upgrade (if blank))

#8 @markjaquith
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 @markjaquith
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

#10 @ryan
18 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [2817]) Set home during install. Props Owen and Mark. fixes #1506

#11 @(none)
17 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.