WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#5090 closed defect (invalid)

wpmu_new_blog hook has been deprecated. Use wp_initialize_site instead.

Reported by: asaquzzaman Owned by:
Milestone: Priority: normal
Component: General Keywords:
Cc:

Description

Please use this hook wp_initialize_site instead of wp_insert_site on deprecated message. Because if we use wp_insert_site hook, we couldn’t access wp_options table for newly created sites eg: updating option table data with update_options with error message:
WordPress database error Table 'ex.wp_10_options' doesn't exist for query SELECT autoload FROM wp_10_options WHERE option_name = 'ex_version' made by wpmu_create_blog, wp_insert_site, do_action('wp_insert_site')

Attachments (1)

5090.diff (770 bytes) - added by asaquzzaman 8 months ago.

Download all attachments as: .zip

Change History (3)

@asaquzzaman
8 months ago

#1 @asaquzzaman
8 months ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.