[wp-trac] [WordPress Trac] #36639: Customize: get_custom_logo filter should include blog parameter
WordPress Trac
noreply at wordpress.org
Fri Apr 22 19:34:00 UTC 2016
#36639: Customize: get_custom_logo filter should include blog parameter
-------------------------+-----------------------------
Reporter: achbed | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
The {{{get_custom_logo}}} function potentially performs a blog context
switch in order to render the custom logo. However, the
{{{get_custom_logo}}} filter is not called within that context switch, and
the filter handlers have no way of knowing if a blog context switch was
requested or required.
This patch solves both problems by providing the blog ID parameter to the
{{{get_custom_logo}}} filter as well as moving the filter call so that it
is in the same blog context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36639>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list