[wp-trac] [WordPress Trac] #20793: Illegal string offset 'public' in wpmu_create_blog()

WordPress Trac noreply at wordpress.org
Mon Aug 26 18:49:26 UTC 2013


#20793: Illegal string offset 'public' in wpmu_create_blog()
--------------------------+------------------
 Reporter:  duck_         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Multisite     |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by SergeyBiryukov):

 [attachment:20793.5.diff] uses `wp_parse_args()` to make sure `$meta` is
 always an array, and `$meta['public']` is always set.

 In [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2013-08-26&sort=asc#m674527 IRC discussion], nacin also suggested
 that the default value for `$meta` should also be an array. Created #25149
 for that.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20793#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list