WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 4 months ago

#35778 assigned enhancement

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

Reported by: eclare Owned by: EFAREM
Milestone: Awaiting Review 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 22 months ago.
Updates the user info just after the user is created
35778.2.diff (409 bytes) - added by EFAREM 22 months ago.
Tab :O
35778.patch (661 bytes) - added by viralsampat 5 months ago.
Edit the user information after the user is created.

Download all attachments as: .zip

Change History (8)

#1 @johnbillion
22 months ago

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

@EFAREM
22 months ago

Updates the user info just after the user is created

@EFAREM
22 months ago

Tab :O

#2 follow-up: @darrenlambert
20 months 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
18 months 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
18 months 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
5 months ago

Edit the user information after the user is created.

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


4 months ago

Note: See TracTickets for help on using tickets.