Opened 11 years ago
Closed 11 years ago
#34534 closed enhancement (fixed)
WP oEmbed: Filter entire logo markup to allow inline svg, objects, et al.
| Reported by: | peterwilsoncc | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Embeds | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Shifting for review by others