Title: Manly Fix
Author: DimitriAus
Published: <strong>2026 年 5 月 19 日</strong>
Last modified: 2026 年 5 月 23 日

---

搜尋外掛

![](https://ps.w.org/manly-fix/assets/icon-256x256.png?rev=3538036)

# Manly Fix

 由 [DimitriAus](https://profiles.wordpress.org/dimitriaus/) 開發

[下載](https://downloads.wordpress.org/plugin/manly-fix.1.5.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/manly-fix/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/manly-fix/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/manly-fix/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/manly-fix/#developers)

 [技術支援](https://wordpress.org/support/plugin/manly-fix/)

## 外掛說明

Applies configurable HTML fixes to WordPress and WooCommerce page output. Each fix
can be individually enabled or disabled via **Settings  Manly Fix**.

### WordPress & HTML Fixes

 * **Remove trailing slashes** – Removes XHTML-style trailing slashes (`/>`) from
   void elements (`<meta>`, `<link>`, `<img>`, `<input>`, etc.) for clean HTML5 
   output.
    _Validator: “Info: Trailing slash on void elements has no effect and
   interacts badly with unquoted attribute values.”_
 * **Remove intrinsic size CSS** – Removes the `contain-intrinsic-size` CSS rule
   injected by WordPress for auto-sized images.
    _Validator: “CSS: contain-intrinsic-
   size: Property contain-intrinsic-size doesn’t exist.”_
 * **Remove redundant aria-hidden** – Removes `aria-hidden="true"` from elements
   that already carry the `hidden` attribute.
    _Validator: “Attribute aria-hidden
   is unnecessary for elements that have attribute hidden.”_
 * **Move router style to `<head>`** – Moves the WordPress Interactivity Router 
   animations inline `<style>` tag from `<body>` to `<head>`.
    _Validator: “Element
   style not allowed as child of element body in this context. (Suppressing further
   errors from this subtree.)”_
 * **Remove invalid `as` from prefetch links** – Removes the invalid `as` attribute
   from `<link rel="prefetch">` elements emitted by WooCommerce.
    _Validator: “A`
   link` element with an `as` attribute must have a `rel` attribute that contains
   the value `preload` or the value `modulepreload`.”_

### WooCommerce Fixes

These fixes are only shown when WooCommerce is active.

 * **Mini-cart role=”dialog”** – Adds missing `role="dialog"` to the WooCommerce
   mini-cart drawer div.
    _Validator: “Element div is missing one or more of the
   following attributes: role.”_
 * **Add placeholder src to Interactivity API images** – Adds a transparent placeholder`
   src` and an empty `alt=""` to `<img>` elements that use the WordPress Interactivity
   API but have no static attributes. Real values are set by JavaScript at runtime.
   
   _Validator: “Element `img` is missing one or more of the following attributes:`
   src`, `srcset`.” / “An `img` element must have an `alt` attribute.”_

### Support

For issues, feature requests, or contributions, please contact Manly Electronics.

## 安裝方式

 1. Upload the plugin folder to `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to **Settings  Manly Fix** to enable or disable individual fixes

## 常見問題集

### Does this plugin affect page performance?

No. The plugin uses output buffering at the `template_redirect` hook, processing
the entire page once before output. On typical sites, the performance impact is 
negligible.

### Can I choose which fixes are applied?

Yes. Go to **Settings  Manly Fix** and toggle each fix on or off.

### Are the WooCommerce fixes applied if WooCommerce is not installed?

No. The WooCommerce fixes section only appears in settings and only runs when WooCommerce
is active.

### Is this compatible with all WordPress versions?

Yes, the plugin uses standard WordPress hooks and PHP functions compatible with 
WordPress 4.0+.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Manly Fix〉的開發相關工作。

參與者

 *   [ DimitriAus ](https://profiles.wordpress.org/dimitriaus/)

[將〈Manly Fix〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/manly-fix)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/manly-fix/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/manly-fix/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/manly-fix/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/manly-fix/)。

## 變更記錄

#### 1.5.1

 * Updated: Requires PHP bumped to 7.4 (WordPress 7.0 minimum); Tested up to 7.0.

#### 1.5

 * Merged all Manly Woo Fix functionality into this plugin
 * Added WooCommerce fixes: mini-cart role=”dialog”, Interactivity API image placeholder
   src/alt
 * Added WordPress fixes: redundant aria-hidden, router style to head, prefetch 
   as= attribute
 * WooCommerce fixes section is only shown/applied when WooCommerce is active

#### 1.4

 * Added “Remove intrinsic size CSS” fix (absorbs remove-contain-intrinsic-size 
   plugin)

#### 1.3

 * Added Settings page (Settings  Manly Fix) with toggles for each fix

#### 1.2

 * Added direct file access protection
 * Improved code documentation

#### 1.1

 * Initial public release
 * Support for 18 HTML5 void elements
 * Output buffering implementation

## 中繼資料

 *  版本 **1.5.1**
 *  最後更新 **1 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/manly-fix/)
 * 標籤:
 * [HTML5](https://tw.wordpress.org/plugins/tags/html5/)[markup](https://tw.wordpress.org/plugins/tags/markup/)
   [trailing slash](https://tw.wordpress.org/plugins/tags/trailing-slash/)[validation](https://tw.wordpress.org/plugins/tags/validation/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/manly-fix/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/manly-fix/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/manly-fix/reviews/)

## 參與者

 *   [ DimitriAus ](https://profiles.wordpress.org/dimitriaus/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/manly-fix/)