[wp-trac] [WordPress Trac] #36640: Customize: get_custom_logo should allow the image tag to be filtered independently

WordPress Trac noreply at wordpress.org
Fri Apr 22 20:24:46 UTC 2016


#36640: Customize: get_custom_logo should allow the image tag to be filtered
independently
-------------------------+------------------------------
 Reporter:  achbed       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  4.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => has-patch
 * version:  trunk => 4.5


Comment:

 Giving more control over the generation of the `img` markup makes sense,
 but we'd want to make sure that `custom-logo-link` class is always
 includes as otherwise the selective refresh selector will fail to match.
 Well, I suppose we could still allow it to be changed, but the plugin that
 filters `get_custom_logo_img` should also make sure it updates
 `$wp_customize->selective_refresh->get_partial( 'custom_logo' )->selector`
 as required. This should be noted in the filter description.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36640#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list