{"id":24552085,"url":"https://github.com/javiercasares/fix-mime-types","last_synced_at":"2026-05-21T10:04:48.499Z","repository":{"id":271515436,"uuid":"913709724","full_name":"javiercasares/fix-mime-types","owner":"javiercasares","description":"WordPress plugin: fixes incorrect MIME types in the Media Library using WP-CLI.","archived":false,"fork":false,"pushed_at":"2025-01-08T09:04:33.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T01:31:33.803Z","etag":null,"topics":["mime-type","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javiercasares.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T07:54:45.000Z","updated_at":"2025-01-08T09:32:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"275aafde-4783-40e2-9e00-dffbd7ac6df6","html_url":"https://github.com/javiercasares/fix-mime-types","commit_stats":null,"previous_names":["javiercasares/fix-mime-types"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiercasares%2Ffix-mime-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiercasares%2Ffix-mime-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiercasares%2Ffix-mime-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiercasares%2Ffix-mime-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiercasares","download_url":"https://codeload.github.com/javiercasares/fix-mime-types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878492,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mime-type","wordpress","wp-cli"],"created_at":"2025-01-23T01:30:11.045Z","updated_at":"2026-05-21T10:04:43.441Z","avatar_url":"https://github.com/javiercasares.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== Fix Media MIME Types (CLI only) ===\nContributors: javiercasares\nTags: media, mime-type, wp-cli\nRequires at least: 6.4\nTested up to: 6.7\nStable tag: 1.0.0\nRequires PHP: 8.2\nVersion: 1.0.0\nLicense: GPL-3.0-or-later\nLicense URI: https://spdx.org/licenses/GPL-3.0-or-later.html\n\nFixes incorrect MIME types in the Media Library using WP-CLI.\n\n== Description ==\n\nFix Media MIME Types (CLI only) is a lightweight and efficient plugin that identifies and corrects any **incorrect MIME types** in your WordPress Media Library. \n\n**Key Features**:\n* Scans your entire Media Library for potential MIME discrepancies.\n* Uses PHP's `FileInfo` to detect the correct MIME type of media files.\n* Updates the WordPress database only when a mismatch is found, ensuring minimal overhead.\n* Designed solely for command-line usage (WP-CLI), with no impact on normal site visitors or admins.\n  \nThis plugin is **not** visible in the standard WordPress interface (it is WP-CLI only). To use it, you must have [WP-CLI](https://wp-cli.org/) installed on your server or local environment.\n\n= WP-CLI =\n\nYou can use the following WP-CLI commands:\n\n* `wp fix-mime run`\n\nThat will show something like:\n\n```\nFound 3 attachments. Starting the process...\nWarning: Attachment ID 1: file does not exist on disk. Skipping...\nAttachment ID 2, File: example1.webp, Current MIME: image/webp, Detected MIME: image/webp\nNo changes needed.\nAttachment ID 3, File: example2.webp, Current MIME: image/png, Detected MIME: image/webp\nNo changes needed.\nSuccess: Process complete. All MIME types have been verified/updated.\n```\n\n== Installation ==\n\n= Automatic download =\n\nVisit the plugin section in your WordPress, search for [fix-mime-types]; download and install the plugin.\n\n= Manual download =\n\nExtract the contents of the ZIP and upload the contents to the `/wp-content/plugins/fix-mime-types/` directory. Once uploaded, it will appear in your plugin list.\n\n== Compatibility ==\n\n* WordPress: 6.4 - 6.7\n* PHP: 8.2 - 8.4\n* WP-CLI: 2.3.0 - 2.11.0\n\n== Changelog ==\n\n= [1.0.0] - 2025-01-08 =\n\n**Added**\n\n* First release.\n\n**Compatibility**\n\n* WordPress: 6.4 - 6.7\n* PHP: 8.2 - 8.4\n* WP-CLI: 2.3.0 - 2.11.0\n\n**Tests**\n\n* PHP Coding Standards: 3.10.3\n* WordPress Coding Standards: 3.1.0\n* Plugin Check (PCP): 1.1.0\n\n== Security ==\n\nThis plugin adheres to the following security measures and review protocols for each version:\n\n* [WordPress Plugin Handbook](https://developer.wordpress.org/plugins/)\n* [WordPress Plugin Security](https://developer.wordpress.org/plugins/wordpress-org/plugin-security/)\n* [WordPress APIs Security](https://developer.wordpress.org/apis/security/)\n* [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards)\n* [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/)\n\n== Privacy ==\n\n* This plugin does not collect any information about your site, your identity, the plugins, themes or content the site has.\n\n== Vulnerabilities ==\n\n* No vulnerabilities have been published up to version 1.0.0.\n\nFound a security vulnerability? Please report it to us privately at the [Fix Media MIME Types GitHub repository](https://github.com/javiercasares/fix-mime-types/security/advisories/new).\n\n== Contributors ==\n\nYou can contribute to this plugin at the [Fix Media MIME Types GitHub repository](https://github.com/javiercasares/fix-mime-types).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviercasares%2Ffix-mime-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviercasares%2Ffix-mime-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviercasares%2Ffix-mime-types/lists"}