Changeset 24683 for trunk/wp-includes/post-formats.php
- Timestamp:
- 07/12/2013 07:38:37 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-formats.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-formats.php
r24682 r24683 236 236 237 237 /** 238 * Extract and return the first URL from passed content.239 *240 * @since 3.6.0241 *242 * @param string $content A string which might contain a URL.243 * @return string The found URL.244 */245 function get_url_in_content( $content ) {246 if ( empty( $content ) )247 return '';248 249 if ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) )250 return esc_url_raw( $matches[2] );251 252 return false;253 }254 255 /**256 238 * Don't display post titles for asides and status posts on the front end. 257 239 *
Note: See TracChangeset
for help on using the changeset viewer.