Parse error:syntaxerror,unexpected end of file, expecting Funktion (T_FUNCTION) für class-oembed.php

Ich habe seltsame Fehler plötzlich und meine website ist down. Auch ich kann nicht einloggen, um wordpress-admin-Konto ...

hier ist der Fehler :

Parse error: syntax error, unexpected end of file, expecting Funktion (T_FUNCTION) in /home/Myid/public_html/Mywebsite/wp-includes/class-oembed.php auf der Linie 191

Ich mich eingeloggt habe um meine host account Cache-Ansicht Bearbeiten Datei und nur die, die ich gefunden auf Linie 191 ist diese :

"* @param string $Anbieter Der URL"

Bitte helfen, wie dieses Problem zu beheben.

Paar line-up-Codierung wie folgt :

//Fetch URL content
    if ( $html = wp_remote_retrieve_body( wp_safe_remote_get( $url ) ) ) {

        /**
         * Filter the link types that contain oEmbed provider URLs.
         *
         * @since 2.9.0
         *
         * @param array $format Array of oEmbed link types. Accepts 'application/json+oembed',
         *                      'text/xml+oembed', and 'application/xml+oembed' (incorrect,
         *                      used by at least Vimeo).
         */
        $linktypes = apply_filters( 'oembed_linktypes', array(
            'application/json+oembed' => 'json',
            'text/xml+oembed' => 'xml',
            'application/xml+oembed' => 'xml',
        ) );

        //Strip <body>
        $html = substr( $html, 0, stripos( $html, '</head>' ) );

        //Do a quick check
        $tagfound = false;
        foreach ( $linktypes as $linktype => $format ) {
            if ( stripos($html, $linktype) ) {
                $tagfound = true;
                break;
            }
        }

        if ( $tagfound && preg_match_all( '/<link([^<>]+)>/i', $html, $links ) ) {
            foreach ( $links[1] as $link ) {
                $atts = shortcode_parse_atts( $link );

                if ( !empty($atts['type']) && !empty($linktypes[$atts['type']]) && !empty($atts['href']) ) {
                    $providers[$linktypes[$atts['type']]] = $atts['href'];

                    //Stop here if it's JSON (that's all we need)
                    if ( 'json' == $linktypes[$atts['type']] )
                        break;
                }
            }
        }
    }

    //JSON is preferred to XML
    if ( !empty($providers['json']) )
        return $providers['json'];
    elseif ( !empty($providers['xml']) )
        return $providers['xml'];
    else
        return false;
}

/**
 * Connects to a oEmbed provider and returns the result.
 *
 * @param string $provider The URL 

cant get eine Ahnung, was falsch läuft ..bitte lassen Sie mich wissen, wie dieses Problem zu beheben.

vielen Dank

  • Loswerden, dass die Letzte Klammer am Ende } jede gute IDE wäre, dass abgeholt.
InformationsquelleAutor user3238090 | 2014-01-26
Schreibe einen Kommentar