Make WordPress Core

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 );