這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Widon't Part Deux

外掛說明

Building on Shaun Inman’s plugin, Widon’t Part Deux eliminates widows in the titles and content your posts and pages.

Known Issues

  • It doesn’t always work if the last word of in the element is wrapped in a tag. (Like if the final word is <strong>bold</strong>.)
  • You can’t pick how many words are on the last line (yet).

安裝方式

The easy way:

  1. Download from the WordPress plugins page and use the Administrator pages to upload and activate.

The other way:

  1. Upload the wp-widont folder and contents to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Update the settings with any additional tags you want to remove widows and orphans from in a post.

常見問題集

What is a widow and orphan?

When the line length is short enough that a word wraps, but long enough that it only leaves one word on the next line.

It looks something like
this.

But will look like this.
Why should I care?

Because you want your site to be as usable for your visitors as possible. This will help.

What tags can I add in the settings?

The settings filter uses wp_kses_post to sanitize the tags you specify. By default, this is set in wp-includes/kses.php.

使用者評論

閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Widon't Part Deux〉的開發相關工作。

參與者

將〈Widon't Part Deux〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.1

Removed debugging code that shouldn’t be in production. Oops.

1.3.0

  • Fixed issue where oEmbed-generated iframes weren’t loading. Props hacknug.
  • Added l10n support.

1.2.0

  • Fixed “smart” quotes that weren’t displayed properly on WordPress.org/plugins.
  • Made compatible with PHP 5.2 since a number of hosts still use that version and it’s supported by WordPress itself.

1.1.1

  • Added default tags for post content filtering.

1.1.0

  • Enable validation and sanitization of the options input.
  • Use the Settings API to get and store options in the database.

1.0.1

  • Formatted to match WordPress coding standards.

1.0.0

  • Forked from Shaun Inman’s plugin at v2.1.1.