WordPress.org

Make WordPress Core

Opened 11 months ago

Closed 4 months ago

#45061 closed defect (bug) (fixed)

Document how args are passed from `wp_insert_site()` to `wp_initialize_site()`

Reported by: jeremyfelt Owned by: jeremyfelt
Milestone: 5.2 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: good-first-bug has-patch dev-feedback
Focuses: docs, multisite Cc:

Description

The docs for wp_insert_site() include only the arguments that are used directly in that function. They should also mention how any other arguments passed along to the wp_initialize_site hook. By default, this can include user_id, title, options, and `meta.

Attachments (1)

45061.0.diff (739 bytes) - added by codemascot 11 months ago.
wp_insert_site() Documentation Update

Download all attachments as: .zip

Change History (9)

@codemascot
11 months ago

wp_insert_site() Documentation Update

#1 @sebastienserre
10 months ago

  • Keywords has-patch dev-feedback added; needs-patch removed

#2 @pento
7 months ago

  • Milestone changed from 5.1 to 5.2
  • Version trunk deleted

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


6 months ago

#4 @jeremyfelt
6 months ago

  • Owner set to jeremyfelt
  • Status changed from new to reviewing

This ticket was mentioned in Slack in #core-multisite by spacedmonkey. View the logs.


5 months ago

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


4 months ago

#7 @JeffPaul
4 months ago

Per input in today's bugsrub, @jeremyfelt will look to wrap up work here this weekend.

#8 @jeremyfelt
4 months ago

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

In 45236:

Docs: Add arguments passed by wp_insert_site() to wp_initialize_site().

Props codemascot.
Fixes #45061.

Note: See TracTickets for help on using tickets.