Skip to content

Commit fca2af4

Browse files
author
ACF
committed
Updates to 6.7.0
1 parent 28183c4 commit fca2af4

File tree

150 files changed

+1811
-899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1811
-899
lines changed

acf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin Name: Advanced Custom Fields PRO
1010
* Plugin URI: https://www.advancedcustomfields.com
1111
* Description: Customize WordPress with powerful, professional and intuitive fields.
12-
* Version: 6.6.2
12+
* Version: 6.7.0
1313
* Author: WP Engine
1414
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
1515
* Update URI: https://www.advancedcustomfields.com/pro
@@ -45,7 +45,7 @@ class ACF {
4545
*
4646
* @var string
4747
*/
48-
public $version = '6.6.2';
48+
public $version = '6.7.0';
4949

5050
/**
5151
* The plugin settings array.

assets/build/css/acf-global.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/css/acf-input.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/css/pro/acf-pro-input.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/css/pro/acf-styles-in-iframe-for-blocks.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/acf-field-group.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/acf-input.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/pro/acf-pro-blocks.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/api/api-helpers.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,19 @@ function acf_get_grouped_posts( $args ) {
12961296

12971297
// find array of post_type
12981298
$post_types = acf_get_array( $args['post_type'] );
1299-
$post_types_labels = acf_get_pretty_post_types( $post_types );
1300-
$is_single_post_type = ( count( $post_types ) == 1 );
1299+
$is_single_post_type = ( count( $post_types ) === 1 );
1300+
1301+
// WordPress 6.8+ sorts post_type arrays for cache key generation
1302+
// We need to use the same sorted order when processing results
1303+
if (
1304+
! $is_single_post_type &&
1305+
$args['posts_per_page'] !== -1 &&
1306+
version_compare( get_bloginfo( 'version' ), '6.8', '>=' )
1307+
) {
1308+
sort( $post_types );
1309+
}
1310+
1311+
$post_types_labels = acf_get_pretty_post_types( $post_types );
13011312

13021313
// attachment doesn't work if it is the only item in an array
13031314
if ( $is_single_post_type ) {

includes/fields/class-acf-field-google-map.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,14 @@ function render_field( $field ) {
153153

154154
<div class="title">
155155

156+
<input class="search" type="text" placeholder="<?php esc_attr_e( 'Search for address...', 'acf' ); ?>" value="<?php echo esc_attr( $search ); ?>" />
157+
156158
<div class="acf-actions -hover">
157-
<a href="#" data-name="search" class="acf-icon -search grey" title="<?php esc_attr_e( 'Search', 'acf' ); ?>"></a>
158-
<a href="#" data-name="clear" class="acf-icon -cancel grey" title="<?php esc_attr_e( 'Clear location', 'acf' ); ?>"></a>
159-
<a href="#" data-name="locate" class="acf-icon -location grey" title="<?php esc_attr_e( 'Find current location', 'acf' ); ?>"></a>
159+
<button type="button" data-name="search" class="acf-icon -search grey" aria-label="<?php esc_attr_e( 'Search', 'acf' ); ?>"></button>
160+
<button type="button" data-name="clear" class="acf-icon -cancel grey" aria-label="<?php esc_attr_e( 'Clear location', 'acf' ); ?>"></button>
161+
<button type="button" data-name="locate" class="acf-icon -location grey" aria-label="<?php esc_attr_e( 'Find current location', 'acf' ); ?>"></button>
160162
</div>
161163

162-
<input class="search" type="text" placeholder="<?php esc_attr_e( 'Search for address...', 'acf' ); ?>" value="<?php echo esc_attr( $search ); ?>" />
163164
<i class="acf-loading"></i>
164165

165166
</div>

0 commit comments

Comments
 (0)