[wp-trac] [WordPress Trac] #34534: WP oEmbed: Filter entire logo markup to allow inline svg, objects, et al.
WordPress Trac
noreply at wordpress.org
Sun Nov 1 04:56:16 UTC 2015
#34534: WP oEmbed: Filter entire logo markup to allow inline svg, objects, et al.
---------------------------+-----------------------------
Reporter: peterwilsoncc | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
The logo markup in `wp-includes/embed-template.php` includes an image tag.
{{{#!php
printf(
'<a href="%s" target="_top"><img src="%s" srcset="%s 2x"
width="32" height="32" alt="" class="wp-embed-site-
icon"/><span>%s</span></a>',
esc_url( home_url() ),
esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-
blue.png' ) ) ),
esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-
blue.png' ) ) ),
esc_html( get_bloginfo( 'name' ) )
);
}}}
It'd be grand if the entire markup could be filterable to allow for
inline-svg, objects, plain text and other markup for the logo.
Filter name suggestions:
* `embed_logo_markup`
* `embed_site_title`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34534>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list