Changeset 1003 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
- Timestamp:
- 11/24/2014 06:16:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r991 r1003 468 468 $link = $matches[1]; 469 469 470 // Fix URLs made clickable during initial parsing470 // Undo links made clickable during initial parsing 471 471 if ( 0 === strpos( $link, '<a ' ) ) { 472 472 473 if ( preg_match( '/^<a .*href=[\'\"]([^\'\"]+)[\'\"]>(.*)<\/a>$/', $link, $parts ) ) { 474 $link = '<a href="' . $parts[1] . '">' . esc_html( trim( $parts[2] ) ) . '</a>'; 473 if ( preg_match( '/^<a .*href=[\'\"]([^\'\"]+)[\'\"]>(.*)<\/a>(.*)$/', $link, $parts ) ) { 474 $link = $parts[1]; 475 if ( $parts[3] ) { 476 $link .= ' ' . $parts[3]; 477 } 475 478 } 476 479 … … 478 481 479 482 // Link to an external resource. 480 elseif ( 0 === strpos( $link, 'http' ) ) {483 if ( 0 === strpos( $link, 'http' ) ) { 481 484 482 485 $parts = explode( ' ', $link, 2 );
Note: See TracChangeset
for help on using the changeset viewer.