开发者 |
elliotcondon
bradt deliciousbrains wpengine mattshaw lgladdy antpb mindctrl modernnerd rfmeier andrewbotz dalewilliams polevaultweb johnstonphilip wordpressdotorg |
---|---|
更新时间 | 2025年1月21日 23:16 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Support Forums. Our ACF Community Forums provide a great resource for searching and finding previously answered and asked support questions. You may create a new thread on these forums, however, it is not guaranteed that you will receive an answer from our support team. This is more of an area for ACF developers to talk to one another, post ideas, plugins and provide basic help. View the Support Forum
edit_posts
capability but with custom capabilities for a editing a custom post type, can now correctly load field groups loaded via conditional location rulesthe_field
, the_sub_field
or the ACF shortcode, or when retrieved by a get_
function with the escape html parameter setselected
attribute to specify which should be selected by default, and support class attributesacf/json/save_file_name
filter now correctly applies when deleting JSON filesacf/field
source. For more information on how to use this, please read the release blog postselect2_escape_markup
now allows fields to customize select2's HTML escaping behaviorthe_field
now escapes potentially unsafe HTML as notified since ACF 6.2.5. For full information, please read the release blog postacf/shortcode/prevent_access
filter is now available to limit what data the ACF shortcode is allowed to access$escape_html
on get functions for array returning field types no longer produces an Array to string conversion errorget_field()
and other get_
functions now support an escape_html
parameter which return an HTML safe field valueesc_url
rather than wp_kses_post
when returning an HTML safe valuerequired
property would have no effect (such as the tab, or accordion) will no longer show the optionlink
is now prohibited from being used as a CPT name to avoid a WordPress core conflictwp_kses
, escaping unsafe HTML. This may be a breaking change to your site but is required for security, a message will be shown in WordPress admin if you are affected. Please see the blog post for this release for more information. Thanks to Francesco Carlucci via Wordfence for the responsible disclosurethe_field
and the_sub_field
may require theme changes to your site to avoid stripping unsafe HTML. Please see the blog post for this release for more informationacf/the_field/escape_html_optin
when using the_field
and the_sub_field
before this becomes default in an upcoming ACF release.show_updates
setting to hideshow_updates
is set or filtered to false, ACF PRO will now automatically still activate defined licensesacf_format_date
now ensures the date parameter is valid to prevent fatal errors if other data types are passed inacf/filesize
filter to allow third party media plugins to bypass ACF calling filesize()
on attachments with uncached file sizes, which may result in a remote download if offloadedparseNodeAttr
can now be shortcut with the new acf_blocks_parse_node_attr
filter.savePost
function will no longer be caught and ignored by ACFacf/json/save_file_name
filterblock_type_metadata_settings
PHP filter to add usesContext values no longer breaks ACF blocksPHP_EOL
to detect the correct newline character with a filter acf/json/eof_newline
to alter it.