Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 5 weeks ago

#58172 closed defect (bug) (invalid)

wpmu_create_blog() requires a title parameter, but the parameter is not used.

Reported by: williamalexander's profile william.alexander Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.1
Component: Networks and Sites Keywords: needs-testing
Focuses: multisite Cc:

Description

https://developer.wordpress.org/reference/functions/wpmu_create_blog/

The function accepts these params:
wpmu_create_blog( string $domain, string $path, string $title, int $user_id, array $options = array(), int $network_id = 1 )

But the title does not get set when a new blog is created using wpmu_create_blog().

Change History (6)

#1 @spacedmonkey
11 months ago

Welcome @william.alexander . Can you provide more detail. It seems like title is used for the site title and stored in the new site's option table.

That said, we can also not change the parameter of this function, as it been in core for many years. I would recommend using wp_insert_site, which is a cleaner and new version of this function.

#2 @william.alexander
11 months ago

I mean that the site title is not getting set when this function is used in our testing.

#3 @william.alexander
11 months ago

Nevermind. Tested on fresh installation and it works. Must be a conflict.

#4 @william.alexander
11 months ago

  • Resolution set to invalid
  • Status changed from new to closed

#5 @william.alexander
11 months ago

Although if anyone looking at this can tell me how that title is getting set - I'd love to understand that better.

#6 @swissspidy
5 weeks ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.