安全自定义字段

描述

安全自定义字段(SCF)扩展了 WordPress 的权限,将其转化为灵活的内容管理工具。有了 SCF,管理自定义数据变得简单而高效。

按需轻松创建字段。 SCF 生成器可以轻松地将字段添加到 WordPress 编辑屏幕,无论您是为菜谱添加新的「成分」字段,还是为专业网站设计复杂的元数据。

灵活放置。字段可应用于整个 WordPress–文章、页面、用户、分类法、媒体、评论,甚至自定义选项页面–按照您的意愿组织数据。

无缝显示。使用 SCF 功能,您可以在模板中显示自定义字段数据,使所有级别的开发人员都能轻松实现内容集成。

全面的内容管理解决方案。除自定义字段外,SCF 还允许您直接从 SCF 界面注册新的文章类型和分类法,从而提供更多控制,而无需额外的插件或自定义代码。

易于访问和用户友好的设计。字段界面与 WordPress 的本地设计保持一致,为内容创建者创造了一种易于访问和使用的体验。

安装此插件将停用功能名称/功能相匹配的插件,特别是高级自定义字段、高级自定义字段专业版和传统的安全自定义字段插件,以避免代码错误(这与 ACF 专业版的行为相同)。

有关安全自定义字段的更多信息,请访问 developer.wordpress.org/secure-custom-fields

功能

  • 清晰易用的设置
  • 强大的内容管理功能
  • 30 多种字段类型

屏幕截图

  • 添加自定义字段组。
  • 在写作时轻松添加自定义内容。
  • 需要新的文章类型?只需添加即可!
  • 轻松浏览各种字段类型。

评价

2025 年 12 月 5 日
Great plugin — lightweight, reliable, and truly secure. Secure Custom Fields protects sensitive data without slowing down the site and integrates smoothly with WordPress workflows. Clean, simple, and does exactly what it promises. Recommended.
2025 年 10 月 22 日
I’ve been waiting for Wordpress to come up with this feature for years. This shouldn’t definitely be part of core. So glad I don’t have to pay for ACF to have something that should be part of Wordpress already out of the box for ages!
阅读所有56条评价

贡献者及开发者

「安全自定义字段」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「安全自定义字段」插件已被翻译至 12 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「安全自定义字段」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

6.7.1

Release Date 10 Dec 2025

功能

  • JSON Schemas: Added Options Pages schema.

Fixes

  • Fixed too-early validation of schemas causing a fatal error.
  • Fix block validation on WordPress 6.2.

6.7.0

Release Date 3 Dec 2025

功能

  • Tested compatibility up to WordPress 6.9.
  • Abilities support. Taxonomy abilities.
  • JSON schemas. Taxonomy schema.

6.6.0

Release Date 19 Nov 2025

功能

  • Backported features up to 6.6.0.
  • Abilities API integration. Post Type abilities.
  • JSON schemas validation infrastructure.

Fixes

  • Fixed Function in network.php
  • SCF label in “More” menu.
  • Get the formatted_value from the original field value.
  • Blocks V3: Fix flexible content not working in sidebar – modal.
  • Use specific entity prefixes for key generation when duplicating entities.

6.5.7

Release Date 28 Aug 2025

功能

  • 灵活的内容布局现在可以在帖子编辑器中重命名,使内容编辑器在管理布局时更加清晰。
  • 现在可以禁用灵活的内容布局,使其无法在前端呈现,而无需删除其数据。
  • 灵活的内容布局现在可以批量折叠和展开,以加快内容编辑速度。
  • Editing a Flexible Content layout now highlights the layout being edited, making it easier to identify.
  • 日期和日期时间选择器字段现在可以配置为默认为当前日期。
  • 在 ACF 块内使用自定义图标选取器选项卡时,现在可以正确工作。
  • 使用俄语翻译时,复制字段组不再会导致致命错误。
  • ACF 类不再使用动态类属性,从而提高了与 PHP 8.2+ 的兼容性。
  • Field group metabox collapse and expand buttons are no longer misaligned in the post editor.
  • HTML 现在可从字段验证错误和工具提示中转义。
  • 为 /wp/v2/types REST API 端点添加了一个新的源参数,允许按来源过滤帖子类型:核心(WordPress 内置)、SCF(SCF 管理的类型)或其他 CPT。

Security

– 对于有条件加载的字段组,字段组标签中的不安全 HTML 现在可正确转义,从而解决了经典编辑器中的一个 JS 执行漏洞。
– 在 ACF 管理器中输出时,字段组标签中的 HTML 现在已转义。
– 双向和条件逻辑 Select2 元素不再在字段标签或帖子标题中呈现 HTML。
– acf.escHtml 函数现在使用第三方 DOMPurify 库来确保删除所有不安全的 HTML。新的 esc_html_dompurify_config JS 过滤器可用于修改默认行为。
– 现在,只要是由 ACF 代码输出的文章标题,都会正确转义。感谢 LAC Co., Ltd. 的 Shogo Kumamaru 负责信息披露。
– 在使用第 3 版 Select2 库时,现在会显示管理通知,因为该库已被弃用,转而使用第 4 版。

6.5.6

因 SVN 错误而放弃发布。

6.5.5

Release Date 31 Jul 2025

功能

  • Connect block attributes with custom fields via UI.
  • Remove the word ‘New’ from default add-new* label values.

Bug Fixes

  • Bug fix: Prevent fatal if class does not exist on Beta Features.

6.5.4

Release Date 30 Jul 2025

Revert from 6.5.2.

6.5.2

Release Date 30 Jul 2025

功能

  • Connect block attributes with custom fields via UI.
  • Remove the word ‘New’ from default add-new* label values.

6.5.1

Release Date 2 Jul 2025

Bug Fixes

  • Command Palette: Use @wordpress\icons instead of Dashicons.

6.5.0

Release Date 23 Jun 2025

Enhancements & Features

  • 已添加命令调色板支持。
  • 为 acf-field 源代码添加了编辑器预览。
  • 添加了一个端点,用于检索帖子类型的自定义字段。
  • 添加了导航菜单作为字段类型。
  • Added compatibility with Woo HPOS for order fields and subscriptions. ( Ported from ACF )
  • Create new options when editing a fields value on Selector. ( Ported from ACF )
  • The “Escaped HTML” warning notice is now disabled by default. ( Ported from ACF )
  • Added new acf/fields/icon_picker/{tab_name}/icons filter ( Ported from ACF )

Bug Fixes

  • Update initialization of the acfL10n object to ensure it’s available globally.
  • SCF Blocks are now forced into preview mode when editing a synced pattern. ( Ported from ACF )
  • SCF no longer causes an infinite loop in bbPress when editing replies. ( Ported from ACF )
  • Changing a field type no longer enables the “Allow Access to Value in Editor UI” setting. ( Ported from ACF )
  • Blocks registered via acf_register_block_type() with a parent value of null no longer fail to register. ( Ported from ACF )
  • Fix AJAX repeater pagination. ( Ported from ACF )
  • Paginated Repeater fields no longer save duplicate values when saving to a WooCommerce Order with HPOS disabled ( Ported from ACF )

Testing

  • 添加了第一批 e2e 测试。

6.4.2

Release Date 14 Apr 2025

  • 解决了简码翻译无法正确解析的问题。
  • 改进字段管理中的 URL 验证。

6.4.1

Release Date 7 Mar 2025

  • 从 Advanced Custom Fields® 分叉
  • 对编码标准进行各种更新。
  • 已更新为依靠 WordPress.org 翻译包来翻译所有字符串。

6.3.9

发布日期 2024 年 10 月 22 日

  • 版本更新发布

6.3.6.3

发布日期 2024年10月15日

  • 安全性 – 在字段组编辑器中编辑字段不再执行存储的 XSS 漏洞。感谢来自 Viettel Cyber Security 的 Duc Luong Tran (janlele91) 负责披露
  • 安全性–文章类型和分类元方框回调不再能够访问任何超全局值,从而进一步加强了 6.3.6.2 中的原始修复。
  • 修复–在块编辑器中使用并附加到侧边栏的 SCF 字段现在可正确验证。

6.3.6.2

发布日期 2024年10月12日

  • 安全性 – 6.3.6.1 中的加固修复也涵盖 $_REQUEST。
  • 分叉 – 将插件更名为安全自定义字段。

6.3.6.1

发布日期 2024 年 10 月 7 日

  • 安全性 – SCF 定义的「文章类型」和「分类法元框」回调不再能够访问 $_POST 数据。(感谢 Automattic 安全团队的披露)