[wp-trac] [WordPress Trac] #38930: Warning Raised when checking option exists

WordPress Trac noreply at wordpress.org
Thu Nov 24 13:42:33 UTC 2016


#38930: Warning Raised when checking option exists
--------------------------------+--------------------
 Reporter:  lucasstark          |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.7
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  needs-testing       |     Focuses:
--------------------------------+--------------------

Comment (by lucasstark):

 I am using the REST API and a custom endpoint to allow users to create /
 manage sites inside of a multisite.   Inside of my sites custom endpoint I
 have a create method, where I call the following:

 {{{#!php
 <?php
 $current_site_id = wpmu_create_blog( $prepared_data->domain,
 $prepared_data->path, $prepared_data->title, get_current_user_id(), array(
 'public' => 1 ), 1 );
 }}}

 When I call that function it raises the warning when the filter
 "default_option_WPLANG" is applied.

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


More information about the wp-trac mailing list