# 分类序列化器修改在 2.4.0 中表现不同

**URL:** <https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612>\
**Category:** Development\
**Created:** [2019 年8 月 23 日 05:49 UTC](https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612 "2019-08-23T05:49:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2019 年8 月 27 日 08:28 UTC](https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612/8 "2019-08-27T08:28:37Z")

</div>

已修复并反向移植到稳定版和测试版。

> <https://github.com/discourse/discourse/commit/bd5fa1737d42a958bb5cda35ae5bab2464d4e084>
>
> This is a very long standing bug we had, if a plugin attempted to amend a
> serial…izer core was not "correcting" the situation for all descendant classes
> this often only showed up in production cause production eager loads serializers
> prior to plugins amending them.
> 
> This is a critical fix for various plugins

Dan 正确设置了继承结构，问题在于我们存在一个非常非常非常久远的核心漏洞。

---

_[View the full topic](https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612)._
