[wordpress插件] Clean Options清洁选项

wordpress 插件 文章 2020-03-24 10:50 876 0 全屏看文

AI助手支持GPT4.0

评分
84
描述

Finds orphaned options and allows for their removal from the wp_options table.

查找孤立的选项,并允许将其从wp_options表中删除。

License

许可证

Released under the terms of the GNU General Public License.

根据GNU通用公共许可证的条款发布。

Long Description

详细说明

The Clean Options plugin provides an easy way for WordPress bloggers to manage their wp_options table.

“清理选项”插件为WordPress博客作者提供了一种轻松的方法来管理其wp_options表。

It has many built in safety features that will help prevent accidental deletion of table rows that may be needed for the error free operation of the blog.

它具有许多内置的安全功能,将有助于防止意外删除博客无误操作可能需要删除的表行。

It’s goal is to give plugin users an easy and safe way to get a bloated wp_options table down to a manageable size, thus improving the performance of their blog, and keep it that way.

目的是为插件用户提供一种简便而又安全的方法,以将肿的wp_options表减小到可管理的大小,从而改善其博客的性能并保持这种状态。

It also provides warning messages that will alert plugin users of potential problems that are encountered.

它还提供警告消息,以警告插件用户遇到的潜在问题。

In addition to the warning messages, option names can be double-checked by following the link to the wp-admin/options.php page, using the Google search links, and by searching the wp-content folder for files that contain

除了警告消息外,还可以通过以下方式对选项名称进行再次检查:使用wp-admin / options.php页面的链接,使用Google搜索链接,并在wp-content文件夹中搜索包含以下内容的文件:

either the option_name outside of get_option, or fragments of the option_name (up to 3 pieces).= Orphaned Options List =

get_option之外的option_name或option_name的片段(最多3个)。=孤立选项列表=

Listed Options are those that are found in the wp_options table but are not referenced by “get_option” or “get_settings” by any of the PHP files located within your blog directory.

列出的选项是在wp_options表中找到的,但位于您的博客目录中的任何PHP文件都未由“ get_option”或“ get_settings”引用的选项。

If you have deactivated plugins and/or non-used themes in your directory, the associated options will not be considered orphaned until the files are uninstalled.

如果您在目录中停用了插件和/或未使用的主题,则在卸载文件之前,相关选项不会被视为孤立的。

When shown, non-selectable Options are known to have been created from files present during upgrade or backup, or are legitimate options that do not “fit” the search for get_option or get_settings (eg. core WordPress files that use alternate “

如图所示,已知非可选选项是根据升级或备份过程中存在的文件创建的,或者是不能“适合”搜索get_option或get_settings的合法选项(例如,使用备用“

non-string” syntax).

非字符串”语法)。

If you wish to remove them by other means, do so at your own risk.

如果您希望通过其他方式删除它们,则后果自负。

RSS Options

RSS选项

The plugin handles the rss_hash options, added to the wp_options table from the blog’s dashboard page and other files that parse RSS feeds and cache the results, in three ways.

该插件处理rss_hash选项,该选项已通过三种方式从博客的仪表板页面添加到wp_options表中,并且其他文件可解析RSS feed并缓存结果。

If the wp_options table contains more than 500 rss_hash options, the “delete all” feature will be available.

如果wp_options表包含超过500个rss_hash选项,则“全部删除”功能将可用。

Submitting the “Delete ALL ‘rss’ Options” may delete ALL “rss_hash” rows from the wp_options table, including the CURRENT ones.

提交“删除所有rss选项”可能会从wp_options表中删除 ALL 个“ rss_hash”行,包括 CURRENT 行。

It is not expected that doing so will cause any problems, however, it makes the performance of a database BACKUP prior to deletion even more important.

预计这样做不会造成任何问题,但是,这使得删除之前数据库 BACKUP 的性能更加重要。

To help ensure that no current “rss” options are deleted, the plugin makes the last 100 entries of the wp_options table exempt from the “delete all”.

为了帮助确保没有删除当前的“ rss”选项,该插件使wp_options表的最后100个条目免于“全部删除”。

But depending on your installation history this may not be adequate protection.

但是根据您的安装历史记录,这可能不是足够的保护。

The “rss_hash” rows are not retrieved and displayed, but simply deleted.

不会检索和显示“ rss_hash”行,而只是将其删除。

Even with the built in safety feature, it is recommended that instead of doing this, that the number of rss_hash options found be limited to only a selected number of the most recent at a time, being repeated as needed.

即使使用内置的安全功能,建议也不要这样做,而是将发现的rss_hash选项的数量限制为一次只能选择一个最新的rss_hash选项,并根据需要进行重复。

If the wp_options table contains more than 350 options, radio buttons are visible that will allow the number of rss_hash options found to be limited to various numbers of most recent pairs.

如果wp_options表包含超过350个选项,则单选按钮可见,这将使rss_hash选项的数量被限制为各种最新对的数量。

This can be repeated until the number of options is less than 350.

可以重复执行直到选项的数量少于350个。

When the wp_options table contains less than 350 options, the plugin finds ALL of the “RSS” Options.

当wp_options表包含的选项少于350个时,该插件会找到“ RSS”选项的 ALL

In each pair, the upper option is the cached feed and the lower is the option’s timestamp.

在每对中,较高的选项是缓存的供稿,较低的是选项的时间戳。

Those listed may include options that are Currently Active

列出的选项可能包括当前有效
的选项

When shown, rss_option pairs with dates newer or the same as the date of 14'th newest rss_option pair (the ones that are more likely to be current) have no checkbox but begin with “-” and end with “# days

如图所示,日期更新或与第14个最新rss_option对(最可能是最新的)的日期相同的rss_option对没有复选框,但以“-”开头,以“ #天”结尾

old” in italics.

”用斜体字表示。

The older rss_options can be selected and end with “# days old” in bold.

可以选择较早的rss_options并以粗体字显示“ #天,”结束。

Please only remove the older options in which BOTH options of the pair can be selected.

请仅删除较旧的选项,在该选项中可以选择该对的两者选项。

For convenience, a javascript select/deselect all has been added to the plugin.

为方便起见,已将javascript选择/取消全选添加到了插件中。

“all” means BOTH “plugin” AND “rss_” options.

“全部”表示“插件”和“ rss_”选项。

Orphaned Options Review

孤立选项审核

Spaces have been added after every 10th character of the option_name and every 20th character of the option_value to preserve page layout.

在option_name的每第10个字符和option_value的每第20个字符之后添加了空格,以保留页面布局。

Not all options have values.

并非所有选项都具有值。

Please review this information very carefully and only remove Options that you know for certain have been orphaned or deprecated.

请非常仔细地查看此信息,并仅删除您知道某些已被孤立或不推荐使用的选项。

It is strongly suggested that you BACKUP your database before removing any options.

强烈建议您先 BACKUP 数据库,然后再删除任何选项。

More Info

更多信息

For more information, please visit the plugin’s page

有关更多信息,请访问插件页面

Clean Options

清洁选项

For support, please visit the forum (registration required to post)

有关支持,请访问论坛(需要注册才能发布)

Support

支持

Translation Acknowledgements

翻译确认

be_BY Fat Cow 肥牛

">Fat Cow

“>肥牛

de_DE Thomas Knapp Blog für Politik

de_DE 托马斯·纳普(Thomas Knapp) 博客Politik

, Medien und Philosophie

,《医学与哲学》

es_ES Samuel Aguilera Desarrollo

es_ES 塞缪尔·阿奎莱拉 Desarrollo

web con WordPress

Web con WordPress

hr_HR Vladimir News

hr_HR 弗拉基米尔 新闻

>

>

nl_NL WordPressPluginGuide.com WordPress premium

nl_NL WordPressPluginGuide.com WordPress高级版

themes & plugins

主题和插件

pt_BR Cadu Silva 卡杜席尔瓦

">Winnext

“> Winnext

ru_RU Vadim N. Visit my

ru_RU 瓦迪姆N。访问我的

>Portfolio

>投资组合

sr_RS Vladimir paraISRAEL

sr_RS 弗拉基米尔 paraISRAEL

>

>

-> languages folder contains Serbian Cyrillic, languages/extra folder contains Serbian Latinica

->语言文件夹包含塞尔维亚西里尔字母,语言/其他文件夹包含塞尔维亚拉丁语

uk_UA Vadim N. Visit my

uk_UA 瓦迪姆N。访问我的

>Blog

>博客

zh_CN Francis

zh_CN 弗朗西斯

Wopus

Wopus

** AN IMPORTANT NOTE **

**重要提示**

WARNING !!

警告!

Clean Options version 1.3.2 has not been thoroughly tested for use with WordPress MULTISITES enabled.

Clean Options版本1.3.2尚未经过全面测试,可与启用WordPress MULTISITES的配合使用。

Clean Options version 1.3.2 should work with WordPress 3.0 with the exception that if MULTISITES is enabled, the plugin will only find options found in the primary blog’s wp_options table.

Clean Options 1.3.2版应与WordPress 3.0兼容,但如果启用MULTISITES,则插件将仅在主博客的wp_options表中找到选项。

If you have MULTISITES enabled Use At Your Own Risk.

如果您启用了MULTISITES,请自担风险。

Clean Options 2.0.0 is currently being developed.

当前正在开发Clean Options 2.0.0。

It will not be fully compatible with older versions of WordPress, but it will be compatible with WordPress 3.0, including finding options if MULTISITES is enabled.

它不会与旧版本的WordPress完全兼容,但是它将与WordPress 3.0兼容,包括在启用MULTISITES的情况下查找选项。

However, portions of the i18n l10n files will not have translations for any of the new text – unless and until they are provided.

但是,除非提供了这些内容,否则i18n l10n文件的某些部分将不具有任何新文本的翻译。

安装步骤

    1. If you are upgrading, deactivate the plugin and remove the cleanoptions.php file from the plugins directory before step 2
    2. 如果要升级,请在步骤2之前停用插件并从plugins目录中删除cleanoptions.php文件

    3. Upload the Clean Options folder to the ‘/wp-content/plugins/’ directory.
    4. 将“清理选项”文件夹上载到“ / wp-content / plugins /”目录。

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    7. Click the ‘Manage’/’Tools’ admin menu link, and select ‘CleanOptions’
    8. 点击“管理” /“工具”管理菜单链接,然后选择“ CleanOptions”

下载地址
https://downloads.wordpress.org/plugin/clean-options.zip
-EOF-

AI助手支持GPT4.0