Make WordPress Core

Opened 8 years ago

Closed 4 years ago

#35778 closed enhancement (fixed)

Populate Website URL profile field for the 1st user after install

Reported by: eclare's profile eclare Owned by: efarem's profile EFAREM
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Users Keywords: good-first-bug has-patch
Focuses: administration Cc:

Description

When a new WP install is made, the 1st user (admin) could have the "Website" profile field (displayed at /wp-admin/profile.php) populated with the site's URL, as this will most likely be his choice anyway. This field is likely used by some plugins (for displaying author bio etc.), so we can make this a bit easier and less likely to be left empty.

Attachments (3)

35778.diff (411 bytes) - added by EFAREM 8 years ago.
Updates the user info just after the user is created
35778.2.diff (409 bytes) - added by EFAREM 8 years ago.
Tab :O
35778.patch (661 bytes) - added by viralsampat 7 years ago.
Edit the user information after the user is created.

Download all attachments as: .zip

Change History (11)

#1 @johnbillion
8 years ago

  • Keywords needs-patch good-first-bug added
  • Version trunk deleted

@EFAREM
8 years ago

Updates the user info just after the user is created

@EFAREM
8 years ago

Tab :O

#2 follow-up: @darrenlambert
8 years ago

Any thought on whether this should happen if the domain is localhost?
I assume, like all other URLs in the DB, that it will be updated when the site is moved to live.

#3 in reply to: ↑ 2 @zachflauaus
8 years ago

I agree with it just being "localhost" or whatever the local name of the site is on site create. Like you said, when you run a script to change URLs like searchreplacedb2.php or the like, it should just change things automatically.

#4 @DrewAPicture
8 years ago

  • Keywords has-patch added; needs-patch removed
  • Owner set to EFAREM
  • Status changed from new to assigned

Assigning to mark the good-first-bug as "claimed".

See 35778.2.diff

@viralsampat
7 years ago

Edit the user information after the user is created.

This ticket was mentioned in Slack in #core by viralsampat. View the logs.


7 years ago

This ticket was mentioned in Slack in #core by sergey. View the logs.


4 years ago

#7 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.4

#8 @SergeyBiryukov
4 years ago

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

In 46989:

Users: When creating the first user on installation, populate the Website profile field with the site URL.

Skip setting the field if the user already exists, which is the case when the user tables are being shared among multiple sites.

Props EFAREM, eclare, darrenlambert, zachflauaus, viralsampat.
Fixes #35778.

Note: See TracTickets for help on using tickets.