使WordPress成为核心

变更集57116


忽略:
时间戳:
2023年11月17日上午06:38:33(10个月(之前)
作者:
伯恩哈德·雷特
消息:

HTML API:修复文档示例中的输入错误。

HTML标记处理器类的PHPDoc注释中的示例代码
之前显示呼叫next_tag()数组包含
键,应该是类名称。此修补程序通过使用
适当的类名称键。

道具dmsnell、gaambo、crstauf、atachibana、audrasjb、krupalpanchal。
修复#59891.

文件:
1已编辑

图例:

未修改
补充
远离的
  • trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php

    r57077号 57116兰特  
    117117*示例:
    118118 *
    119 *if($tags->next_tag(数组('class“=>”wp-group-block“)){
     119*if($tags->next_tag(数组('class_姓名“=>”wp-group-block“)){
    120120*$tags->set_attribute('title','This groups the contained content.');
    121121*$tags->remove_attribute(“data-test-id”);
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。