Changeset 26972
- Timestamp:
- 01/17/2014 07:46:33 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r26851 r26972 3771 3771 */ 3772 3772 function get_url_in_content( $content ) { 3773 if ( empty( $content ) ) 3774 return ''; 3775 3776 if ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) ) 3773 if ( empty( $content ) ) { 3774 return false; 3775 } 3776 3777 if ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) ) { 3777 3778 return esc_url_raw( $matches[2] ); 3779 } 3778 3780 3779 3781 return false;
Note: See TracChangeset
for help on using the changeset viewer.