This commit is contained in:
Toby Inkster 2021-02-09 12:33:33 +00:00
parent 76383b8979
commit f0b0346bb7
22 changed files with 440 additions and 434 deletions

View File

@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields PRO Plugin Name: Advanced Custom Fields PRO
Plugin URI: https://www.advancedcustomfields.com Plugin URI: https://www.advancedcustomfields.com
Description: Customize WordPress with powerful, professional and intuitive fields. Description: Customize WordPress with powerful, professional and intuitive fields.
Version: 5.9.3 Version: 5.9.4
Author: Elliot Condon Author: Elliot Condon
Author URI: https://www.advancedcustomfields.com Author URI: https://www.advancedcustomfields.com
Text Domain: acf Text Domain: acf
@ -17,7 +17,7 @@ if( ! class_exists('ACF') ) :
class ACF { class ACF {
/** @var string The plugin version number. */ /** @var string The plugin version number. */
var $version = '5.9.3'; var $version = '5.9.4';
/** @var array The plugin settings array. */ /** @var array The plugin settings array. */
var $settings = array(); var $settings = array();

File diff suppressed because one or more lines are too long

View File

@ -724,7 +724,7 @@
var copy = acf.__('copy'); var copy = acf.__('copy');
// increase suffix "1" // increase suffix "1"
if( $.isNumeric(end) ) { if( acf.isNumeric(end) ) {
var i = (end*1) + 1; var i = (end*1) + 1;
label = label.replace( end, i ); label = label.replace( end, i );
name = name.replace( end, i ); name = name.replace( end, i );

File diff suppressed because one or more lines are too long

View File

@ -5369,7 +5369,7 @@
label: __('Value is equal to'), label: __('Value is equal to'),
fieldTypes: [ 'text', 'textarea', 'number', 'range', 'email', 'url', 'password' ], fieldTypes: [ 'text', 'textarea', 'number', 'range', 'email', 'url', 'password' ],
match: function( rule, field ){ match: function( rule, field ){
if( $.isNumeric(rule.value) ) { if( acf.isNumeric(rule.value) ) {
return isEqualToNumber( rule.value, field.val() ); return isEqualToNumber( rule.value, field.val() );
} else { } else {
return isEqualTo( rule.value, field.val() ); return isEqualTo( rule.value, field.val() );
@ -5565,8 +5565,8 @@
// append // append
choices.push({ choices.push({
id: $.trim( line[0] ), id: line[0].trim(),
text: $.trim( line[1] ) text: line[1].trim()
}); });
}); });
@ -6066,7 +6066,7 @@
var getPostID = function() { var getPostID = function() {
var postID = acf.get('post_id'); var postID = acf.get('post_id');
return $.isNumeric(postID) ? postID : 0; return acf.isNumeric(postID) ? postID : 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -2522,6 +2522,20 @@
} }
/**
* Returns true if value is a number or a numeric string.
*
* @date 30/11/20
* @since 5.9.4
* @link https://stackoverflow.com/questions/9716468/pure-javascript-a-function-like-jquerys-isnumeric/9716488#9716488
*
* @param mixed n The variable being evaluated.
* @return bool.
*/
acf.isNumeric = function( n ){
return !isNaN(parseFloat(n)) && isFinite(n);
}
/** /**
* Triggers a "refresh" action used by various Components to redraw the DOM. * Triggers a "refresh" action used by various Components to redraw the DOM.
* *
@ -2542,7 +2556,11 @@
}); });
$(window).on('load', function(){ $(window).on('load', function(){
acf.doAction('load');
// Use timeout to ensure action runs after Gutenberg has modified DOM elements during "DOMContentLoaded".
setTimeout(function(){
acf.doAction('load');
});
}); });
$(window).on('beforeunload', function(){ $(window).on('beforeunload', function(){

File diff suppressed because one or more lines are too long

View File

@ -40,18 +40,16 @@ function acf_get_reference( $field_name, $post_id ) {
} }
/** /**
* acf_get_value
*
* Retrieves the value for a given field and post_id. * Retrieves the value for a given field and post_id.
* *
* @date 28/09/13 * @date 28/09/13
* @since 5.0.0 * @since 5.0.0
* *
* @param (int|string) $post_id The post id. * @param int|string $post_id The post id.
* @param array $field The field array. * @param array $field The field array.
* @return mixed. * @return mixed
*/ */
function acf_get_value( $post_id = 0, $field ) { function acf_get_value( $post_id, $field ) {
// Allow filter to short-circuit load_value logic. // Allow filter to short-circuit load_value logic.
$value = apply_filters( "acf/pre_load_value", null, $post_id, $field ); $value = apply_filters( "acf/pre_load_value", null, $post_id, $field );

View File

@ -186,7 +186,8 @@ function acf_decode_post_id( $post_id = 0 ) {
break; break;
case 'blog_%d': case 'blog_%d':
case 'site_%d': case 'site_%d':
$type = 'blog'; // Allow backwards compatibility for custom taxonomies.
$type = taxonomy_exists($type) ? 'term' : 'blog';
$id = absint( $id ); $id = absint( $id );
break; break;
default: default:

View File

@ -133,7 +133,6 @@ class acf_admin_field_group {
add_action('acf/input/admin_head', array($this, 'admin_head')); add_action('acf/input/admin_head', array($this, 'admin_head'));
add_action('acf/input/form_data', array($this, 'form_data')); add_action('acf/input/form_data', array($this, 'form_data'));
add_action('acf/input/admin_footer', array($this, 'admin_footer')); add_action('acf/input/admin_footer', array($this, 'admin_footer'));
add_action('acf/input/admin_footer_js', array($this, 'admin_footer_js'));
// filters // filters
@ -339,27 +338,6 @@ class acf_admin_field_group {
} }
/*
* admin_footer_js
*
* description
*
* @type function
* @date 31/05/2016
* @since 5.3.8
*
* @param $post_id (int)
* @return $post_id (int)
*/
function admin_footer_js() {
// 3rd party hook
do_action('acf/field_group/admin_footer_js');
}
/* /*
* screen_settings * screen_settings
* *

View File

@ -62,8 +62,6 @@ class ACF_Ajax {
} }
/** /**
* set
*
* Sets request data for the given key. * Sets request data for the given key.
* *
* @date 31/7/18 * @date 31/7/18
@ -73,7 +71,7 @@ class ACF_Ajax {
* @param mixed $value The data value. * @param mixed $value The data value.
* @return ACF_Ajax * @return ACF_Ajax
*/ */
function set( $key = '', $value ) { function set( $key = '', $value = null ) {
$this->request[$key] = $value; $this->request[$key] = $value;
return $this; return $this;
} }

View File

@ -148,8 +148,28 @@ class acf_field_email extends acf_field {
'name' => 'append', 'name' => 'append',
)); ));
} }
/**
* Validate the email value. If this method returns TRUE, the input value is valid. If
* FALSE or a string is returned, the input value is invalid and the user is shown a
* notice. If a string is returned, the string is show as the message text.
*
* @param bool $valid Whether the value is valid.
* @param mixed $value The field value.
* @param array $field The field array.
* @param string $input The request variable name for the inbound field.
*
* @return bool|string
*/
public function validate_value( $valid, $value, $field, $input ) {
if ( $value && filter_var( $value, FILTER_VALIDATE_EMAIL ) === false ) {
return sprintf( __( "'%s' is not a valid email address", 'acf' ), $value );
}
return $valid;
}
} }

View File

@ -55,7 +55,6 @@ class acf_field_radio extends acf_field {
function render_field( $field ) { function render_field( $field ) {
// vars // vars
$i = 0;
$e = ''; $e = '';
$ul = array( $ul = array(
'class' => 'acf-radio-list', 'class' => 'acf-radio-list',
@ -157,14 +156,10 @@ class acf_field_radio extends acf_field {
$class = ''; $class = '';
// increase counter
$i++;
// vars // vars
$atts = array( $atts = array(
'type' => 'radio', 'type' => 'radio',
'id' => $field['id'], 'id' => sanitize_title( $field['id'] . '-' . $value ),
'name' => $field['name'], 'name' => $field['name'],
'value' => $value 'value' => $value
); );
@ -187,14 +182,6 @@ class acf_field_radio extends acf_field {
} }
// id (use crounter for each input)
if( $i > 1 ) {
$atts['id'] .= '-' . $value;
}
// append // append
$e .= '<li><label' . $class . '><input ' . acf_esc_attr( $atts ) . '/>' . $label . '</label></li>'; $e .= '<li><label' . $class . '><input ' . acf_esc_attr( $atts ) . '/>' . $label . '</label></li>';

View File

@ -1,16 +1,16 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n" "Project-Id-Version: Advanced Custom Fields Pro v5.9.3\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"POT-Creation-Date: 2015-08-11 23:33+0200\n" "POT-Creation-Date: 2015-08-11 23:33+0200\n"
"PO-Revision-Date: 2018-02-06 10:06+1000\n" "PO-Revision-Date: 2021-01-11 23:02+0900\n"
"Last-Translator: Elliot Condon <e@elliotcondon.com>\n" "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
"Language-Team: shogo kato <s_kato@crete.co.jp>\n" "Language-Team: game-ryo <gr@game-ryo.com>\n"
"Language: ja_JP\n" "Language: ja_JP\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.1\n" "X-Generator: Poedit 2.4.2\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
"X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;" "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;"
@ -101,16 +101,15 @@ msgstr "フィールドが見つかりませんでした"
msgid "No Fields found in Trash" msgid "No Fields found in Trash"
msgstr "ゴミ箱の中にフィールドは見つかりませんでした" msgstr "ゴミ箱の中にフィールドは見つかりませんでした"
#: acf.php:268 admin/field-group.php:283 admin/field-groups.php:583 #: acf.php:268 admin/field-group.php:283 admin/field-groups.php:583 admin/views/field-group-options.php:18
#: admin/views/field-group-options.php:18
msgid "Disabled" msgid "Disabled"
msgstr "" msgstr "無効状態"
#: acf.php:273 #: acf.php:273
#, php-format #, php-format
msgid "Disabled <span class=\"count\">(%s)</span>" msgid "Disabled <span class=\"count\">(%s)</span>"
msgid_plural "Disabled <span class=\"count\">(%s)</span>" msgid_plural "Disabled <span class=\"count\">(%s)</span>"
msgstr[0] "" msgstr[0] "無効状態 <span class=\"count\">(%s)</span>"
#: admin/admin.php:57 admin/views/field-group-options.php:120 #: admin/admin.php:57 admin/views/field-group-options.php:120
msgid "Custom Fields" msgid "Custom Fields"
@ -118,31 +117,31 @@ msgstr "カスタムフィールド"
#: admin/field-group.php:68 admin/field-group.php:69 admin/field-group.php:71 #: admin/field-group.php:68 admin/field-group.php:69 admin/field-group.php:71
msgid "Field group updated." msgid "Field group updated."
msgstr "フィールドグループを更新しました" msgstr "フィールドグループを更新しました"
#: admin/field-group.php:70 #: admin/field-group.php:70
msgid "Field group deleted." msgid "Field group deleted."
msgstr "フィールドグループを削除しました" msgstr "フィールドグループを削除しました"
#: admin/field-group.php:73 #: admin/field-group.php:73
msgid "Field group published." msgid "Field group published."
msgstr "フィールドグループを公開しました" msgstr "フィールドグループを公開しました"
#: admin/field-group.php:74 #: admin/field-group.php:74
msgid "Field group saved." msgid "Field group saved."
msgstr "フィールドグループを保存しました" msgstr "フィールドグループを保存しました"
#: admin/field-group.php:75 #: admin/field-group.php:75
msgid "Field group submitted." msgid "Field group submitted."
msgstr "フィールドグループを送信しました" msgstr "フィールドグループを送信しました"
#: admin/field-group.php:76 #: admin/field-group.php:76
msgid "Field group scheduled for." msgid "Field group scheduled for."
msgstr "フィールドグループを公開予約しました" msgstr "フィールドグループを公開予約しました"
#: admin/field-group.php:77 #: admin/field-group.php:77
msgid "Field group draft updated." msgid "Field group draft updated."
msgstr "フィールドグループの下書きを更新しました" msgstr "フィールドグループの下書きを更新しました"
#: admin/field-group.php:176 #: admin/field-group.php:176
msgid "Move to trash. Are you sure?" msgid "Move to trash. Are you sure?"
@ -204,15 +203,15 @@ msgstr "位置"
#: admin/field-group.php:215 #: admin/field-group.php:215
msgid "Settings" msgid "Settings"
msgstr "" msgstr "設定"
#: admin/field-group.php:253 #: admin/field-group.php:253
msgid "Field Keys" msgid "Field Keys"
msgstr "" msgstr "フィールドキー"
#: admin/field-group.php:283 admin/views/field-group-options.php:17 #: admin/field-group.php:283 admin/views/field-group-options.php:17
msgid "Active" msgid "Active"
msgstr "" msgstr "アクティブ"
#: admin/field-group.php:744 #: admin/field-group.php:744
msgid "Front Page" msgid "Front Page"
@ -254,9 +253,9 @@ msgstr "バックエンドで表示"
msgid "Super Admin" msgid "Super Admin"
msgstr "ネットワーク管理者" msgstr "ネットワーク管理者"
#: admin/field-group.php:818 admin/field-group.php:826 admin/field-group.php:840 #: admin/field-group.php:818 admin/field-group.php:826 admin/field-group.php:840 admin/field-group.php:847
#: admin/field-group.php:847 admin/field-group.php:862 admin/field-group.php:872 fields/file.php:235 #: admin/field-group.php:862 admin/field-group.php:872 fields/file.php:235 fields/image.php:226
#: fields/image.php:226 pro/fields/gallery.php:653 #: pro/fields/gallery.php:653
msgid "All" msgid "All"
msgstr "全て" msgstr "全て"
@ -293,7 +292,7 @@ msgstr "フィールドを移動"
#, php-format #, php-format
msgid "Active <span class=\"count\">(%s)</span>" msgid "Active <span class=\"count\">(%s)</span>"
msgid_plural "Active <span class=\"count\">(%s)</span>" msgid_plural "Active <span class=\"count\">(%s)</span>"
msgstr[0] "" msgstr[0] "アクティブ <span class=\"count\">(%s)</span>"
#: admin/field-groups.php:142 #: admin/field-groups.php:142
#, php-format #, php-format
@ -304,7 +303,7 @@ msgstr "フィールドグループを複製しました。 %s"
#, php-format #, php-format
msgid "%s field group duplicated." msgid "%s field group duplicated."
msgid_plural "%s field groups duplicated." msgid_plural "%s field groups duplicated."
msgstr[0] "%s個 のフィールドグループを複製しました" msgstr[0] "%s個 のフィールドグループを複製しました"
#: admin/field-groups.php:228 #: admin/field-groups.php:228
#, php-format #, php-format
@ -315,7 +314,7 @@ msgstr "フィールドグループを同期しました。%s"
#, php-format #, php-format
msgid "%s field group synchronised." msgid "%s field group synchronised."
msgid_plural "%s field groups synchronised." msgid_plural "%s field groups synchronised."
msgstr[0] "%s個 のフィールドグループを同期しました" msgstr[0] "%s個 のフィールドグループを同期しました"
#: admin/field-groups.php:403 admin/field-groups.php:573 #: admin/field-groups.php:403 admin/field-groups.php:573
msgid "Sync available" msgid "Sync available"
@ -328,11 +327,11 @@ msgstr "タイトル"
#: admin/field-groups.php:517 admin/views/field-group-options.php:98 admin/views/update-network.php:20 #: admin/field-groups.php:517 admin/views/field-group-options.php:98 admin/views/update-network.php:20
#: admin/views/update-network.php:28 #: admin/views/update-network.php:28
msgid "Description" msgid "Description"
msgstr "" msgstr "説明"
#: admin/field-groups.php:518 admin/views/field-group-options.php:10 #: admin/field-groups.php:518 admin/views/field-group-options.php:10
msgid "Status" msgid "Status"
msgstr "" msgstr "状態"
#: admin/field-groups.php:616 admin/settings-info.php:76 pro/admin/views/settings-updates.php:111 #: admin/field-groups.php:616 admin/settings-info.php:76 pro/admin/views/settings-updates.php:111
msgid "Changelog" msgid "Changelog"
@ -426,7 +425,7 @@ msgstr "新着情報"
#: admin/settings-tools.php:54 admin/views/settings-tools-export.php:9 admin/views/settings-tools.php:31 #: admin/settings-tools.php:54 admin/views/settings-tools-export.php:9 admin/views/settings-tools.php:31
msgid "Tools" msgid "Tools"
msgstr "" msgstr "ツール"
#: admin/settings-tools.php:151 admin/settings-tools.php:365 #: admin/settings-tools.php:151 admin/settings-tools.php:365
msgid "No field groups selected" msgid "No field groups selected"
@ -438,7 +437,7 @@ msgstr "ファイルが選択されていません"
#: admin/settings-tools.php:201 #: admin/settings-tools.php:201
msgid "Error uploading file. Please try again" msgid "Error uploading file. Please try again"
msgstr "ファイルのアップロードに失敗しました。もう一度試してください" msgstr "ファイルのアップロードに失敗しました。もう一度試してください"
#: admin/settings-tools.php:210 #: admin/settings-tools.php:210
msgid "Incorrect file type" msgid "Incorrect file type"
@ -462,11 +461,11 @@ msgstr ""
#: admin/update.php:113 #: admin/update.php:113
msgid "Upgrade ACF" msgid "Upgrade ACF"
msgstr "" msgstr "ACFをアップグレード"
#: admin/update.php:143 #: admin/update.php:143
msgid "Review sites & upgrade" msgid "Review sites & upgrade"
msgstr "" msgstr "サイトをレビュー&アップグレード"
#: admin/update.php:298 #: admin/update.php:298
msgid "Upgrade" msgid "Upgrade"
@ -474,7 +473,7 @@ msgstr "アップグレード"
#: admin/update.php:328 #: admin/update.php:328
msgid "Upgrade Database" msgid "Upgrade Database"
msgstr "" msgstr "データベースをアップグレード"
#: admin/views/field-group-field-conditional-logic.php:29 #: admin/views/field-group-field-conditional-logic.php:29
msgid "Conditional Logic" msgid "Conditional Logic"
@ -494,8 +493,7 @@ msgstr "はい"
#: fields/post_object.php:435 fields/post_object.php:449 fields/select.php:412 fields/select.php:426 #: fields/post_object.php:435 fields/post_object.php:449 fields/select.php:412 fields/select.php:426
#: fields/select.php:440 fields/select.php:454 fields/tab.php:173 fields/taxonomy.php:685 #: fields/select.php:440 fields/select.php:454 fields/tab.php:173 fields/taxonomy.php:685
#: fields/taxonomy.php:771 fields/taxonomy.php:785 fields/taxonomy.php:799 fields/taxonomy.php:813 #: fields/taxonomy.php:771 fields/taxonomy.php:785 fields/taxonomy.php:799 fields/taxonomy.php:813
#: fields/user.php:458 fields/user.php:472 fields/wysiwyg.php:385 #: fields/user.php:458 fields/user.php:472 fields/wysiwyg.php:385 pro/admin/views/settings-updates.php:103
#: pro/admin/views/settings-updates.php:103
msgid "No" msgid "No"
msgstr "いいえ" msgstr "いいえ"
@ -573,7 +571,7 @@ msgstr "フィールド名"
#: admin/views/field-group-field.php:94 #: admin/views/field-group-field.php:94
msgid "Single word, no spaces. Underscores and dashes allowed" msgid "Single word, no spaces. Underscores and dashes allowed"
msgstr "スペースは不可、アンダースコアとダッシュは使用可能" msgstr "スペースは不可、アンダースコアとダッシュは使用可能"
#: admin/views/field-group-field.php:105 #: admin/views/field-group-field.php:105
msgid "Field Type" msgid "Field Type"
@ -631,7 +629,7 @@ msgstr "タイプ"
msgid "No fields. Click the <strong>+ Add Field</strong> button to create your first field." msgid "No fields. Click the <strong>+ Add Field</strong> button to create your first field."
msgstr "" msgstr ""
"フィールドはありません。<strong>+ 新規追加</strong>ボタンをクリックして最初のフィールドを作成してくださ" "フィールドはありません。<strong>+ 新規追加</strong>ボタンをクリックして最初のフィールドを作成してくださ"
"い" "い"
#: admin/views/field-group-fields.php:51 #: admin/views/field-group-fields.php:51
msgid "Drag and drop to reorder" msgid "Drag and drop to reorder"
@ -647,7 +645,7 @@ msgstr "ルール"
#: admin/views/field-group-locations.php:6 #: admin/views/field-group-locations.php:6
msgid "Create a set of rules to determine which edit screens will use these advanced custom fields" msgid "Create a set of rules to determine which edit screens will use these advanced custom fields"
msgstr "どの編集画面でカスタムフィールドを表示するかを決定するルールを作成します" msgstr "どの編集画面でカスタムフィールドを表示するかを決定するルールを作成します"
#: admin/views/field-group-locations.php:21 #: admin/views/field-group-locations.php:21
msgid "Show this field group if" msgid "Show this field group if"
@ -787,15 +785,15 @@ msgstr "フィールドの下"
#: admin/views/field-group-options.php:87 #: admin/views/field-group-options.php:87
msgid "Order No." msgid "Order No."
msgstr "順" msgstr "順序 No."
#: admin/views/field-group-options.php:88 #: admin/views/field-group-options.php:88
msgid "Field groups with a lower order will appear first" msgid "Field groups with a lower order will appear first"
msgstr "" msgstr "順番が小さいフィールドグループほど最初に表示されます"
#: admin/views/field-group-options.php:99 #: admin/views/field-group-options.php:99
msgid "Shown in field group list" msgid "Shown in field group list"
msgstr "" msgstr "フィールドグループリストに表示されます"
#: admin/views/field-group-options.php:109 #: admin/views/field-group-options.php:109
msgid "Hide on screen" msgid "Hide on screen"
@ -803,13 +801,15 @@ msgstr "画面に非表示"
#: admin/views/field-group-options.php:110 #: admin/views/field-group-options.php:110
msgid "<b>Select</b> items to <b>hide</b> them from the edit screen." msgid "<b>Select</b> items to <b>hide</b> them from the edit screen."
msgstr "編集画面で<b>表示しない</b>アイテムを<b>選択</b>" msgstr "編集画面で<b>表示しない</b>アイテムを<b>選択</b>"
#: admin/views/field-group-options.php:110 #: admin/views/field-group-options.php:110
msgid "" msgid ""
"If multiple field groups appear on an edit screen, the first field group's options will be used (the " "If multiple field groups appear on an edit screen, the first field group's options will be used (the "
"one with the lowest order number)" "one with the lowest order number)"
msgstr "" msgstr ""
"編集画面上に複数のフィールドグループが表示される場合、最初のフィールドグループ(=順番の数値が最も小さい"
"グループ)のオプションが使用されます。"
#: admin/views/field-group-options.php:117 #: admin/views/field-group-options.php:117
msgid "Permalink" msgid "Permalink"
@ -924,7 +924,7 @@ msgid ""
"allows you to drag and drop fields in and out of parent fields!" "allows you to drag and drop fields in and out of parent fields!"
msgstr "" msgstr ""
"データ構造を再設計したことでサブフィールドは親フィールドから独立して存在できるようになりました。これに" "データ構造を再設計したことでサブフィールドは親フィールドから独立して存在できるようになりました。これに"
"よって親フィールドの内外にフィールドをドラッグアンドドロップできるます。" "よって親フィールドの内外にフィールドをドラッグアンドドロップできます!"
#: admin/views/settings-info.php:45 #: admin/views/settings-info.php:45
msgid "Goodbye Add-ons. Hello PRO" msgid "Goodbye Add-ons. Hello PRO"
@ -975,8 +975,8 @@ msgid ""
"To help make upgrading easy, <a href=\"%s\">login to your store account</a> and claim a free copy of " "To help make upgrading easy, <a href=\"%s\">login to your store account</a> and claim a free copy of "
"ACF PRO!" "ACF PRO!"
msgstr "" msgstr ""
"簡単なアップグレードのために、<a href=\"%s\">ストアアカウントにログイン</a>してACF PROの無料コピーを申請" "アップグレードを簡単にするために、<a href=\"%s\">ストアアカウントにログイン</a>してACF PROの無料版を請求"
"してください" "してください!"
#: admin/views/settings-info.php:64 #: admin/views/settings-info.php:64
#, php-format #, php-format
@ -985,7 +985,7 @@ msgid ""
"please contact our support team via the <a href=\"%s\">help desk</a>" "please contact our support team via the <a href=\"%s\">help desk</a>"
msgstr "" msgstr ""
"我々は多くの質問に応えるために<a href=\"%s\">アップグレードガイド</a>を用意していますが、もし質問がある" "我々は多くの質問に応えるために<a href=\"%s\">アップグレードガイド</a>を用意していますが、もし質問がある"
"場合は<a href=\"%s\">ヘルプデスク</a>からサポートチームに連絡をしてください" "場合は<a href=\"%s\">ヘルプデスク</a>からサポートチームに連絡をしてください"
#: admin/views/settings-info.php:72 #: admin/views/settings-info.php:72
msgid "Under the Hood" msgid "Under the Hood"
@ -997,7 +997,7 @@ msgstr "よりスマートなフィールド設定"
#: admin/views/settings-info.php:78 #: admin/views/settings-info.php:78
msgid "ACF now saves its field settings as individual post objects" msgid "ACF now saves its field settings as individual post objects"
msgstr "ACFはそれぞれのフィールドを独立した投稿オブジェクトとして保存するようになりました" msgstr "ACFはそれぞれのフィールドを独立した投稿オブジェクトとして保存するようになりました"
#: admin/views/settings-info.php:82 #: admin/views/settings-info.php:82
msgid "More AJAX" msgid "More AJAX"
@ -1005,7 +1005,7 @@ msgstr "いっそうAJAXに"
#: admin/views/settings-info.php:83 #: admin/views/settings-info.php:83
msgid "More fields use AJAX powered search to speed up page loading" msgid "More fields use AJAX powered search to speed up page loading"
msgstr "ページの読み込み速度を高速化するために、より多くのフィールドがAJAXを利用するようになりました" msgstr "ページの読み込み速度を高速化するために、より多くのフィールドがAJAXを利用するようになりました"
#: admin/views/settings-info.php:87 #: admin/views/settings-info.php:87
msgid "Local JSON" msgid "Local JSON"
@ -1013,7 +1013,7 @@ msgstr "ローカルJSON"
#: admin/views/settings-info.php:88 #: admin/views/settings-info.php:88
msgid "New auto export to JSON feature improves speed" msgid "New auto export to JSON feature improves speed"
msgstr "新しいJSON形式の自動エクスポート機能の速度を改善" msgstr "新しいJSON形式の自動エクスポート機能の速度を改善"
#: admin/views/settings-info.php:94 #: admin/views/settings-info.php:94
msgid "Better version control" msgid "Better version control"
@ -1021,7 +1021,7 @@ msgstr "より良いバージョンコントロール"
#: admin/views/settings-info.php:95 #: admin/views/settings-info.php:95
msgid "New auto export to JSON feature allows field settings to be version controlled" msgid "New auto export to JSON feature allows field settings to be version controlled"
msgstr "新しいJSON形式の自動エクスポート機能は、フィールド設定のバージョンコントロールを可能にします" msgstr "新しいJSON形式の自動エクスポート機能は、フィールド設定のバージョンコントロールを可能にします"
#: admin/views/settings-info.php:99 #: admin/views/settings-info.php:99
msgid "Swapped XML for JSON" msgid "Swapped XML for JSON"
@ -1029,7 +1029,7 @@ msgstr "XMLからJSONへ"
#: admin/views/settings-info.php:100 #: admin/views/settings-info.php:100
msgid "Import / Export now uses JSON in favour of XML" msgid "Import / Export now uses JSON in favour of XML"
msgstr "インポート / エクスポートにXML形式より優れているJSON形式が使えます" msgstr "インポート / エクスポートにXML形式より優れているJSON形式が使えます"
#: admin/views/settings-info.php:104 #: admin/views/settings-info.php:104
msgid "New Forms" msgid "New Forms"
@ -1037,11 +1037,11 @@ msgstr "新しいフォーム"
#: admin/views/settings-info.php:105 #: admin/views/settings-info.php:105
msgid "Fields can now be mapped to comments, widgets and all user forms!" msgid "Fields can now be mapped to comments, widgets and all user forms!"
msgstr "コメントとウィジェット、全てのユーザーのフォームにフィールドを追加できます。" msgstr "コメントとウィジェット、全てのユーザーのフォームにフィールドを追加できるようになりました!"
#: admin/views/settings-info.php:112 #: admin/views/settings-info.php:112
msgid "A new field for embedding content has been added" msgid "A new field for embedding content has been added"
msgstr "新しいフィールドに「oEmbed埋め込みコンテンツ」を追加しています" msgstr "新しいフィールドに「oEmbed埋め込みコンテンツ」を追加しています"
#: admin/views/settings-info.php:116 #: admin/views/settings-info.php:116
msgid "New Gallery" msgid "New Gallery"
@ -1049,7 +1049,7 @@ msgstr "新しいギャラリー"
#: admin/views/settings-info.php:117 #: admin/views/settings-info.php:117
msgid "The gallery field has undergone a much needed facelift" msgid "The gallery field has undergone a much needed facelift"
msgstr "ギャラリーフィールドは多くのマイナーチェンジをしています" msgstr "ギャラリーフィールドは多くのマイナーチェンジをしています"
#: admin/views/settings-info.php:121 #: admin/views/settings-info.php:121
msgid "New Settings" msgid "New Settings"
@ -1057,7 +1057,7 @@ msgstr "新しい設定"
#: admin/views/settings-info.php:122 #: admin/views/settings-info.php:122
msgid "Field group settings have been added for label placement and instruction placement" msgid "Field group settings have been added for label placement and instruction placement"
msgstr "フィールドグループの設定に「ラベルの配置」と「説明の配置」を追加しています" msgstr "フィールドグループの設定に「ラベルの配置」と「説明の配置」を追加しています"
#: admin/views/settings-info.php:128 #: admin/views/settings-info.php:128
msgid "Better Front End Forms" msgid "Better Front End Forms"
@ -1065,7 +1065,7 @@ msgstr "より良いフロントエンドフォーム"
#: admin/views/settings-info.php:129 #: admin/views/settings-info.php:129
msgid "acf_form() can now create a new post on submission" msgid "acf_form() can now create a new post on submission"
msgstr "acf_form()は新しい投稿をフロントエンドから作成できるようになりました" msgstr "acf_form()は新しい投稿をフロントエンドから作成できるようになりました"
#: admin/views/settings-info.php:133 #: admin/views/settings-info.php:133
msgid "Better Validation" msgid "Better Validation"
@ -1073,7 +1073,7 @@ msgstr "より良いバリデーション"
#: admin/views/settings-info.php:134 #: admin/views/settings-info.php:134
msgid "Form validation is now done via PHP + AJAX in favour of only JS" msgid "Form validation is now done via PHP + AJAX in favour of only JS"
msgstr "フォームバリデーションは、JSのみより優れているPHP + AJAXで行われます" msgstr "フォームバリデーションは、JSのみより優れているPHP + AJAXで行われます"
#: admin/views/settings-info.php:138 #: admin/views/settings-info.php:138
msgid "Relationship Field" msgid "Relationship Field"
@ -1090,7 +1090,7 @@ msgstr "フィールド移動"
#: admin/views/settings-info.php:146 #: admin/views/settings-info.php:146
msgid "New field group functionality allows you to move a field between groups & parents" msgid "New field group functionality allows you to move a field between groups & parents"
msgstr "" msgstr ""
"新しいフィールドグループでは、フィールドが親フィールドやフィールドグループ間を移動することができます" "新しいフィールドグループでは、フィールドが親フィールドやフィールドグループ間を移動することができます"
#: admin/views/settings-info.php:150 fields/page_link.php:36 #: admin/views/settings-info.php:150 fields/page_link.php:36
msgid "Page Link" msgid "Page Link"
@ -1098,7 +1098,7 @@ msgstr "ページリンク"
#: admin/views/settings-info.php:151 #: admin/views/settings-info.php:151
msgid "New archives group in page_link field selection" msgid "New archives group in page_link field selection"
msgstr "新しいページリンクの選択肢に「アーカイブグループ」を追加しています" msgstr "新しいページリンクの選択肢に「アーカイブグループ」を追加しています"
#: admin/views/settings-info.php:155 #: admin/views/settings-info.php:155
msgid "Better Options Pages" msgid "Better Options Pages"
@ -1106,7 +1106,7 @@ msgstr "より良いオプションページ"
#: admin/views/settings-info.php:156 #: admin/views/settings-info.php:156
msgid "New functions for options page allow creation of both parent and child menu pages" msgid "New functions for options page allow creation of both parent and child menu pages"
msgstr "オプションページの新しい機能として、親と子の両方のメニューページを作ることができます" msgstr "オプションページの新しい機能として、親と子の両方のメニューページを作ることができます"
#: admin/views/settings-info.php:165 #: admin/views/settings-info.php:165
#, php-format #, php-format
@ -1176,30 +1176,32 @@ msgstr "インポート"
#: admin/views/update-network.php:8 admin/views/update.php:8 #: admin/views/update-network.php:8 admin/views/update.php:8
msgid "Advanced Custom Fields Database Upgrade" msgid "Advanced Custom Fields Database Upgrade"
msgstr "" msgstr "Advanced Custom Fields データベースのアップグレード"
#: admin/views/update-network.php:10 #: admin/views/update-network.php:10
msgid "" msgid ""
"The following sites require a DB upgrade. Check the ones you want to update and then click “Upgrade " "The following sites require a DB upgrade. Check the ones you want to update and then click “Upgrade "
"Database”." "Database”."
msgstr "" msgstr ""
"下記のサイトはデータベースのアップグレードが必要です。アップデートしたいサイトにチェックを入れ、「データ"
"ベースをアップグレード」をクリックしてください。"
#: admin/views/update-network.php:19 admin/views/update-network.php:27 #: admin/views/update-network.php:19 admin/views/update-network.php:27
msgid "Site" msgid "Site"
msgstr "" msgstr "サイト"
#: admin/views/update-network.php:47 #: admin/views/update-network.php:47
#, php-format #, php-format
msgid "Site requires database upgrade from %s to %s" msgid "Site requires database upgrade from %s to %s"
msgstr "" msgstr "%s から %s へのデータベースアップグレードが必要なサイト"
#: admin/views/update-network.php:49 #: admin/views/update-network.php:49
msgid "Site is up to date" msgid "Site is up to date"
msgstr "" msgstr "サイトは最新です"
#: admin/views/update-network.php:62 admin/views/update.php:16 #: admin/views/update-network.php:62 admin/views/update.php:16
msgid "Database Upgrade complete. <a href=\"%s\">Return to network dashboard</a>" msgid "Database Upgrade complete. <a href=\"%s\">Return to network dashboard</a>"
msgstr "" msgstr "データベースのアップグレードが完了しました。 <a href=\"%s\">ネットワークダッシュボードに戻る</a>"
#: admin/views/update-network.php:101 admin/views/update-notice.php:35 #: admin/views/update-network.php:101 admin/views/update-notice.php:35
msgid "" msgid ""
@ -1209,11 +1211,11 @@ msgstr "処理前にデータベースのバックアップを強く推奨しま
#: admin/views/update-network.php:157 #: admin/views/update-network.php:157
msgid "Upgrade complete" msgid "Upgrade complete"
msgstr "" msgstr "更新完了"
#: admin/views/update-network.php:161 #: admin/views/update-network.php:161
msgid "Upgrading data to" msgid "Upgrading data to"
msgstr "" msgstr "データをアップグレード"
#: admin/views/update-notice.php:23 #: admin/views/update-notice.php:23
msgid "Database Upgrade Required" msgid "Database Upgrade Required"
@ -1222,7 +1224,7 @@ msgstr "データベースのアップグレードが必要です"
#: admin/views/update-notice.php:25 #: admin/views/update-notice.php:25
#, php-format #, php-format
msgid "Thank you for updating to %s v%s!" msgid "Thank you for updating to %s v%s!"
msgstr "%s v%sへのアップグレードありがとうございます" msgstr "%s v%sへのアップグレードありがとうございます!"
#: admin/views/update-notice.php:25 #: admin/views/update-notice.php:25
msgid "" msgid ""
@ -1244,7 +1246,7 @@ msgstr "新着情報を見る"
#: admin/views/update.php:110 #: admin/views/update.php:110
msgid "No updates available." msgid "No updates available."
msgstr "" msgstr "利用可能なアップデートはありません。"
#: api/api-helpers.php:821 #: api/api-helpers.php:821
msgid "Thumbnail" msgid "Thumbnail"
@ -1352,16 +1354,16 @@ msgstr "検証に失敗"
#: core/input.php:133 #: core/input.php:133
msgid "1 field requires attention" msgid "1 field requires attention"
msgstr "" msgstr "注意が必要なフィールドが 1 個あります"
#: core/input.php:134 #: core/input.php:134
#, php-format #, php-format
msgid "%d fields require attention" msgid "%d fields require attention"
msgstr "" msgstr "注意が必要なフィールドが %d 個あります"
#: core/input.php:135 #: core/input.php:135
msgid "Restricted" msgid "Restricted"
msgstr "" msgstr "制限されています"
#: core/input.php:533 #: core/input.php:533
#, php-format #, php-format
@ -1382,11 +1384,11 @@ msgstr "選択肢"
#: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389 #: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389
msgid "Enter each choice on a new line." msgid "Enter each choice on a new line."
msgstr "選択肢を改行で区切って入力してください" msgstr "選択肢を改行で区切って入力してください"
#: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389 #: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389
msgid "For more control, you may specify both a value and label like this:" msgid "For more control, you may specify both a value and label like this:"
msgstr "下記のように記述すると、値とラベルの両方を制御することができます" msgstr "下記のように記述すると、値とラベルの両方を制御することができます:"
#: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389 #: fields/checkbox.php:209 fields/radio.php:194 fields/select.php:389
msgid "red : Red" msgid "red : Red"
@ -1412,11 +1414,11 @@ msgstr "水平"
#: fields/checkbox.php:240 #: fields/checkbox.php:240
msgid "Toggle" msgid "Toggle"
msgstr "" msgstr "トグル"
#: fields/checkbox.php:241 #: fields/checkbox.php:241
msgid "Prepend an extra checkbox to toggle all choices" msgid "Prepend an extra checkbox to toggle all choices"
msgstr "" msgstr "すべての選択肢をチェックするためのチェックボックスを先頭に追加する"
#: fields/color_picker.php:36 #: fields/color_picker.php:36
msgid "Color Picker" msgid "Color Picker"
@ -1837,7 +1839,7 @@ msgstr "関連"
#: fields/relationship.php:48 #: fields/relationship.php:48
msgid "Minimum values reached ( {min} values )" msgid "Minimum values reached ( {min} values )"
msgstr "" msgstr "最小値 ( {min} ) に達しました"
#: fields/relationship.php:49 #: fields/relationship.php:49
msgid "Maximum values reached ( {max} values )" msgid "Maximum values reached ( {max} values )"
@ -1877,11 +1879,11 @@ msgstr "要素"
#: fields/relationship.php:733 #: fields/relationship.php:733
msgid "Selected elements will be displayed in each result" msgid "Selected elements will be displayed in each result"
msgstr "選択した要素が表示されます" msgstr "選択した要素が表示されます"
#: fields/relationship.php:744 #: fields/relationship.php:744
msgid "Minimum posts" msgid "Minimum posts"
msgstr "" msgstr "最小投稿数"
#: fields/relationship.php:753 #: fields/relationship.php:753
msgid "Maximum posts" msgid "Maximum posts"
@ -1933,16 +1935,16 @@ msgstr "タブの配置"
#: fields/tab.php:167 #: fields/tab.php:167
msgid "End-point" msgid "End-point"
msgstr "" msgstr "エンドポイント"
#: fields/tab.php:168 #: fields/tab.php:168
msgid "Use this field as an end-point and start a new group of tabs" msgid "Use this field as an end-point and start a new group of tabs"
msgstr "" msgstr "このフィールドをエンドポイントとして使用し、新規のタブグループを開始する"
#: fields/taxonomy.php:565 #: fields/taxonomy.php:565
#, php-format #, php-format
msgid "Add new %s " msgid "Add new %s "
msgstr "" msgstr "新しい %s を追加"
#: fields/taxonomy.php:704 #: fields/taxonomy.php:704
msgid "None" msgid "None"
@ -1950,15 +1952,15 @@ msgstr "無"
#: fields/taxonomy.php:736 #: fields/taxonomy.php:736
msgid "Select the taxonomy to be displayed" msgid "Select the taxonomy to be displayed"
msgstr "" msgstr "表示されるタクソノミーを選択"
#: fields/taxonomy.php:745 #: fields/taxonomy.php:745
msgid "Appearance" msgid "Appearance"
msgstr "" msgstr "外観"
#: fields/taxonomy.php:746 #: fields/taxonomy.php:746
msgid "Select the appearance of this field" msgid "Select the appearance of this field"
msgstr "" msgstr "このフィールドの外観を選択"
#: fields/taxonomy.php:751 #: fields/taxonomy.php:751
msgid "Multiple Values" msgid "Multiple Values"
@ -1978,27 +1980,27 @@ msgstr "ラジオボタン"
#: fields/taxonomy.php:779 #: fields/taxonomy.php:779
msgid "Create Terms" msgid "Create Terms"
msgstr "" msgstr "タームの作成"
#: fields/taxonomy.php:780 #: fields/taxonomy.php:780
msgid "Allow new terms to be created whilst editing" msgid "Allow new terms to be created whilst editing"
msgstr "" msgstr "編集中の新規ターム作成を許可"
#: fields/taxonomy.php:793 #: fields/taxonomy.php:793
msgid "Save Terms" msgid "Save Terms"
msgstr "" msgstr "タームの保存"
#: fields/taxonomy.php:794 #: fields/taxonomy.php:794
msgid "Connect selected terms to the post" msgid "Connect selected terms to the post"
msgstr "" msgstr "選択されたタームを投稿に関連付ける"
#: fields/taxonomy.php:807 #: fields/taxonomy.php:807
msgid "Load Terms" msgid "Load Terms"
msgstr "" msgstr "タームの読み込み"
#: fields/taxonomy.php:808 #: fields/taxonomy.php:808
msgid "Load value from posts terms" msgid "Load value from posts terms"
msgstr "" msgstr "投稿に関連付けられたタームを読み込む"
#: fields/taxonomy.php:826 #: fields/taxonomy.php:826
msgid "Term Object" msgid "Term Object"
@ -2011,21 +2013,21 @@ msgstr "ターム ID"
#: fields/taxonomy.php:886 #: fields/taxonomy.php:886
#, php-format #, php-format
msgid "User unable to add new %s" msgid "User unable to add new %s"
msgstr "" msgstr "新規の %s を追加できないユーザーです"
#: fields/taxonomy.php:899 #: fields/taxonomy.php:899
#, php-format #, php-format
msgid "%s already exists" msgid "%s already exists"
msgstr "" msgstr "%s は既に存在しています"
#: fields/taxonomy.php:940 #: fields/taxonomy.php:940
#, php-format #, php-format
msgid "%s added" msgid "%s added"
msgstr "" msgstr "%s が追加されました"
#: fields/taxonomy.php:985 #: fields/taxonomy.php:985
msgid "Add" msgid "Add"
msgstr "" msgstr "追加"
#: fields/text.php:36 #: fields/text.php:36
msgid "Text" msgid "Text"
@ -2195,7 +2197,7 @@ msgid ""
"To unlock updates, please enter your license key below. If you don't have a licence key, please see" "To unlock updates, please enter your license key below. If you don't have a licence key, please see"
msgstr "" msgstr ""
"アップデートのロックを解除するには、以下にライセンスキーを入力してください。ライセンスキーを持っていない" "アップデートのロックを解除するには、以下にライセンスキーを入力してください。ライセンスキーを持っていない"
"場合は、こちらを参照してください" "場合は、こちらを参照してください"
#: pro/admin/views/settings-updates.php:24 #: pro/admin/views/settings-updates.php:24
msgid "details & pricing" msgid "details & pricing"
@ -2248,7 +2250,7 @@ msgid ""
"have a licence key, please see <a href=\"%s\">details & pricing</a>" "have a licence key, please see <a href=\"%s\">details & pricing</a>"
msgstr "" msgstr ""
"アップデートを有効にするには、<a href=\"%s\">アップデート</a>ページにライセンスキーを入力してください。" "アップデートを有効にするには、<a href=\"%s\">アップデート</a>ページにライセンスキーを入力してください。"
"ライセンスキーを持っていない場合は、こちらを<a href=\"%s\">詳細と価格</a>参照してください" "ライセンスキーを持っていない場合は、こちらを<a href=\"%s\">詳細と価格</a>参照してください"
#: pro/fields/flexible-content.php:36 #: pro/fields/flexible-content.php:36
msgid "Flexible Content" msgid "Flexible Content"
@ -2463,23 +2465,23 @@ msgstr "最大行数"
#. Plugin Name of the plugin/theme #. Plugin Name of the plugin/theme
msgid "Advanced Custom Fields Pro" msgid "Advanced Custom Fields Pro"
msgstr "" msgstr "Advanced Custom Fields Pro"
#. Plugin URI of the plugin/theme #. Plugin URI of the plugin/theme
msgid "http://www.advancedcustomfields.com/" msgid "http://www.advancedcustomfields.com/"
msgstr "" msgstr "http://www.advancedcustomfields.com/"
#. Description of the plugin/theme #. Description of the plugin/theme
msgid "Customise WordPress with powerful, professional and intuitive fields." msgid "Customise WordPress with powerful, professional and intuitive fields."
msgstr "" msgstr "強力でプロフェッショナル、そして直感的なフィールドで WordPress をカスタマイズ。"
#. Author of the plugin/theme #. Author of the plugin/theme
msgid "elliot condon" msgid "elliot condon"
msgstr "" msgstr "エリオット・コンドン"
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
msgid "http://www.elliotcondon.com/" msgid "http://www.elliotcondon.com/"
msgstr "" msgstr "http://www.elliotcondon.com/"
#~ msgid "Hide / Show All" #~ msgid "Hide / Show All"
#~ msgstr "全て 非表示 / 表示" #~ msgstr "全て 非表示 / 表示"

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -335,7 +335,7 @@ function acf_rendered_block( $attributes, $content = '', $is_preview = false, $p
} }
// Store in cache for preloading. // Store in cache for preloading.
acf_get_store( 'block-cache' )->set( $attributes['id'], $html ); acf_get_store( 'block-cache' )->set( $attributes['id'], '<div class="acf-block-preview">' . $html . '</div>' );
return $html; return $html;
} }

View File

@ -1023,21 +1023,17 @@ class acf_field_flexible_content extends acf_field {
} }
/* /**
* get_layout * This function will return a specific layout by name from a field
* *
* This function will return a specific layout by name from a field * @date 15/2/17
* * @since 5.5.8
* @type function *
* @date 15/2/17 * @param string $name
* @since 5.5.8 * @param array $field
* * @return array|false
* @param $name (string) */
* @param $field (array) function get_layout( $name, $field ) {
* @return (array)
*/
function get_layout( $name = '', $field ) {
// bail early if no layouts // bail early if no layouts
if( !isset($field['layouts']) ) return false; if( !isset($field['layouts']) ) return false;
@ -1058,23 +1054,19 @@ class acf_field_flexible_content extends acf_field {
} }
/* /**
* delete_row * This function will delete a value row
* *
* This function will delete a value row * @date 15/2/17
* * @since 5.5.8
* @type function *
* @date 15/2/17 * @param int $i
* @since 5.5.8 * @param array $field
* * @param mixed $post_id
* @param $i (int) * @return bool
* @param $field (array) */
* @param $post_id (mixed) function delete_row( $i, $field, $post_id ) {
* @return (boolean)
*/
function delete_row( $i = 0, $field, $post_id ) {
// vars // vars
$value = acf_get_metadata( $post_id, $field['name'] ); $value = acf_get_metadata( $post_id, $field['name'] );
@ -1108,24 +1100,21 @@ class acf_field_flexible_content extends acf_field {
return true; return true;
} }
/* /**
* update_row * This function will update a value row
* *
* This function will update a value row * @date 15/2/17
* * @since 5.5.8
* @type function *
* @date 15/2/17 * @param array $row
* @since 5.5.8 * @param int $i
* * @param array $field
* @param $i (int) * @param mixed $post_id
* @param $field (array) * @return bool
* @param $post_id (mixed) */
* @return (boolean) function update_row( $row, $i, $field, $post_id ) {
*/
function update_row( $row, $i = 0, $field, $post_id ) {
// bail early if no layout reference // bail early if no layout reference
if( !is_array($row) || !isset($row['acf_fc_layout']) ) return false; if( !is_array($row) || !isset($row['acf_fc_layout']) ) return false;

View File

@ -282,8 +282,6 @@ class acf_field_gallery extends acf_field {
} }
/** /**
* render_attachment
*
* Renders the sidebar HTML shown when selecting an attachmemnt. * Renders the sidebar HTML shown when selecting an attachmemnt.
* *
* @date 13/12/2013 * @date 13/12/2013
@ -293,8 +291,7 @@ class acf_field_gallery extends acf_field {
* @param array $field The field array. * @param array $field The field array.
* @return void * @return void
*/ */
function render_attachment( $id = 0, $field ) { function render_attachment( $id, $field ) {
// Load attachmenet data. // Load attachmenet data.
$attachment = wp_prepare_attachment_for_js( $id ); $attachment = wp_prepare_attachment_for_js( $id );
$compat = get_compat_media_markup( $id ); $compat = get_compat_media_markup( $id );

View File

@ -703,23 +703,19 @@ class acf_field_repeater extends acf_field {
} }
/* /**
* update_row * This function will update a value row.
* *
* This function will update a value row * @date 15/2/17
* * @since 5.5.8
* @type function *
* @date 15/2/17 * @param array $row
* @since 5.5.8 * @param int $i
* * @param array $field
* @param $i (int) * @param mixed $post_id
* @param $field (array) * @return boolean
* @param $post_id (mixed) */
* @return (boolean) function update_row( $row, $i, $field, $post_id ) {
*/
function update_row( $row, $i = 0, $field, $post_id ) {
// bail early if no layout reference // bail early if no layout reference
if( !is_array($row) ) return false; if( !is_array($row) ) return false;
@ -769,23 +765,19 @@ class acf_field_repeater extends acf_field {
} }
/* /**
* delete_row * This function will delete a value row.
* *
* This function will delete a value row * @date 15/2/17
* * @since 5.5.8
* @type function *
* @date 15/2/17 * @param int $i
* @since 5.5.8 * @param array $field
* * @param mixed $post_id
* @param $i (int) * @return boolean
* @param $field (array) */
* @param $post_id (mixed) function delete_row( $i, $field, $post_id ) {
* @return (boolean)
*/
function delete_row( $i = 0, $field, $post_id ) {
// bail early if no sub fields // bail early if no sub fields
if( empty($field['sub_fields']) ) return false; if( empty($field['sub_fields']) ) return false;

View File

@ -2,7 +2,7 @@
Contributors: elliotcondon Contributors: elliotcondon
Tags: acf, fields, custom fields, meta, repeater Tags: acf, fields, custom fields, meta, repeater
Requires at least: 4.7 Requires at least: 4.7
Tested up to: 5.5 Tested up to: 5.6
Requires PHP: 5.6 Requires PHP: 5.6
License: GPLv2 or later License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html License URI: https://www.gnu.org/licenses/gpl-2.0.html
@ -67,6 +67,19 @@ From your WordPress dashboard
== Changelog == == Changelog ==
= 5.9.4 =
*Release Date - 14 January 2021*
* Enhancement - Added PHP validation for the Email field (previously relied solely on browser validation).
* Fix - Added support for PHP 8.0 (fixed logged warnings).
* Fix - Added support for jQuery 3.5 (fixed logged warnings).
* Fix - Fixed bug causing WYSIWYG field to appear unresponsive within the Gutenberg editor.
* Fix - Fixed regression preventing "blog_%d" and "site_%d" as valid `$post_id` values for custom Taxonomy terms.
* Fix - Fixed bug causing Radio field label to select first choice.
* Fix - Fixed bug preventing preloading blocks that contain multiple parent DOM elements.
* i18n - Updated Japanese translation thanks to Ryo Takahashi.
* i18n - Updated Portuguese translation thanks to Pedro Mendonça.
= 5.9.3 = = 5.9.3 =
*Release Date - 3 November 2020* *Release Date - 3 November 2020*