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 URI: https://www.advancedcustomfields.com
Description: Customize WordPress with powerful, professional and intuitive fields.
Version: 5.9.3
Version: 5.9.4
Author: Elliot Condon
Author URI: https://www.advancedcustomfields.com
Text Domain: acf
@ -17,7 +17,7 @@ if( ! class_exists('ACF') ) :
class ACF {
/** @var string The plugin version number. */
var $version = '5.9.3';
var $version = '5.9.4';
/** @var array The plugin 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');
// increase suffix "1"
if( $.isNumeric(end) ) {
if( acf.isNumeric(end) ) {
var i = (end*1) + 1;
label = label.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'),
fieldTypes: [ 'text', 'textarea', 'number', 'range', 'email', 'url', 'password' ],
match: function( rule, field ){
if( $.isNumeric(rule.value) ) {
if( acf.isNumeric(rule.value) ) {
return isEqualToNumber( rule.value, field.val() );
} else {
return isEqualTo( rule.value, field.val() );
@ -5565,8 +5565,8 @@
// append
choices.push({
id: $.trim( line[0] ),
text: $.trim( line[1] )
id: line[0].trim(),
text: line[1].trim()
});
});
@ -6066,7 +6066,7 @@
var getPostID = function() {
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.
*
@ -2542,7 +2556,11 @@
});
$(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(){

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.
*
* @date 28/09/13
* @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.
* @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.
$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;
case 'blog_%d':
case 'site_%d':
$type = 'blog';
// Allow backwards compatibility for custom taxonomies.
$type = taxonomy_exists($type) ? 'term' : 'blog';
$id = absint( $id );
break;
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/form_data', array($this, 'form_data'));
add_action('acf/input/admin_footer', array($this, 'admin_footer'));
add_action('acf/input/admin_footer_js', array($this, 'admin_footer_js'));
// 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
*

View File

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

View File

@ -150,6 +150,26 @@ class acf_field_email extends acf_field {
}
/**
* 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 ) {
// vars
$i = 0;
$e = '';
$ul = array(
'class' => 'acf-radio-list',
@ -157,14 +156,10 @@ class acf_field_radio extends acf_field {
$class = '';
// increase counter
$i++;
// vars
$atts = array(
'type' => 'radio',
'id' => $field['id'],
'id' => sanitize_title( $field['id'] . '-' . $value ),
'name' => $field['name'],
'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
$e .= '<li><label' . $class . '><input ' . acf_esc_attr( $atts ) . '/>' . $label . '</label></li>';

View File

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

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
*
* @type function
* @date 15/2/17
* @since 5.5.8
*
* @param $name (string)
* @param $field (array)
* @return (array)
*/
function get_layout( $name = '', $field ) {
/**
* This function will return a specific layout by name from a field
*
* @date 15/2/17
* @since 5.5.8
*
* @param string $name
* @param array $field
* @return array|false
*/
function get_layout( $name, $field ) {
// bail early if no layouts
if( !isset($field['layouts']) ) return false;
@ -1058,22 +1054,18 @@ class acf_field_flexible_content extends acf_field {
}
/*
* delete_row
*
* This function will delete a value row
*
* @type function
* @date 15/2/17
* @since 5.5.8
*
* @param $i (int)
* @param $field (array)
* @param $post_id (mixed)
* @return (boolean)
*/
function delete_row( $i = 0, $field, $post_id ) {
/**
* This function will delete a value row
*
* @date 15/2/17
* @since 5.5.8
*
* @param int $i
* @param array $field
* @param mixed $post_id
* @return bool
*/
function delete_row( $i, $field, $post_id ) {
// vars
$value = acf_get_metadata( $post_id, $field['name'] );
@ -1110,22 +1102,19 @@ class acf_field_flexible_content extends acf_field {
}
/*
* update_row
*
* This function will update a value row
*
* @type function
* @date 15/2/17
* @since 5.5.8
*
* @param $i (int)
* @param $field (array)
* @param $post_id (mixed)
* @return (boolean)
*/
function update_row( $row, $i = 0, $field, $post_id ) {
/**
* This function will update a value row
*
* @date 15/2/17
* @since 5.5.8
*
* @param array $row
* @param int $i
* @param array $field
* @param mixed $post_id
* @return bool
*/
function update_row( $row, $i, $field, $post_id ) {
// bail early if no layout reference
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.
*
* @date 13/12/2013
@ -293,8 +291,7 @@ class acf_field_gallery extends acf_field {
* @param array $field The field array.
* @return void
*/
function render_attachment( $id = 0, $field ) {
function render_attachment( $id, $field ) {
// Load attachmenet data.
$attachment = wp_prepare_attachment_for_js( $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
*
* @type function
* @date 15/2/17
* @since 5.5.8
*
* @param $i (int)
* @param $field (array)
* @param $post_id (mixed)
* @return (boolean)
*/
function update_row( $row, $i = 0, $field, $post_id ) {
/**
* This function will update a value row.
*
* @date 15/2/17
* @since 5.5.8
*
* @param array $row
* @param int $i
* @param array $field
* @param mixed $post_id
* @return boolean
*/
function update_row( $row, $i, $field, $post_id ) {
// bail early if no layout reference
if( !is_array($row) ) return false;
@ -769,22 +765,18 @@ class acf_field_repeater extends acf_field {
}
/*
* delete_row
*
* This function will delete a value row
*
* @type function
* @date 15/2/17
* @since 5.5.8
*
* @param $i (int)
* @param $field (array)
* @param $post_id (mixed)
* @return (boolean)
*/
function delete_row( $i = 0, $field, $post_id ) {
/**
* This function will delete a value row.
*
* @date 15/2/17
* @since 5.5.8
*
* @param int $i
* @param array $field
* @param mixed $post_id
* @return boolean
*/
function delete_row( $i, $field, $post_id ) {
// bail early if no sub fields
if( empty($field['sub_fields']) ) return false;

View File

@ -2,7 +2,7 @@
Contributors: elliotcondon
Tags: acf, fields, custom fields, meta, repeater
Requires at least: 4.7
Tested up to: 5.5
Tested up to: 5.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@ -67,6 +67,19 @@ From your WordPress dashboard
== 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 =
*Release Date - 3 November 2020*