[wp-trac] [WordPress Trac] #54006: Wp Multisite Get, Add, Update and Delete Site Meta Issue.

WordPress Trac noreply at wordpress.org
Wed Aug 25 16:26:30 UTC 2021


#54006: Wp Multisite Get, Add, Update and Delete Site Meta Issue.
--------------------------+-----------------------------
 Reporter:  leeml         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  5.8
 Severity:  normal        |   Keywords:  dev-feedback
  Focuses:  multisite     |
--------------------------+-----------------------------
 Just working on some code to help with WP Multisite integration...

 I have noticed that the `add_site_meta` function is currently not working.

 I had a look through the functions in wp-includes/ms-site.php and found
 that the first parameter in the 'add_metadata' function called by
 add_site_meta (line 1012) is 'blog'.

 I figured since you changed the blogmeta table to sitemeta that something
 might be amiss. If the metadata is added thus:

 add_metadata( 'site', 1, 'test_site_feta', 'cheese', false );

 All appears to work okay, however this does not;

 add_metadata( 'blog', 1, 'test_site_feta', 'cheese', false );

 Think its a bug...until I had a closer look I had to use MySQL queries to
 add the site meta.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54006>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list