woocommerce/packages/php/email-editor/zh-cn/changelog.md
2026-04-15 10:18:01 +08:00

184 lines
No EOL
12 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 更新日志
本项目遵循[语义化版本控制](https://semver.org/spec/v2.0.0.html)。
## [2.9.1](https://github.com/woocommerce/email-editor/releases/tag/2.9.1) - 2026-03-08
- 补丁 - 添加 `woocommerce_email_editor_send_preview_email_subject` 过滤器,以允许自定义预览电子邮件主题。 [#63504]
- 补丁 - 邮件编辑:将冗余的 CSS 内联处理合并为单次操作,以提升渲染性能。 [#63454]
## [2.9.0](https://github.com/woocommerce/email-editor/releases/tag/2.9.0) - 2026-02-23
- 补丁 - 在发送预览邮件端点权限检查中验证用户是否可以编辑文章 [#63413]
- 次要 - 移除了为 WordPress < 6.8 所需的自定义 RichText 包的入队 [#63289]
## [2.8.1](https://github.com/woocommerce/email-editor/releases/tag/2.8.1) - 2026-02-20
- 补丁 - 修复了在长时间运行进程中供应商前缀 CSS 内联依赖项emogrifier symfony/css-selector中无限制的静态缓存内存泄漏问题。[#63365]
## [2.8.0](https://github.com/woocommerce/email-editor/releases/tag/2.8.0) - 2026-02-17
- 次要 - 修复电子邮件编辑器中产品集合区块渲染的间距问题。[#63177]
## [2.7.0](https://github.com/woocommerce/email-editor/releases/tag/2.7.0) - 2026-02-12
- 补丁 - 修复订阅电子邮件中当视频ID包含下划线时YouTube网址被截断的问题。[#63252]
- 次要 - 为电子邮件渲染中的产品集合区块添加两列网格布局支持。[#63122]
## [2.6.0](https://github.com/woocommerce/email-editor/releases/tag/2.6.0) - 2026-02-04
- 次要 - 为上下文感知个性化标签添加 post_id 参数和操作钩子 [#63103]
## [2.5.0](https://github.com/woocommerce/email-editor/releases/tag/2.5.0) - 2026-01-29
- 次要 - 修复图片对齐在渲染时向内部单元格添加对齐属性通过添加边框包装器修复图片边框对齐问题。[#62899]
- 次要 - 添加用于自定义预览邮件发送的操作钩子`woocommerce_email_editor_send_preview_email_before_wp_mail` `woocommerce_email_editor_send_preview_email_after_wp_mail`。[#62936]
- 次要 - 在邮件编辑包中添加对 VideoPress 嵌入的支持。[#62870]
- 补丁 - 改进了从站点主题中提取样式值的方式 [#62911]
## [2.4.0](https://github.com/woocommerce/email-editor/releases/tag/2.4.0) - 2026-01-21
- 次要 - 添加 `woocommerce_email_editor_site_theme` 过滤器以允许在同步电子邮件编辑器的全局样式时覆盖所使用的站点主题 [#62889]
- 次要 - 电子邮件编辑器为列添加对水平 `blockGap` 设置的支持 [#62838]
- 次要 - 防止在电子邮件 HTML 输出中渲染 CSS 边距 [#62794]
## [2.3.1](https://github.com/woocommerce/email-editor/releases/tag/2.3.1) - 2026-01-16
- 补丁 - 修复邮件链接中个性化标签属性未被处理的问题 [#62822]
## [2.3.0](https://github.com/woocommerce/email-editor/releases/tag/2.3.0) - 2026-01-05
- 补丁 - 邮件编辑防止 Blocks_Width_Preprocessor 中出现致命类型错误 [#62524]
- 次要 - 邮件编辑 has-text-align-* 类添加文本对齐功能 [#62588]
## [2.2.0](https://github.com/woocommerce/email-editor/releases/tag/2.2.0) - 2025-12-15
- 次要 - 在电子邮件模板选择模态框中添加分类标签导航 [#62441]
- 次要 - 优惠券代码区块的渲染器
## [2.1.1](https://github.com/woocommerce/email-editor/releases/tag/2.1.1) - 2025-12-11
- 补丁 - 更新电子邮件编辑核心默认样式 [#62051]
## [2.1.0](https://github.com/woocommerce/email-editor/releases/tag/2.1.0) - 2025-11-30
- 次要 - 电子邮件编辑以更高效的方式检索图像宽度 [#62118]
## [2.0.1](https://github.com/woocommerce/email-editor/releases/tag/2.0.1) - 2025-11-25
- 补丁 - 仅在邮件渲染期间交换核心/文章内容渲染回调以防止与 MailPoet 等其他插件冲突。[#61874]
- 补丁 - 为购物车集合中的条件性"完成结账"按钮文本添加支持用于邮件渲染 [#61822]
- 补丁 - 通过向渲染数据过滤器添加文章上下文改进邮件编辑在新标签页中预览功能。[#62010]
## [2.0.0](https://github.com/woocommerce/email-editor/releases/tag/2.0.0) - 2025-11-07
- 补丁 - 通过使用无状态版本覆盖 WordPress 渲染回调修复核心/文章内容区块在批量处理中第二封邮件渲染为空的问题 [#61546]
- 次要 - 扩展 Rendering_Context 以支持邮件特定上下文user_id, order_id, recipient_email添加 woocommerce_email_editor_rendering_email_context 过滤器 [#61546]
## [1.9.0](https://github.com/woocommerce/email-editor/releases/tag/1.9.0) - 2025-10-31
- 补丁 - Typography_Preprocessor 中为 fontSize textColor 属性添加类型验证以防止来自具有不兼容属性类型的第三方区块的错误 [#61687]
- 补丁 - 从电子邮件编辑中移除未使用的包类并将带前缀的第三方包的 LICENSE 文件添加到构建输出中 [#61673]
- 次要 - Personalization_Tags_Registry 添加取消注册方法 [#61679]
## [1.8.1](https://github.com/woocommerce/email-editor/releases/tag/1.8.1) - 2025-10-27
- 补丁 - 重构个性化标签获取功能以使用核心实体 [#61467]
## [1.8.0](https://github.com/woocommerce/email-editor/releases/tag/1.8.0) - 2025-10-09
- 补丁 - 允许在编辑器的 iframe 中获取支持邮件的核心区块的样式 [#61306]
- 补丁 - 修复了带有边距样式的分组区块导致编辑器崩溃的错误 [#61309]
- 补丁 - 修复了图像区块链接移除功能 [#61329]
- 补丁 - 修复了因向 Styles_Helper::parse_value 传递整型值而导致的类型错误 [#61339]
- 补丁 - 通过 __unserialize() 防止回调替换攻击 [#61335]
- 补丁 - 添加 CssInliner 库并确保包已添加前缀以防止包冲突 [#61210]
- 补丁 - 通过 `json_encode()` `<script>` 标签中渲染时尖括号现在以十六进制编码 [#61245]
- 次要 - woocommerce/product-collection 区块添加邮件渲染说明 [#60941]
## [1.7.0](https://github.com/woocommerce/email-editor/releases/tag/1.7.0) - 2025-09-26
- 补丁 - 修复读取某些主题的站点样式时出现的致命错误 [#60967]
- 次要 - 为核心/视频区块和YouTube嵌入添加邮件渲染说明 [#60957]
## [1.6.0](https://github.com/woocommerce/email-editor/releases/tag/1.6.0) - 2025-09-18
- 补丁 - 降级 Emogrifier 依赖以避免冲突 [#60994]
- 次要 - core/audio core/embed 区块添加电子邮件渲染说明 [#60813]
- 次要 - core/cover 区块添加电子邮件渲染说明 [#60837]
- 次要 - core/gallery 区块添加电子邮件渲染说明 [#60775]
## [1.5.0](https://github.com/woocommerce/email-editor/releases/tag/1.5.0) - 2025-09-09
- 补丁 - 在邮件编辑中从主题样式值提取变量时添加类型检查 [#60538]
- 补丁 - pelago/emogrifier 升级至 v8.0 [#60489]
- 补丁 - 使用更稳健的方式对邮件编辑中的样式属性值进行后处理 [#60764]
- 次要 - 为核心表格区块添加邮件区块渲染器 [#60514]
- 次要 - 为核心/媒体-文本区块添加邮件渲染说明 [#60752]
- 次要 - `WooCommerceEmailEditor` 对象中移除 `block_preview_url` [#60603]
## [1.4.2](https://github.com/woocommerce/email-editor/releases/tag/1.4.2) - 2025-08-21
- 补丁 - iframe 资源中过滤不必要的样式表 [#60354]
- 补丁 - 修复邮件编辑器与站点编辑器的冲突 [#60465]
- 补丁 - 修复邮件编辑器在移动设备上的水平滚动问题 [#60355]
- 补丁 - 当指定时使用在 WP_DEBUG_LOG 中定义的自定义日志文件路径 [#60255]
## [1.4.1](https://github.com/woocommerce/email-editor/releases/tag/1.4.1) - 2025-08-08
- 补丁 - 引入新的 Assets_Manager 类以简化集成 [#60165]
## [1.4.0](https://github.com/woocommerce/email-editor/releases/tag/1.4.0) - 2025-07-31
- 次要 - 为邮件编辑启用站点标志和站点标题区块 [#59624]
- 补丁 - 添加按邮件帖子类型过滤个性化标签的功能 [#60072]
- 补丁 - Abstract_Pattern 类添加新的 post_types 属性 [#60015]
## [1.3.0](https://github.com/woocommerce/email-editor/releases/tag/1.3.0) - 2025-07-24
- 补丁 - 集成来自外部 HTML 到文本库的转换类并从邮件编辑包中移除该库依赖 [#59859]
- 次要 - 新增将区块主题样式同步到邮件编辑的功能 [#59757]
- 次要 - 添加许可和安全策略 [#59859]
## [1.2.0](https://github.com/woocommerce/email-editor/releases/tag/1.2.0) - 2025-07-23
- 补丁 - 修复段落和标题区块中的颜色继承问题 [#59732]
- 补丁 - WooCommerce 邮件编辑中的区块注册添加文档 [#59541]
- 次要 - 添加 `Styles_Helper` 方法以从区块属性生成内联样式并重构区块以使用这些方法 [#59678]
## [1.1.0](https://github.com/woocommerce/email-editor/releases/tag/1.1.0) - 2025-07-16
- 次要 - 添加 Table_Wrapper_Helper 实用工具类 [#59264]
- 次要 - 在邮件文本版本中保留个性化标签
- 补丁 - emogrifier 包标记为生产依赖项
- 补丁 - 添加个性化标签的文档 [#59226]
## [1.0.0](https://github.com/woocommerce/email-editor/releases/tag/1.0.0) - 2025-06-27
- 补丁 - 解决 PHP 8.4 弃用警告 [#57722]
- 补丁 - 修复 WordPress 6.8 的默认渲染模式 [#56820]
- 补丁 - 修复了在个性化标签中解析空参数值的问题 [#58500]
- 补丁 - 修复了图像边框设置背景颜色时的列表内边距以及引语区块中引用上边距的微小渲染问题 [#58796]
- 补丁 - 用户在创建订单后创建账户时发送正确的电子邮件 [#57689]
- 补丁 - 重构电子邮件编辑器容器使用电子邮件编辑器容器而非区块注册表容器以获得更好的库导出兼容性 [#59209]
- 补丁 - 添加用于 PHP 静态分析的命令 [#58135]
- 补丁 - 将电子邮件编辑器文件添加到 Woo Monorepo [#55598]
- 补丁 - 引入新的 Rendering_Context 以替换渲染器类中的 Settings_Controller [#58796]
- 补丁 - Monorepo将软件包许可证统一为 `GPL-2.0-or-later` [#58941]
- 补丁 - 移除电子邮件编辑器软件包中未使用的 Codeception 配置文件 [#55971]
- 补丁 - 从电子邮件编辑器配置中移除对 `settings.allowedBlockTypes` 的使用 [#58966]
- 补丁 - 更新 package.json 命令 [#56161]
- 补丁 - 添加为个性化获取当前上下文的可能性 [#57330]
- 补丁 - 修复了社交链接区块的样式通过添加显式的 margin-right:0 来防止社交图标图像上出现不需要的间距 [#59188]
- 补丁 - 将主题调色板添加到基础主题并移除默认的标题颜色使用文本颜色作为后备 [#58078]
- 补丁 - 确保"在新标签页中预览"显示最新的编辑器保存内容 [#58481]
- 补丁 - 在列出允许与电子邮件文章关联的模板时使用电子邮件模板注册表 [#56110]
- 次要 - 在编辑器设置中添加自动保存超时并禁用代码编辑器 [#57775]
- 次要 - 为核心引语区块添加电子邮件区块渲染器 [#57280]
- 次要 - 添加对在电子邮件编辑器中渲染社交链接和社交链接区块的支持 [#58194]
- 次要 - 在电子邮件编辑器的预览中添加 Woo 电子邮件内容 [#57337]
- 次要 - 添加 `woocommerce_email_editor_send_preview_email_personalizer_context` 过滤器用于修改发送预览电子邮件函数的个性化上下文数据 [#57795]
- 次要 - 处理 href 属性中的个性化标签 [#57958]
- 次要 - 在电子邮件编辑器中实现日志记录支持 [#58607]
- 次要 - 添加对区块自定义回调 render_email_callback 的支持并移除 Blocks_Registry [#59070]
- 次要 - 更新用于发布到 Packagist 的软件包 [#59058]