#60332 closed enhancement (fixed)
Edit docs for switch_to_blog()
Reported by: | sabernhardt | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | docs, multisite | Cc: |
Description
#41815 removed the list item for autoloaded options, leaving one list item for plugins.
I think the plugins note could be better as a sentence, without a list.
Attachments (1)
Change History (8)
#3
@
10 months ago
Your suggestion is quite different than mine, and probably better (I do not know this function well enough to write a better description).
For a small edit, the sentence could be
"PHP code loaded with the originally requested site, such as code from a plugin or theme, does not switch."
This ticket was mentioned in PR #5958 on WordPress/wordpress-develop by @audrasjb.
10 months ago
#4
#5
@
10 months ago
- Owner set to audrasjb
- Status changed from new to accepted
Hi there, indeed the docblock can be improved
I added a PR with the last proposal
@audrasjb commented on PR #5958:
10 months ago
#7
committed in https://core.trac.wordpress.org/changeset/57596
Note: See
TracTickets for help on using
tickets.
I think that makes sense, @sabernhardt. Maybe we can take this opportunity to expand the explanation a bit as well.
Something like: "PHP code loaded with the originally requested site (plugins, theme) does not switch."?
(I'm not attached to that at all, happy to work through ideas if it's useful.)