[wp-trac] [WordPress Trac] #48878: 5.1 wp_insert_site bug

WordPress Trac noreply at wordpress.org
Thu Dec 5 02:05:09 UTC 2019


#48878: 5.1 wp_insert_site bug
--------------------------------+------------------------------
 Reporter:  bikecrazyy          |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  5.1
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by jeremyfelt):

 Replying to [comment:4 bikecrazyy]:
 > I changed add_action priority to 5, 10, 15, and 999 but still the same
 issue.

 Did you change the action to `wp_initialize_site` from `wp_insert_site`?

 Also, to clarify: the priority number should be more than 10, which I
 guess is a "lower" priority.

 `add_action( 'wp_initialize_site', function( $site_id ) { // do things },
 11, 1 );`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48878#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list