Opened 10 years ago
Closed 10 years ago
#34534 closed enhancement (fixed)
WP oEmbed: Filter entire logo markup to allow inline svg, objects, et al.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Embeds | Keywords: | has-patch commit |
| Focuses: | docs | Cc: |
Description
The logo markup in wp-includes/embed-template.php includes an image tag.
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_markupembed_site_title
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Shifting for review by others