[wp-trac] [WordPress Trac] #35322: oEmbed generates link to an image in the wp-admin directory (was: OEmbed generates link to an image in the wp-admin directory)
WordPress Trac
noreply at wordpress.org
Sat Jan 16 20:29:51 UTC 2016
#35322: oEmbed generates link to an image in the wp-admin directory
------------------------------------------------------+------------------
Reporter: nachtwaechter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Embeds | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-refresh needs-unit-tests | Focuses:
------------------------------------------------------+------------------
Changes (by swissspidy):
* keywords: has-patch => has-patch needs-refresh needs-unit-tests
Comment:
Some notes on the second patch:
* I wanted to create a new function for that as well, though a name like
`print_embed_site_title()` sounds better. No need for an `$echo` parameter
though, just echo.
* The `sprintf` in that function is wrong. Also, the `admin_url( 'images/w
-logo-blue.png' )` fallback is not needed since there is always an site
icon because of `has_site_icon()` check
* Tests for that function would be nice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35322#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list