[wp-trac] [WordPress Trac] #25328: switch_to_blog() doesn't fail on validation

WordPress Trac noreply at wordpress.org
Sun Mar 2 06:24:08 UTC 2014


#25328: switch_to_blog() doesn't fail on validation
--------------------------------+------------------------------
 Reporter:  markoheijnen        |       Owner:  DrewAPicture
     Type:  defect (bug)        |      Status:  closed
 Priority:  low                 |   Milestone:  3.9
Component:  Networks and Sites  |     Version:  3.0
 Severity:  minor               |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:  docs, multisite
--------------------------------+------------------------------

Comment (by nacin):

 Devil's advocate for [27347]: The docs weren't actually wrong — there was
 just no validation for which we would return false. We may want to add a
 falsely return value later. What do we think about making it say "always
 returns true. Could return false on failure in the future."

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


More information about the wp-trac mailing list