Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31594

silentarts on "Error in wp-includes/functions.php"

$
0
0

If you visit the website, you will see
Parse error: syntax error, unexpected '"''\s]|(?:[:]\d+)?/?)+))#"' (T_CONSTANT_ENCAPSED_STRING) in /home/hosein/public_html/wp-includes/functions.php on line 425

How do I fix this?

PS: Line 415 to Line 433 says:

/**
* Use RegEx to extract URLs from arbitrary content
*
* @since 3.7.0
*
* @param string $content
* @return array URLs found in passed string
*/
function wp_extract_urls( $content ) {
preg_match_all(
"#((?:[\w-]+://?|[\w\d]+[.])[^\s()<>]+[.](?:\([\w\d]+\)|(?:[^`!()\[\]{};:'\".,<>?«»""''\s]|(?:[:]\d+)?/?)+))#",
$content,
$post_links
);

$post_links = array_unique( array_map( 'html_entity_decode', $post_links[0] ) );

return array_values( $post_links );
}

_________________________________________________________________

This is line 425 itself

"#((?:[\w-]+://?|[\w\d]+[.])[^\s()<>]+[.](?:\([\w\d]+\)|(?:[^`!()\[\]{};:'\".,<>?«»""''\s]|(?:[:]\d+)?/?)+))#",


Viewing all articles
Browse latest Browse all 31594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>