• silentarts

    (@silentarts)


    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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error in wp-includes/functions.php’ is closed to new replies.