[wp-trac] [WordPress Trac] #31428: Switch_to_blog() no longer works in Customize using Multisite.
WordPress Trac
noreply at wordpress.org
Wed Feb 25 16:47:59 UTC 2015
#31428: Switch_to_blog() no longer works in Customize using Multisite.
--------------------------+------------------------
Reporter: csschris | Owner: ocean90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.1.2
Component: Customize | Version: 4.1.1
Severity: normal | Resolution:
Keywords: commit | Focuses: multisite
--------------------------+------------------------
Comment (by csschris):
A note for recreating this bug.
Before @westonruter's fix this bug was specifically showing itself when
using switch_to_blog then pulling menus by location and/or using
has_nav_menu() to conditionally display content from other blogs.
I was confused because in another section I call switch_to_blog and then
call a menu directly by ID without checking has_nav_menu and it did not
break in customizer view in 4.1.1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31428#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list