Skip to content

Commit

Permalink
Deploying version 6.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lgladdy committed Apr 5, 2023
1 parent 3b3397e commit 76f850e
Show file tree
Hide file tree
Showing 98 changed files with 112,463 additions and 33,534 deletions.
4 changes: 2 additions & 2 deletions acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Advanced Custom Fields
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.1.2
* Version: 6.1.3
* Author: WP Engine
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
* Text Domain: acf
Expand All @@ -33,7 +33,7 @@ class ACF {
*
* @var string
*/
public $version = '6.1.2';
public $version = '6.1.3';

/**
* The plugin settings array.
Expand Down
1 change: 1 addition & 0 deletions assets/build/css/acf-global.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/build/css/acf-global.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/build/css/acf-global.min.css

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion includes/local-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,20 @@ public function get_files( $post_type = 'acf-field-group' ) {
$files = array();

foreach ( $this->files as $key => $path ) {
if ( acf_determine_internal_post_type( $key ) === $post_type ) {
$internal_post_type = acf_determine_internal_post_type( $key );

if ( $internal_post_type === $post_type ) {
$files[ $key ] = $path;
} elseif ( 'acf-field-group' === $post_type ) {
// If we can't figure out the ACF post type, make an educated guess that it's a field group.
$json = json_decode( file_get_contents( $path ), true );
if ( ! is_array( $json ) ) {
continue;
}

if ( isset( $json['fields'] ) ) {
$files[ $key ] = $path;
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions includes/post-types/class-acf-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,12 @@ public function get_post_type_args( $post ) {

if ( $capability_type !== 'post' && $capability_type !== array( 'post', 'posts' ) ) {
$args['capability_type'] = $capability_type;
$args['map_meta_cap'] = true;
}
}

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

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

// WordPress defaults to the "title" and "editor" supports, but none can be provided by passing false (WP 3.5+).
$supports = is_array( $post['supports'] ) ? $post['supports'] : array();
$supports = array_unique( array_filter( array_map( 'strval', $supports ) ) );
Expand Down
Binary file modified lang/acf-ar.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion lang/acf-ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# This file is distributed under the same license as Advanced Custom Fields.
msgid ""
msgstr ""
"PO-Revision-Date: 2023-04-03T13:26:10+00:00\n"
"PO-Revision-Date: 2023-04-05T15:21:32+00:00\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
Expand Down
Binary file modified lang/acf-bg_BG.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion lang/acf-bg_BG.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# This file is distributed under the same license as Advanced Custom Fields.
msgid ""
msgstr ""
"PO-Revision-Date: 2023-04-03T13:26:10+00:00\n"
"PO-Revision-Date: 2023-04-05T15:21:32+00:00\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"Language: bg_BG\n"
"MIME-Version: 1.0\n"
Expand Down
Binary file modified lang/acf-ca.mo
Binary file not shown.
Loading

0 comments on commit 76f850e

Please sign in to comment.