Linux 软件免费装
Banner图

Remove Kses

开发者 auswebhosting
drewsymorris
更新时间 2014年4月15日 12:49
PHP版本: 3.0.1 及以上
WordPress版本: 3.8.2
版权: GPLv2 or later
版权网址: 版权信息

标签

kses WPMU unfiltered_html

下载

详情介绍:

This plugin will disable WordPress KSES filtering for the WordPress editor role. It is fully compatible with MU. You can customise this plugin to disable KSES for any WordPress role. Please refer to the plugin FAQ for more information. Note: Disabling KSES for the editor role is unnecessary in regular WordPress and is only intended for MU installations (where it is enabled). Company Website

安装:

RemoveKses is trivial to install:
  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

How do I add more roles?

This plugin can be easily customised to remove KSES for more than just the editor role. Simply open the removekses.php file and uncomment the relevant lines: $editor = new RemoveKses(get_role("editor")); // Remove KSES for Editor roles $author = new RemoveKses(get_role("author")); // Remove KSES for Author roles $contributor = new RemoveKses(get_role("contributor")); // Remove KSES for contributor roles $subscriber = new RemoveKses(get_role("subscriber")); // Remove KSES for subscriber roles

How does it work?

  • Fetches the role to be modified via the constructor $myrole = new RemoveKses(get_role("editor"));.
  • Adds the unfiltered_html capability to the role, if it doesn't already have it.
  • Hooks content_filtered_save_pre and runs kses_remove_filters() before content is sent to the database.

更新日志:

1.0