schwobeseggl.de ein Neigschmecktr in Baden

10Dez/08Off

FLV in WordPress hochladen

Zuerst rausfinden wo die Funktion ist die wir suchen:

~> grep -n "function wp_check_filetype" wp-includes/functions.php
2034:function wp_check_filetype( $filename, $mimes = null ) {

Dann verändern:

// Zeile 2034:
function wp_check_filetype( $filename, $mimes = null ) {
        // Accepted MIME types are set here as PCRE unless provided.
        $mimes = ( is_array( $mimes ) ) ? $mimes : apply_filters( 'upload_mimes', array(
                'jpg|jpeg|jpe' => 'image/jpeg',
                'gif' => 'image/gif',
                'png' => 'image/png',
                'bmp' => 'image/bmp',

Dort einfach noch ein 'flv' => 'video/x-flv', einfügen und dann kann man auch wieder flv-Dateien in WordPress hochladen

  1. WordPress 2.5
  2. WordPress – Sicherheitslücke
  3. WordPress 2.5-RC2
  4. WordPress 2.8
  5. WordPress 3.0

Kommentare (0) Trackbacks (0)

Die Kommentarfunktion ist hier derzeit deaktiviert.

Trackbacks are disabled.