该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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.