Changeset 29756 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/23/2014 02:49:22 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r29344 r29756 458 458 function wp_extract_urls( $content ) { 459 459 preg_match_all( 460 "#( "460 "#([\"']?)(" 461 461 . "(?:([\w-]+:)?//?)" 462 462 . "[^\s()<>]+" … … 465 465 . "\([\w\d]+\)|" 466 466 . "(?:" 467 . "[^`!()\[\]{};:'\".,<> ?«»“”‘’\s]|"467 . "[^`!()\[\]{};:'\".,<>«»“”‘’\s]|" 468 468 . "(?:[:]\d+)?/?" 469 469 . ")+" 470 470 . ")" 471 . ") #",471 . ")\\1#", 472 472 $content, 473 473 $post_links 474 474 ); 475 475 476 $post_links = array_unique( array_map( 'html_entity_decode', $post_links[ 0] ) );476 $post_links = array_unique( array_map( 'html_entity_decode', $post_links[2] ) ); 477 477 478 478 return array_values( $post_links );
Note: See TracChangeset
for help on using the changeset viewer.