[wordpress插件] WordPress Fix HTML5 ValidationWordPress修复HTML5验证

wordpress 插件 文章 2020-03-24 14:50 528 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin fixes current HTML syntax errors raised due to how WordPress

此插件可修复由于WordPress方式引起的当前HTML语法错误

currently returns some links with rel=”category tag”.

当前返回一些带有rel =“ category tag”的链接。

Hopefully this plugin is temporary and WordPress will fix this problem.

希望该插件是临时的,WordPress将解决此问题。

At present it looks doubtful this will be fixed.

目前看来该问题是否会解决。

You can read more about this problem by

您可以通过
了解更多有关此问题的信息

[Searching WordPress for related discussions](https://www.google.com/search?q=”site:wordpress.org”+”category tag”+”rel”+”validation error”)…

[搜索WordPress进行相关讨论](https://www.google.com/search?q=“ site:wordpress.org” +“类别标签” +“ rel” +“验证错误”)…

Especially WordPress Ticket #22095

尤其是 WordPress票证#22095

talks about what has been fixed (2 problems) and what has been

讨论已解决的问题(2个问题)和已解决的问题

deferred indefinitely (1 problem).

无限期推迟(1个问题)。

Like This Plugin?

喜欢这个插件吗?

This plugin is provided for free.

此插件是免费提供的。

If you like using it + like to say thanks…

如果您喜欢使用它+喜欢说声谢谢...

Buy a copy of my “Beautiful Business” Kindle Book and

购买我的“美丽的生意” Kindle Book和
的副本

post an Amazon Review of what you enjoyed most.

发布有关您最喜欢的商品的亚马逊评论。

Why This Plugin is Essential

为什么此插件必不可少

The following is purely my opinion about this matter.

以下纯粹是我对此事的看法。

In most cases, your best option when having Web development work done is to make your

在大多数情况下,完成Web开发工作时,最好的选择是使您的

payment contingent on the following checklist… meaning you only pay

取决于以下清单的付款方式…表示您只需支付

for your Web development after all checklist items are 100% met.

在所有清单项目都达到100%之后,进行Web开发。

No exceptions.

没有例外。

Some diehards in the audience may say Validator code lags standards.

听众中的一些顽固分子可能会说验证者代码落后于标准。

True.

真正。

And

还有

I’d prefer adhering to the current Validator code rather than constantly

我宁愿坚持使用当前的验证程序代码,而不要经常

trying to determine which errors and warnings are acceptable and which are real.

试图确定哪些错误和警告是可以接受的,哪些是真实的。

Your Web development checklist:

您的Web开发清单:

    • W3C HTML Validator – 100% clean HTML syntax validation.

    • W3C HTML验证程序 – 100%干净的HTML语法验证。

      Zero errors.

      零错误。

      Zero warnings.

      零警告。

      No exceptions, save one.

      没有例外,保存一个。

      The single exception is one warning,

      唯一的例外是一个警告,

      which the validator currently emits if you use an HTML5 Doctype ().

    • 如果您使用HTML5 Doctype(),验证程序当前会发出该消息。

    • W3C CSS Validator – 100% clean CSS syntax validation.

    • W3C CSS验证器 – 100%干净的CSS语法验证。

      Zero errors.

      零错误。

      Zero warnings.

      零警告。

      No exceptions.

    • 没有例外。

    • Web Page Test – A score in ever category.

    • 网页测试 –曾经类别中的得分。

      No exceptions, save one.

      没有例外,保存一个。

      Do yourself

      自己动手

      a favor and skip using a CDN, unless you’re serving huge video files off your site.

      帮忙,并跳过使用CDN的操作,除非您要在站点外提供大量视频文件。

      Even then, unless your CDN supports true streaming (meaning you can move the scrubber

      即使这样,除非您的CDN支持真正的流式传输(这意味着您可以移动洗涤器

      bar and the video playback position tracks + changes correctly) you’re better off hiring

      栏,并且视频播放位置会正确跟踪+更改),最好聘用

      some to correctly tool your site.

      一些可以正确使用您网站的工具。

      Follow this checklist and a CDN will rarely give you

      遵循此清单,CDN很少给您

      any measurable speed increase.

    • 任何可测量的速度增加。

    • Google PageSpeed – 100 out of 100 PageSpeed Score.

    • Google PageSpeed – 100 PageSpeed得分中的100。

      In other words, all tests pass.

      换句话说,所有测试均通过。

      No exceptions.

    • 没有例外。

    Having “No exceptions” in each case will also require you use a Hosting Company run by

    在每种情况下都具有“无例外”的情况还要求您使用由以下机构运营的托管公司:

    Wicked Smart Uber Geeks.

    邪恶的聪明的Uber极客。

    I’ve yet to find any company who can tune up a Web server to

    我还没有找到可以将Web服务器调整为
    的公司

    run as fast as I tune mine, so I run my own “Iron” (servers which I admin personally).

    运行的速度与我的调试速度一样快,所以我运行自己的“ Iron”(我亲自管理的服务器)。

    This said, you may have some exceptions.

    这说,您可能有一些例外。

    You’ll have to determine which are acceptable for you.

    您必须确定哪些选项可以接受。

    For me, “No exceptions” is mandatory.

    对我来说,“无例外”是强制性的。

    Enough rambling.

    够乱的。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

Best to just install through the WordPress admin panel.

最好通过WordPress管理面板进行安装。

Please note: If you’re using any plugin that caches content, you must navigate to

请注意:如果您使用的是任何可缓存内容的插件,则必须导航至

your cache plugin settings and hit “Flush Cache”.

您的缓存插件设置,然后点击“刷新缓存”。

Otherwise rel=”category tag” will

否则,rel =“ category tag”

be returned for every cached page, until each page expires (exceeds your cache timeout).

将为每个缓存的页面返回,直到每个页面过期(超过缓存超时)为止。

If you’re using a front-end caching system like Varnish, best just flush all content.

如果您使用的是Varnish之类的前端缓存系统,最好只刷新所有内容。

If you’re savvy enough to be running Varnish, you’ll understand how to do this.

如果您足够聪明,可以运行Varnish,那么您将了解如何执行此操作。

You can also manually install this plugin, via the normal…

您也可以通过常规方式手动安装此插件...

    1. Upload plugin-name.php to the /wp-content/plugins/ directory
    2. plugin-name.php 上载到 / wp-content / plugins / 目录

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

    5. Place

    6. 放置 <?php do_action('plugin_name_hook');

      ?> in your templates

    7. ?> 在您的模板中

下载地址
https://downloads.wordpress.org/plugin/cleanse-rel-category-tag.zip
-EOF-

AI助手支持GPT4.0