Changeset 24241 for trunk/wp-includes/post-formats.php
- Timestamp:
- 05/10/2013 10:54:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-formats.php
r24233 r24241 792 792 return $trimmed; 793 793 // the content is HTML so we grab the first href 794 } elseif ( preg_match( '/<a\s[^>]*?href= [\'"](.+?)[\'"]/is', $content, $matches ) ) {795 return esc_url_raw( $matches[ 1] );794 } elseif ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) ) { 795 return esc_url_raw( $matches[2] ); 796 796 } 797 797
Note: See TracChangeset
for help on using the changeset viewer.