WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #50514
Ticket #50514
: patch.php
File patch.php,
188 bytes
(added by
elhardoum
,
4 years ago
)
Patch for line
https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/formatting.php#L2986
Line
1
<?php
2
3
// Cleanup of accidental links within links.
4
return
preg_replace
(
'#(<a([ \r\n\t]+[^>]+?>|>))(.+)?<a [^>]+?>([^>]+?)</a>(.+)?</a>#is'
,
'$1$3$4$5</a>'
,
$r
);
Trac UI Preferences
Download in other formats:
Original Format