[wp-trac] [WordPress Trac] #25328: switch_to_blog() doesn't fail on validation
WordPress Trac
noreply at wordpress.org
Sun Mar 2 07:07:20 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 DrewAPicture):
Replying to [comment:10 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."
I'm not a big fan of conjecture when it comes to documentation — it either
does or it doesn't. That said, I could get behind a `@todo` specifying a
need for future clarification.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25328#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list