[wp-trac] [WordPress Trac] #37181: Use metadata api in *_network_options

WordPress Trac noreply at wordpress.org
Wed Jul 6 21:34:50 UTC 2016


#37181: Use metadata api in *_network_options
----------------------------------------+------------------------------
 Reporter:  spacedmonkey                |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Options, Meta APIs          |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite
----------------------------------------+------------------------------

Comment (by sc0ttkclark):

 This could utilize the stuff in WP 4.6 for register_meta() now too:

 {{{
 register_meta( 'site', 'my_site_option_name', array( … ) );
 }}}

 For testing, you'd also need to add 'site' to the array in the new
 `wp_object_types` filter. However, in the patch, you'd add 'site' in the
 `wp_object_types` array within `wp_object_type_exists()` in the `wp-
 includes/functions.php` file.

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


More information about the wp-trac mailing list