mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Respect $compat values for the link format fallback output. props wonderboymusic. see #23347.
git-svn-id: http://core.svn.wordpress.org/trunk@24075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2fb7f5a6a
commit
e5cf5ca63d
@ -347,9 +347,6 @@ function post_formats_compat( $content, $id = 0 ) {
|
||||
|
||||
switch ( $format ) {
|
||||
case 'link':
|
||||
$compat['tag'] = '';
|
||||
$compat['position'] = 'before';
|
||||
|
||||
if ( ! empty( $meta['link_url'] ) ) {
|
||||
$esc_url = preg_quote( $meta['link_url'], '#' );
|
||||
// Make sure the same URL isn't in the post (modified/extended versions allowed)
|
||||
|
Loading…
x
Reference in New Issue
Block a user