get_custom_logo filter should include blog parameter) – WordPress Trac (original) (raw)

#36639 closed enhancement (fixed)

Reported by: achbed's profile Owned by: chriscct7's profile chriscct7
Milestone: 4.6 Priority: normal
Severity: normal Version: 4.5
Component: Customize Keywords: has-patch
Focuses: Cc:

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.