[wp-trac] [WordPress Trac] #55735: WordPress子分类的固定链接存在Bug

WordPress Trac noreply at wordpress.org
Sun May 15 13:40:19 UTC 2022


#55735: WordPress子分类的固定链接存在Bug
--------------------------+------------------------------
 Reporter:  jimmyhuang    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.9.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jimmyhuang):

 Replying to [ticket:55735 jimmyhuang]:
 > 使用WP过程中发现子分类的固定链接存在一些Bug。搭建了个测试站,还是存在同
 样问题。
 > 具体来说,假设父级分类是:uncategorized,子分类是:test。子分类正确的访
 问地址应该是:
 > example.com/category/uncategorized/test
 > 但我发现把地址中的uncategorized重命名为其他内容也能访问子分类test,正常
 应该返回404页面。
 >
 > 测试地址:https://sandbox.jimmyhuang.pp.ua/category/uncategorized/test
 > Bug地址:https://sandbox.jimmyhuang.pp.ua/category/0000/test
 >
 > WordPress Version 5.9.3
 > Themes:Twenty Twenty-Two Version: 1.1
 > CDN:Cloudflare
 **Google Translate**
 During the use of WP, some bugs were found in the permalinks of
 subcategories. I built a test station and still have the same problem.
 Specifically, suppose the parent category is: uncategorized and the sub-
 category is: test. The correct access address for the subcategory should
 be:
 example.com/category/uncategorized/test
 But I found that renaming uncategorized in the address to other content
 can also access the subcategory test, which should normally return a 404
 page.
 Test address: https://sandbox.jimmyhuang.pp.ua/category/uncategorized/test
 Bug address: https://sandbox.jimmyhuang.pp.ua/category/0000/test
 WordPress Version 5.9.3
 Themes:Twenty Twenty-Two Version: 1.1
 CDN: Cloudflare

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55735#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list