Skip to content

Commit 3342b8e

Browse files
committed
Update internal ACF to 6.1.3
1 parent b7939c9 commit 3342b8e

Some content is hidden

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

98 files changed

+112462
-33533
lines changed

includes/acf/acf.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin Name: Advanced Custom Fields
1010
* Plugin URI: https://www.advancedcustomfields.com
1111
* Description: Customize WordPress with powerful, professional and intuitive fields.
12-
* Version: 6.1.2
12+
* Version: 6.1.3
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
* Text Domain: acf
@@ -33,7 +33,7 @@ class ACF {
3333
*
3434
* @var string
3535
*/
36-
public $version = '6.1.2';
36+
public $version = '6.1.3';
3737

3838
/**
3939
* The plugin settings array.

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

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/acf/assets/build/css/acf-global.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/acf/assets/inc/select2/4/select2.full.min.js

100644100755
File mode changed.

includes/acf/includes/local-json.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,20 @@ public function get_files( $post_type = 'acf-field-group' ) {
295295
$files = array();
296296

297297
foreach ( $this->files as $key => $path ) {
298-
if ( acf_determine_internal_post_type( $key ) === $post_type ) {
298+
$internal_post_type = acf_determine_internal_post_type( $key );
299+
300+
if ( $internal_post_type === $post_type ) {
299301
$files[ $key ] = $path;
302+
} elseif ( 'acf-field-group' === $post_type ) {
303+
// If we can't figure out the ACF post type, make an educated guess that it's a field group.
304+
$json = json_decode( file_get_contents( $path ), true );
305+
if ( ! is_array( $json ) ) {
306+
continue;
307+
}
308+
309+
if ( isset( $json['fields'] ) ) {
310+
$files[ $key ] = $path;
311+
}
300312
}
301313
}
302314

includes/acf/includes/post-types/class-acf-post-type.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,12 @@ public function get_post_type_args( $post ) {
471471

472472
if ( $capability_type !== 'post' && $capability_type !== array( 'post', 'posts' ) ) {
473473
$args['capability_type'] = $capability_type;
474+
$args['map_meta_cap'] = true;
474475
}
475476
}
476477

477478
// TODO: We don't handle the `capabilities` arg at the moment, but may in the future.
478479

479-
// TODO: We don't handle the `map_meta_cap` arg at the moment, but may in the future.
480-
481480
// WordPress defaults to the "title" and "editor" supports, but none can be provided by passing false (WP 3.5+).
482481
$supports = is_array( $post['supports'] ) ? $post['supports'] : array();
483482
$supports = array_unique( array_filter( array_map( 'strval', $supports ) ) );

includes/acf/lang/acf-ar.mo

100644100755
0 Bytes
Binary file not shown.

includes/acf/lang/acf-ar.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# This file is distributed under the same license as Advanced Custom Fields.
1313
msgid ""
1414
msgstr ""
15-
"PO-Revision-Date: 2023-04-03T13:26:10+00:00\n"
15+
"PO-Revision-Date: 2023-04-05T15:21:32+00:00\n"
1616
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
1717
"Language: ar\n"
1818
"MIME-Version: 1.0\n"

includes/acf/lang/acf-bg_BG.mo

0 Bytes
Binary file not shown.

includes/acf/lang/acf-bg_BG.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# This file is distributed under the same license as Advanced Custom Fields.
1313
msgid ""
1414
msgstr ""
15-
"PO-Revision-Date: 2023-04-03T13:26:10+00:00\n"
15+
"PO-Revision-Date: 2023-04-05T15:21:32+00:00\n"
1616
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
1717
"Language: bg_BG\n"
1818
"MIME-Version: 1.0\n"

includes/acf/lang/acf-ca.mo

-1.97 KB
Binary file not shown.

0 commit comments

Comments
 (0)