#58172 closed defect (bug) (invalid)
wpmu_create_blog() requires a title parameter, but the parameter is not used.
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.
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.