Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 15 months 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
2 years 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
2 years ago

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

#3 @william.alexander
2 years ago

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

#4 @william.alexander
2 years ago

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

#5 @william.alexander
2 years 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
15 months ago

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