Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php b/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php
- --- a/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php
- +++ b/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php
- @@ -501,6 +501,8 @@ class acf_field_functions
- // filters
- $field = apply_filters('acf/update_field/type=' . $field['type'], $field, $post_id ); // new filter
- + // set cache
- + wp_cache_replace( 'load_field/key=' . $field['key'], $field, 'acf' );
- // save
- update_post_meta( $post_id, $field['key'], $field );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement