Support » Requests and Feedback » Please add mime type for *.XPI (Firefox extensions)

  • Good day!

    I publish in my blog some patched XPI files (Add-ons for Firefox)
    And after update of WordPress i should update some config files for normal working of XPI files (as media uploading of this mime type file and to correct installation XPI files from blog’s site)

    Please add this extension and mime type in next release of WordPress!
    I think this common trouble.

    Here patch:

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 2f29f13..54830df 100644
    --- a/wp-includes/functions.php
    +++ b/wp-includes/functions.php
    @@ -2581,6 +2581,7 @@ function get_allowed_mime_types() {
                   'mkv' => 'video/x-matroska',
                   'rtf' => 'application/rtf',
                   'js' => 'application/javascript',
    +               'xpi' => 'application/x-xpinstall',
                   'pdf' => 'application/pdf',
                   'doc|docx' => 'application/msword',
                   'pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please add mime type for *.XPI (Firefox extensions)’ is closed to new replies.