Merge branch 'release/5.4.5'

This commit is contained in:
I 2016-09-15 13:57:05 +02:00
commit 9e0470fe52
12 changed files with 905 additions and 662 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: Customise WordPress with powerful, professional and intuitive fields Description: Customise WordPress with powerful, professional and intuitive fields
Version: 5.4.4 Version: 5.4.5
Author: Elliot Condon Author: Elliot Condon
Author URI: http://www.elliotcondon.com/ Author URI: http://www.elliotcondon.com/
Copyright: Elliot Condon Copyright: Elliot Condon
@ -58,7 +58,7 @@ class acf {
// basic // basic
'name' => __('Advanced Custom Fields', 'acf'), 'name' => __('Advanced Custom Fields', 'acf'),
'version' => '5.4.4', 'version' => '5.4.5',
// urls // urls
'basename' => plugin_basename( __FILE__ ), 'basename' => plugin_basename( __FILE__ ),

View File

@ -713,6 +713,22 @@ class acf_admin_field_groups {
$('#the-list tr.no-items td').attr('colspan', 4); $('#the-list tr.no-items td').attr('colspan', 4);
// search
$('.subsubsub').append(' | <li><a href="#" class="acf-toggle-search"><?php _e('Search', 'acf'); ?></a></li>');
// events
$(document).on('click', '.acf-toggle-search', function( e ){
// prevent default
e.preventDefault();
// toggle
$('.search-box').slideToggle();
});
})(jQuery); })(jQuery);
</script> </script>
<?php <?php

View File

@ -1778,7 +1778,7 @@ function acf_prepare_fields_for_import( $fields = false ) {
// ensure $field is an array of fields // ensure $field is an array of fields
// this allows for multiepl sub fields to be returned // this allows for multiepl sub fields to be returned
if( !isset($field[0]) ) { if( acf_is_associative_array($field) ) {
$field = array( $field ); $field = array( $field );

View File

@ -2980,6 +2980,17 @@ function acf_get_valid_post_id( $post_id = 0 ) {
} }
} elseif( isset($_GET['p']) && isset($_GET['preview']) ) {
$revision = acf_get_post_latest_revision( $_GET['p'] );
// save
if( $revision && $revision->post_parent == $post_id) {
$post_id = (int) $revision->ID;
}
} }
@ -4757,8 +4768,78 @@ function acf_send_ajax_results( $response ) {
// return // return
wp_send_json( $response ); wp_send_json( $response );
} }
/*
* acf_is_sequential_array
*
* This function will return true if the array contains only numeric keys
*
* @source http://stackoverflow.com/questions/173400/how-to-check-if-php-array-is-associative-or-sequential
* @type function
* @date 9/09/2016
* @since 5.4.0
*
* @param $array (array)
* @return (boolean)
*/
function acf_is_sequential_array( $array ) {
// bail ealry if not array
if( !is_array($array) ) return false;
// loop
foreach( $array as $key => $value ) {
// bail ealry if is string
if( is_string($key) ) return false;
}
// return
return true;
}
/*
* acf_is_associative_array
*
* This function will return true if the array contains one or more string keys
*
* @source http://stackoverflow.com/questions/173400/how-to-check-if-php-array-is-associative-or-sequential
* @type function
* @date 9/09/2016
* @since 5.4.0
*
* @param $array (array)
* @return (boolean)
*/
function acf_is_associative_array( $array ) {
// bail ealry if not array
if( !is_array($array) ) return false;
// loop
foreach( $array as $key => $value ) {
// bail ealry if is string
if( is_string($key) ) return true;
}
// return
return false;
}
add_filter("acf/settings/slug", '_acf_settings_slug'); add_filter("acf/settings/slug", '_acf_settings_slug');

File diff suppressed because it is too large Load Diff

View File

@ -740,9 +740,11 @@ a.acf-icon.-cancel.grey:hover {
margin-left: 7px; margin-left: 7px;
font-style: italic; font-style: italic;
} }
/* WPML fix */ /* subsubsub */
#acf-field-group-wrap .subsubsub { #acf-field-group-wrap .subsubsub {
/* WPML */
margin-bottom: 3px; margin-bottom: 3px;
/* search */
} }
#acf-field-group-wrap .subsubsub ul { #acf-field-group-wrap .subsubsub ul {
margin: 0; margin: 0;
@ -750,6 +752,9 @@ a.acf-icon.-cancel.grey:hover {
#acf-field-group-wrap .subsubsub + .subsubsub { #acf-field-group-wrap .subsubsub + .subsubsub {
margin-top: 0; margin-top: 0;
} }
#acf-field-group-wrap .subsubsub a:focus {
box-shadow: none;
}
/* columns (replicate post edit layout) */ /* columns (replicate post edit layout) */
.acf-columns-2 { .acf-columns-2 {
margin-right: 300px; margin-right: 300px;
@ -779,6 +784,12 @@ html[dir="rtl"] .acf-columns-2 .acf-column-2 {
margin-right: 0; margin-right: 0;
margin-left: -300px; margin-left: -300px;
} }
/* search */
#acf-field-group-wrap .search-box:after {
display: block;
content: "";
height: 5px;
}
.acf-clear { .acf-clear {
clear: both; clear: both;
} }

View File

@ -1903,7 +1903,7 @@ var acf;
decode: function( string ){ decode: function( string ){
return $('<div/>').html( string ).text(); return $('<textarea/>').html( string ).text();
}, },

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,9 @@
<?php <?php
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if( ! class_exists('acf_revisions') ) :
class acf_revisions { class acf_revisions {
/* /*
@ -29,35 +33,6 @@ class acf_revisions {
} }
/*
* get_post_latest_revision
*
* This function will return the latest revision for a given post
*
* @type function
* @date 25/06/2016
* @since 5.3.8
*
* @param $post_id (int)
* @return $post_id (int)
*/
function get_post_latest_revision( $post_id ) {
// vars
$revisions = wp_get_post_revisions( $post_id );
// shift off and return first revision (will return null if no revisions)
$revision = array_shift($revisions);
// return
return $revision;
}
/* /*
* save_post * save_post
* *
@ -77,8 +52,12 @@ class acf_revisions {
if( !post_type_supports($post->post_type, 'revisions') ) return $post_id; if( !post_type_supports($post->post_type, 'revisions') ) return $post_id;
// bail early if not published (no need to save revision)
if( $post->post_status != 'publish' ) return $post_id;
// get latest revision // get latest revision
$revision = $this->get_post_latest_revision( $post_id ); $revision = acf_get_post_latest_revision( $post_id );
// save // save
@ -366,7 +345,7 @@ class acf_revisions {
// Make sure the latest revision is also updated to match the new $post data // Make sure the latest revision is also updated to match the new $post data
// get latest revision // get latest revision
$revision = $this->get_post_latest_revision( $post_id ); $revision = acf_get_post_latest_revision( $post_id );
// save // save
@ -382,6 +361,39 @@ class acf_revisions {
} }
new acf_revisions(); // initialize
acf()->revisions = new acf_revisions();
endif; // class_exists check
/*
* acf_get_post_latest_revision
*
* This function will return the latest revision for a given post
*
* @type function
* @date 25/06/2016
* @since 5.3.8
*
* @param $post_id (int)
* @return $post_id (int)
*/
function acf_get_post_latest_revision( $post_id ) {
// vars
$revisions = wp_get_post_revisions( $post_id );
// shift off and return first revision (will return null if no revisions)
$revision = array_shift($revisions);
// return
return $revision;
}
?> ?>

View File

@ -30,6 +30,10 @@ class acf_validation {
add_action('wp_ajax_acf/validate_save_post', array($this, 'ajax_validate_save_post')); add_action('wp_ajax_acf/validate_save_post', array($this, 'ajax_validate_save_post'));
add_action('wp_ajax_nopriv_acf/validate_save_post', array($this, 'ajax_validate_save_post')); add_action('wp_ajax_nopriv_acf/validate_save_post', array($this, 'ajax_validate_save_post'));
// filters
add_filter('acf/validate_save_post', array($this, 'acf_validate_save_post'), 5);
} }
@ -250,6 +254,45 @@ class acf_validation {
} }
/*
* acf_validate_save_post
*
* This function will loop over $_POST data and validate
*
* @type action 'acf/validate_save_post' 5
* @date 7/09/2016
* @since 5.4.0
*
* @param n/a
* @return n/a
*/
function acf_validate_save_post() {
// bail early if no $_POST
if( empty($_POST['acf']) ) return;
// loop
foreach( $_POST['acf'] as $field_key => $value ) {
// get field
$field = acf_get_field( $field_key );
$input = 'acf[' . $field_key . ']';
// bail early if not found
if( !$field ) continue;
// validate
acf_validate_value( $value, $field, $input );
}
}
/* /*
* validate_save_post * validate_save_post
* *
@ -265,30 +308,7 @@ class acf_validation {
function validate_save_post( $show_errors = false ) { function validate_save_post( $show_errors = false ) {
// validate fields // action
if( !empty($_POST['acf']) ) {
// loop
foreach( $_POST['acf'] as $field_key => $value ) {
// get field
$field = acf_get_field( $field_key );
$input = 'acf[' . $field_key . ']';
// bail early if not found
if( !$field ) continue;
// validate
acf_validate_value( $value, $field, $input );
}
}
// action for 3rd party customization
do_action('acf/validate_save_post'); do_action('acf/validate_save_post');

View File

@ -3,7 +3,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Advanced Custom Fields\n" "Project-Id-Version: Advanced Custom Fields\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"POT-Creation-Date: 2016-07-28 10:51+1000\n" "POT-Creation-Date: 2016-09-13 12:28+1000\n"
"PO-Revision-Date: 2015-06-11 13:00+1000\n" "PO-Revision-Date: 2015-06-11 13:00+1000\n"
"Last-Translator: Elliot Condon <e@elliotcondon.com>\n" "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
"Language-Team: Elliot Condon <e@elliotcondon.com>\n" "Language-Team: Elliot Condon <e@elliotcondon.com>\n"
@ -26,91 +26,91 @@ msgstr ""
msgid "Advanced Custom Fields" msgid "Advanced Custom Fields"
msgstr "" msgstr ""
#: acf.php:271 admin/admin.php:61 #: acf.php:273 admin/admin.php:61
msgid "Field Groups" msgid "Field Groups"
msgstr "" msgstr ""
#: acf.php:272 #: acf.php:274
msgid "Field Group" msgid "Field Group"
msgstr "" msgstr ""
#: acf.php:273 acf.php:305 admin/admin.php:62 #: acf.php:275 acf.php:307 admin/admin.php:62
#: pro/fields/flexible-content.php:500 #: pro/fields/flexible-content.php:500
msgid "Add New" msgid "Add New"
msgstr "" msgstr ""
#: acf.php:274 #: acf.php:276
msgid "Add New Field Group" msgid "Add New Field Group"
msgstr "" msgstr ""
#: acf.php:275 #: acf.php:277
msgid "Edit Field Group" msgid "Edit Field Group"
msgstr "" msgstr ""
#: acf.php:276 #: acf.php:278
msgid "New Field Group" msgid "New Field Group"
msgstr "" msgstr ""
#: acf.php:277 #: acf.php:279
msgid "View Field Group" msgid "View Field Group"
msgstr "" msgstr ""
#: acf.php:278 #: acf.php:280
msgid "Search Field Groups" msgid "Search Field Groups"
msgstr "" msgstr ""
#: acf.php:279 #: acf.php:281
msgid "No Field Groups found" msgid "No Field Groups found"
msgstr "" msgstr ""
#: acf.php:280 #: acf.php:282
msgid "No Field Groups found in Trash" msgid "No Field Groups found in Trash"
msgstr "" msgstr ""
#: acf.php:303 admin/field-group.php:182 admin/field-group.php:280 #: acf.php:305 admin/field-group.php:182 admin/field-group.php:280
#: admin/field-groups.php:528 pro/fields/clone.php:662 #: admin/field-groups.php:528 pro/fields/clone.php:684
msgid "Fields" msgid "Fields"
msgstr "" msgstr ""
#: acf.php:304 #: acf.php:306
msgid "Field" msgid "Field"
msgstr "" msgstr ""
#: acf.php:306 #: acf.php:308
msgid "Add New Field" msgid "Add New Field"
msgstr "" msgstr ""
#: acf.php:307 #: acf.php:309
msgid "Edit Field" msgid "Edit Field"
msgstr "" msgstr ""
#: acf.php:308 admin/views/field-group-fields.php:54 #: acf.php:310 admin/views/field-group-fields.php:54
#: admin/views/settings-info.php:111 #: admin/views/settings-info.php:111
msgid "New Field" msgid "New Field"
msgstr "" msgstr ""
#: acf.php:309 #: acf.php:311
msgid "View Field" msgid "View Field"
msgstr "" msgstr ""
#: acf.php:310 #: acf.php:312
msgid "Search Fields" msgid "Search Fields"
msgstr "" msgstr ""
#: acf.php:311 #: acf.php:313
msgid "No Fields found" msgid "No Fields found"
msgstr "" msgstr ""
#: acf.php:312 #: acf.php:314
msgid "No Fields found in Trash" msgid "No Fields found in Trash"
msgstr "" msgstr ""
#: acf.php:351 admin/field-group.php:395 admin/field-groups.php:585 #: acf.php:353 admin/field-group.php:395 admin/field-groups.php:585
#: admin/views/field-group-options.php:13 #: admin/views/field-group-options.php:13
msgid "Disabled" msgid "Disabled"
msgstr "" msgstr ""
#: acf.php:356 #: acf.php:358
#, 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>"
@ -181,7 +181,7 @@ msgstr ""
#: admin/views/field-group-field-conditional-logic.php:62 #: admin/views/field-group-field-conditional-logic.php:62
#: admin/views/field-group-field-conditional-logic.php:162 #: admin/views/field-group-field-conditional-logic.php:162
#: admin/views/field-group-locations.php:59 #: admin/views/field-group-locations.php:59
#: admin/views/field-group-locations.php:135 api/api-helpers.php:3952 #: admin/views/field-group-locations.php:135 api/api-helpers.php:3973
msgid "or" msgid "or"
msgstr "" msgstr ""
@ -221,79 +221,79 @@ msgstr ""
msgid "Active" msgid "Active"
msgstr "" msgstr ""
#: admin/field-group.php:842 #: admin/field-group.php:846
msgid "Front Page" msgid "Front Page"
msgstr "" msgstr ""
#: admin/field-group.php:843 #: admin/field-group.php:847
msgid "Posts Page" msgid "Posts Page"
msgstr "" msgstr ""
#: admin/field-group.php:844 #: admin/field-group.php:848
msgid "Top Level Page (no parent)" msgid "Top Level Page (no parent)"
msgstr "" msgstr ""
#: admin/field-group.php:845 #: admin/field-group.php:849
msgid "Parent Page (has children)" msgid "Parent Page (has children)"
msgstr "" msgstr ""
#: admin/field-group.php:846 #: admin/field-group.php:850
msgid "Child Page (has parent)" msgid "Child Page (has parent)"
msgstr "" msgstr ""
#: admin/field-group.php:862 #: admin/field-group.php:866
msgid "Default Template" msgid "Default Template"
msgstr "" msgstr ""
#: admin/field-group.php:885 #: admin/field-group.php:889
msgid "Logged in" msgid "Logged in"
msgstr "" msgstr ""
#: admin/field-group.php:886 #: admin/field-group.php:890
msgid "Viewing front end" msgid "Viewing front end"
msgstr "" msgstr ""
#: admin/field-group.php:887 #: admin/field-group.php:891
msgid "Viewing back end" msgid "Viewing back end"
msgstr "" msgstr ""
#: admin/field-group.php:906 #: admin/field-group.php:910
msgid "Super Admin" msgid "Super Admin"
msgstr "" msgstr ""
#: admin/field-group.php:917 admin/field-group.php:925 #: admin/field-group.php:921 admin/field-group.php:929
#: admin/field-group.php:939 admin/field-group.php:946 #: admin/field-group.php:943 admin/field-group.php:950
#: admin/field-group.php:963 admin/field-group.php:980 fields/file.php:241 #: admin/field-group.php:967 admin/field-group.php:984 fields/file.php:241
#: fields/image.php:237 pro/fields/gallery.php:676 #: fields/image.php:237 pro/fields/gallery.php:676
msgid "All" msgid "All"
msgstr "" msgstr ""
#: admin/field-group.php:926 #: admin/field-group.php:930
msgid "Add / Edit" msgid "Add / Edit"
msgstr "" msgstr ""
#: admin/field-group.php:927 #: admin/field-group.php:931
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: admin/field-group.php:1167 #: admin/field-group.php:1171
msgid "Move Complete." msgid "Move Complete."
msgstr "" msgstr ""
#: admin/field-group.php:1168 #: admin/field-group.php:1172
#, php-format #, php-format
msgid "The %s field can now be found in the %s field group" msgid "The %s field can now be found in the %s field group"
msgstr "" msgstr ""
#: admin/field-group.php:1170 #: admin/field-group.php:1174
msgid "Close Window" msgid "Close Window"
msgstr "" msgstr ""
#: admin/field-group.php:1205 #: admin/field-group.php:1209
msgid "Please select the destination for this field" msgid "Please select the destination for this field"
msgstr "" msgstr ""
#: admin/field-group.php:1212 #: admin/field-group.php:1216
msgid "Move Field" msgid "Move Field"
msgstr "" msgstr ""
@ -332,8 +332,8 @@ msgstr[1] ""
msgid "Sync available" msgid "Sync available"
msgstr "" msgstr ""
#: admin/field-groups.php:525 api/api-template.php:1077 #: admin/field-groups.php:525 api/api-template.php:1041
#: api/api-template.php:1290 pro/fields/gallery.php:370 #: pro/fields/gallery.php:370
msgid "Title" msgid "Title"
msgstr "" msgstr ""
@ -411,16 +411,21 @@ msgstr ""
msgid "Duplicate" msgid "Duplicate"
msgstr "" msgstr ""
#: admin/field-groups.php:751 #: admin/field-groups.php:717 fields/google-map.php:133
#: fields/relationship.php:742
msgid "Search"
msgstr ""
#: admin/field-groups.php:767
#, php-format #, php-format
msgid "Select %s" msgid "Select %s"
msgstr "" msgstr ""
#: admin/field-groups.php:759 #: admin/field-groups.php:775
msgid "Synchronise field group" msgid "Synchronise field group"
msgstr "" msgstr ""
#: admin/field-groups.php:759 admin/field-groups.php:776 #: admin/field-groups.php:775 admin/field-groups.php:792
msgid "Sync" msgid "Sync"
msgstr "" msgstr ""
@ -504,9 +509,9 @@ msgstr ""
#: fields/select.php:483 fields/select.php:497 fields/select.php:511 #: fields/select.php:483 fields/select.php:497 fields/select.php:511
#: fields/tab.php:130 fields/taxonomy.php:785 fields/taxonomy.php:799 #: fields/tab.php:130 fields/taxonomy.php:785 fields/taxonomy.php:799
#: fields/taxonomy.php:813 fields/taxonomy.php:827 fields/user.php:399 #: fields/taxonomy.php:813 fields/taxonomy.php:827 fields/user.php:399
#: fields/user.php:413 fields/wysiwyg.php:418 #: fields/user.php:413 fields/wysiwyg.php:422
#: pro/admin/views/settings-updates.php:93 pro/fields/clone.php:716 #: pro/admin/views/settings-updates.php:93 pro/fields/clone.php:738
#: pro/fields/clone.php:734 #: pro/fields/clone.php:756
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -518,9 +523,9 @@ msgstr ""
#: fields/select.php:484 fields/select.php:498 fields/select.php:512 #: fields/select.php:484 fields/select.php:498 fields/select.php:512
#: fields/tab.php:131 fields/taxonomy.php:700 fields/taxonomy.php:786 #: fields/tab.php:131 fields/taxonomy.php:700 fields/taxonomy.php:786
#: fields/taxonomy.php:800 fields/taxonomy.php:814 fields/taxonomy.php:828 #: fields/taxonomy.php:800 fields/taxonomy.php:814 fields/taxonomy.php:828
#: fields/user.php:400 fields/user.php:414 fields/wysiwyg.php:419 #: fields/user.php:400 fields/user.php:414 fields/wysiwyg.php:423
#: pro/admin/views/settings-updates.php:103 pro/fields/clone.php:717 #: pro/admin/views/settings-updates.php:103 pro/fields/clone.php:739
#: pro/fields/clone.php:735 #: pro/fields/clone.php:757
msgid "No" msgid "No"
msgstr "" msgstr ""
@ -549,7 +554,7 @@ msgid "Add rule group"
msgstr "" msgstr ""
#: admin/views/field-group-field.php:50 pro/fields/flexible-content.php:346 #: admin/views/field-group-field.php:50 pro/fields/flexible-content.php:346
#: pro/fields/repeater.php:302 #: pro/fields/repeater.php:311
msgid "Drag to reorder" msgid "Drag to reorder"
msgstr "" msgstr ""
@ -1277,87 +1282,87 @@ msgstr ""
msgid "See what's new" msgid "See what's new"
msgstr "" msgstr ""
#: api/api-helpers.php:944 #: api/api-helpers.php:950
msgid "Thumbnail" msgid "Thumbnail"
msgstr "" msgstr ""
#: api/api-helpers.php:945 #: api/api-helpers.php:951
msgid "Medium" msgid "Medium"
msgstr "" msgstr ""
#: api/api-helpers.php:946 #: api/api-helpers.php:952
msgid "Large" msgid "Large"
msgstr "" msgstr ""
#: api/api-helpers.php:995 #: api/api-helpers.php:1001
msgid "Full Size" msgid "Full Size"
msgstr "" msgstr ""
#: api/api-helpers.php:1207 api/api-helpers.php:1770 pro/fields/clone.php:849 #: api/api-helpers.php:1213 api/api-helpers.php:1776 pro/fields/clone.php:871
msgid "(no title)" msgid "(no title)"
msgstr "" msgstr ""
#: api/api-helpers.php:1807 fields/page_link.php:284 #: api/api-helpers.php:1813 fields/page_link.php:284
#: fields/post_object.php:283 fields/taxonomy.php:989 #: fields/post_object.php:283 fields/taxonomy.php:989
msgid "Parent" msgid "Parent"
msgstr "" msgstr ""
#: api/api-helpers.php:3873 #: api/api-helpers.php:3894
#, php-format #, php-format
msgid "Image width must be at least %dpx." msgid "Image width must be at least %dpx."
msgstr "" msgstr ""
#: api/api-helpers.php:3878 #: api/api-helpers.php:3899
#, php-format #, php-format
msgid "Image width must not exceed %dpx." msgid "Image width must not exceed %dpx."
msgstr "" msgstr ""
#: api/api-helpers.php:3894 #: api/api-helpers.php:3915
#, php-format #, php-format
msgid "Image height must be at least %dpx." msgid "Image height must be at least %dpx."
msgstr "" msgstr ""
#: api/api-helpers.php:3899 #: api/api-helpers.php:3920
#, php-format #, php-format
msgid "Image height must not exceed %dpx." msgid "Image height must not exceed %dpx."
msgstr "" msgstr ""
#: api/api-helpers.php:3917 #: api/api-helpers.php:3938
#, php-format #, php-format
msgid "File size must be at least %s." msgid "File size must be at least %s."
msgstr "" msgstr ""
#: api/api-helpers.php:3922 #: api/api-helpers.php:3943
#, php-format #, php-format
msgid "File size must must not exceed %s." msgid "File size must must not exceed %s."
msgstr "" msgstr ""
#: api/api-helpers.php:3956 #: api/api-helpers.php:3977
#, php-format #, php-format
msgid "File type must be %s." msgid "File type must be %s."
msgstr "" msgstr ""
#: api/api-template.php:1092 #: api/api-template.php:1050 core/field.php:133
msgid "Content"
msgstr ""
#: api/api-template.php:1058
msgid "Validate Email"
msgstr ""
#: api/api-template.php:1108
msgid "Spam Detected" msgid "Spam Detected"
msgstr "" msgstr ""
#: api/api-template.php:1235 pro/api/api-options-page.php:50 #: api/api-template.php:1311 pro/api/api-options-page.php:50
#: pro/fields/gallery.php:588 #: pro/fields/gallery.php:588
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: api/api-template.php:1236 #: api/api-template.php:1312
msgid "Post updated" msgid "Post updated"
msgstr "" msgstr ""
#: api/api-template.php:1304 core/field.php:133
msgid "Content"
msgstr ""
#: api/api-template.php:1369
msgid "Validate Email"
msgstr ""
#: core/field.php:132 #: core/field.php:132
msgid "Basic" msgid "Basic"
msgstr "" msgstr ""
@ -1375,8 +1380,8 @@ msgid "jQuery"
msgstr "" msgstr ""
#: core/field.php:137 fields/checkbox.php:224 fields/radio.php:293 #: core/field.php:137 fields/checkbox.php:224 fields/radio.php:293
#: pro/fields/clone.php:692 pro/fields/flexible-content.php:495 #: pro/fields/clone.php:714 pro/fields/flexible-content.php:495
#: pro/fields/flexible-content.php:544 pro/fields/repeater.php:459 #: pro/fields/flexible-content.php:544 pro/fields/repeater.php:468
msgid "Layout" msgid "Layout"
msgstr "" msgstr ""
@ -1392,7 +1397,7 @@ msgstr ""
msgid "Validation successful" msgid "Validation successful"
msgstr "" msgstr ""
#: core/input.php:261 core/validation.php:306 forms/widget.php:234 #: core/input.php:261 core/validation.php:326 forms/widget.php:234
msgid "Validation failed" msgid "Validation failed"
msgstr "" msgstr ""
@ -1429,7 +1434,7 @@ msgstr ""
msgid "Uploaded to this post" msgid "Uploaded to this post"
msgstr "" msgstr ""
#: core/validation.php:207 #: core/validation.php:211
#, php-format #, php-format
msgid "%s value is required" msgid "%s value is required"
msgstr "" msgstr ""
@ -1458,10 +1463,10 @@ msgstr ""
msgid "red : Red" msgid "red : Red"
msgstr "" msgstr ""
#: fields/checkbox.php:215 fields/color_picker.php:147 fields/email.php:124 #: fields/checkbox.php:215 fields/color_picker.php:147 fields/email.php:133
#: fields/number.php:150 fields/radio.php:284 fields/select.php:455 #: fields/number.php:145 fields/radio.php:284 fields/select.php:455
#: fields/text.php:148 fields/textarea.php:145 fields/true_false.php:115 #: fields/text.php:142 fields/textarea.php:139 fields/true_false.php:115
#: fields/url.php:117 fields/wysiwyg.php:379 #: fields/url.php:114 fields/wysiwyg.php:383
msgid "Default Value" msgid "Default Value"
msgstr "" msgstr ""
@ -1660,39 +1665,39 @@ msgstr ""
msgid "Email" msgid "Email"
msgstr "" msgstr ""
#: fields/email.php:125 fields/number.php:151 fields/radio.php:285 #: fields/email.php:134 fields/number.php:146 fields/radio.php:285
#: fields/text.php:149 fields/textarea.php:146 fields/url.php:118 #: fields/text.php:143 fields/textarea.php:140 fields/url.php:115
#: fields/wysiwyg.php:380 #: fields/wysiwyg.php:384
msgid "Appears when creating a new post" msgid "Appears when creating a new post"
msgstr "" msgstr ""
#: fields/email.php:133 fields/number.php:159 fields/password.php:137 #: fields/email.php:142 fields/number.php:154 fields/password.php:134
#: fields/text.php:157 fields/textarea.php:154 fields/url.php:126 #: fields/text.php:151 fields/textarea.php:148 fields/url.php:123
msgid "Placeholder Text" msgid "Placeholder Text"
msgstr "" msgstr ""
#: fields/email.php:134 fields/number.php:160 fields/password.php:138 #: fields/email.php:143 fields/number.php:155 fields/password.php:135
#: fields/text.php:158 fields/textarea.php:155 fields/url.php:127 #: fields/text.php:152 fields/textarea.php:149 fields/url.php:124
msgid "Appears within the input" msgid "Appears within the input"
msgstr "" msgstr ""
#: fields/email.php:142 fields/number.php:168 fields/password.php:146 #: fields/email.php:151 fields/number.php:163 fields/password.php:143
#: fields/text.php:166 #: fields/text.php:160
msgid "Prepend" msgid "Prepend"
msgstr "" msgstr ""
#: fields/email.php:143 fields/number.php:169 fields/password.php:147 #: fields/email.php:152 fields/number.php:164 fields/password.php:144
#: fields/text.php:167 #: fields/text.php:161
msgid "Appears before the input" msgid "Appears before the input"
msgstr "" msgstr ""
#: fields/email.php:151 fields/number.php:177 fields/password.php:155 #: fields/email.php:160 fields/number.php:172 fields/password.php:152
#: fields/text.php:175 #: fields/text.php:169
msgid "Append" msgid "Append"
msgstr "" msgstr ""
#: fields/email.php:152 fields/number.php:178 fields/password.php:156 #: fields/email.php:161 fields/number.php:173 fields/password.php:153
#: fields/text.php:176 #: fields/text.php:170
msgid "Appears after the input" msgid "Appears after the input"
msgstr "" msgstr ""
@ -1778,10 +1783,6 @@ msgstr ""
msgid "Sorry, this browser does not support geolocation" msgid "Sorry, this browser does not support geolocation"
msgstr "" msgstr ""
#: fields/google-map.php:133 fields/relationship.php:742
msgid "Search"
msgstr ""
#: fields/google-map.php:134 #: fields/google-map.php:134
msgid "Clear location" msgid "Clear location"
msgstr "" msgstr ""
@ -1885,23 +1886,23 @@ msgstr ""
msgid "Message" msgid "Message"
msgstr "" msgstr ""
#: fields/message.php:125 fields/textarea.php:182 #: fields/message.php:125 fields/textarea.php:176
msgid "New Lines" msgid "New Lines"
msgstr "" msgstr ""
#: fields/message.php:126 fields/textarea.php:183 #: fields/message.php:126 fields/textarea.php:177
msgid "Controls how new lines are rendered" msgid "Controls how new lines are rendered"
msgstr "" msgstr ""
#: fields/message.php:130 fields/textarea.php:187 #: fields/message.php:130 fields/textarea.php:181
msgid "Automatically add paragraphs" msgid "Automatically add paragraphs"
msgstr "" msgstr ""
#: fields/message.php:131 fields/textarea.php:188 #: fields/message.php:131 fields/textarea.php:182
msgid "Automatically add &lt;br&gt;" msgid "Automatically add &lt;br&gt;"
msgstr "" msgstr ""
#: fields/message.php:132 fields/textarea.php:189 #: fields/message.php:132 fields/textarea.php:183
msgid "No Formatting" msgid "No Formatting"
msgstr "" msgstr ""
@ -1917,28 +1918,28 @@ msgstr ""
msgid "Number" msgid "Number"
msgstr "" msgstr ""
#: fields/number.php:186 #: fields/number.php:181
msgid "Minimum Value" msgid "Minimum Value"
msgstr "" msgstr ""
#: fields/number.php:195 #: fields/number.php:190
msgid "Maximum Value" msgid "Maximum Value"
msgstr "" msgstr ""
#: fields/number.php:204 #: fields/number.php:199
msgid "Step Size" msgid "Step Size"
msgstr "" msgstr ""
#: fields/number.php:242 #: fields/number.php:237
msgid "Value must be a number" msgid "Value must be a number"
msgstr "" msgstr ""
#: fields/number.php:260 #: fields/number.php:255
#, php-format #, php-format
msgid "Value must be equal to or higher than %d" msgid "Value must be equal to or higher than %d"
msgstr "" msgstr ""
#: fields/number.php:268 #: fields/number.php:263
#, php-format #, php-format
msgid "Value must be equal to or lower than %d" msgid "Value must be equal to or lower than %d"
msgstr "" msgstr ""
@ -2292,11 +2293,11 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: fields/text.php:184 fields/textarea.php:163 #: fields/text.php:178 fields/textarea.php:157
msgid "Character Limit" msgid "Character Limit"
msgstr "" msgstr ""
#: fields/text.php:185 fields/textarea.php:164 #: fields/text.php:179 fields/textarea.php:158
msgid "Leave blank for no limit" msgid "Leave blank for no limit"
msgstr "" msgstr ""
@ -2304,11 +2305,11 @@ msgstr ""
msgid "Text Area" msgid "Text Area"
msgstr "" msgstr ""
#: fields/textarea.php:172 #: fields/textarea.php:166
msgid "Rows" msgid "Rows"
msgstr "" msgstr ""
#: fields/textarea.php:173 #: fields/textarea.php:167
msgid "Sets the textarea height" msgid "Sets the textarea height"
msgstr "" msgstr ""
@ -2328,7 +2329,7 @@ msgstr ""
msgid "Url" msgid "Url"
msgstr "" msgstr ""
#: fields/url.php:168 #: fields/url.php:165
msgid "Value must be a valid URL" msgid "Value must be a valid URL"
msgstr "" msgstr ""
@ -2344,36 +2345,36 @@ msgstr ""
msgid "Wysiwyg Editor" msgid "Wysiwyg Editor"
msgstr "" msgstr ""
#: fields/wysiwyg.php:331 #: fields/wysiwyg.php:335
msgid "Visual" msgid "Visual"
msgstr "" msgstr ""
#: fields/wysiwyg.php:332 #: fields/wysiwyg.php:336
msgctxt "Name for the Text editor tab (formerly HTML)" msgctxt "Name for the Text editor tab (formerly HTML)"
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: fields/wysiwyg.php:388 #: fields/wysiwyg.php:392
msgid "Tabs" msgid "Tabs"
msgstr "" msgstr ""
#: fields/wysiwyg.php:393 #: fields/wysiwyg.php:397
msgid "Visual & Text" msgid "Visual & Text"
msgstr "" msgstr ""
#: fields/wysiwyg.php:394 #: fields/wysiwyg.php:398
msgid "Visual Only" msgid "Visual Only"
msgstr "" msgstr ""
#: fields/wysiwyg.php:395 #: fields/wysiwyg.php:399
msgid "Text Only" msgid "Text Only"
msgstr "" msgstr ""
#: fields/wysiwyg.php:402 #: fields/wysiwyg.php:406
msgid "Toolbar" msgid "Toolbar"
msgstr "" msgstr ""
#: fields/wysiwyg.php:412 #: fields/wysiwyg.php:416
msgid "Show Media Upload Buttons?" msgid "Show Media Upload Buttons?"
msgstr "" msgstr ""
@ -2498,64 +2499,64 @@ msgctxt "noun"
msgid "Clone" msgid "Clone"
msgstr "" msgstr ""
#: pro/fields/clone.php:663 #: pro/fields/clone.php:685
msgid "Select one or more fields you wish to clone" msgid "Select one or more fields you wish to clone"
msgstr "" msgstr ""
#: pro/fields/clone.php:678 #: pro/fields/clone.php:700
msgid "Display" msgid "Display"
msgstr "" msgstr ""
#: pro/fields/clone.php:679 #: pro/fields/clone.php:701
msgid "Specify the style used to render the clone field" msgid "Specify the style used to render the clone field"
msgstr "" msgstr ""
#: pro/fields/clone.php:684 #: pro/fields/clone.php:706
msgid "Group (displays selected fields in a group within this field)" msgid "Group (displays selected fields in a group within this field)"
msgstr "" msgstr ""
#: pro/fields/clone.php:685 #: pro/fields/clone.php:707
msgid "Seamless (replaces this field with selected fields)" msgid "Seamless (replaces this field with selected fields)"
msgstr "" msgstr ""
#: pro/fields/clone.php:693 #: pro/fields/clone.php:715
msgid "Specify the style used to render the selected fields" msgid "Specify the style used to render the selected fields"
msgstr "" msgstr ""
#: pro/fields/clone.php:698 pro/fields/flexible-content.php:555 #: pro/fields/clone.php:720 pro/fields/flexible-content.php:555
#: pro/fields/repeater.php:467 #: pro/fields/repeater.php:476
msgid "Block" msgid "Block"
msgstr "" msgstr ""
#: pro/fields/clone.php:699 pro/fields/flexible-content.php:554 #: pro/fields/clone.php:721 pro/fields/flexible-content.php:554
#: pro/fields/repeater.php:466 #: pro/fields/repeater.php:475
msgid "Table" msgid "Table"
msgstr "" msgstr ""
#: pro/fields/clone.php:700 pro/fields/flexible-content.php:556 #: pro/fields/clone.php:722 pro/fields/flexible-content.php:556
#: pro/fields/repeater.php:468 #: pro/fields/repeater.php:477
msgid "Row" msgid "Row"
msgstr "" msgstr ""
#: pro/fields/clone.php:706 #: pro/fields/clone.php:728
#, php-format #, php-format
msgid "Labels will be displayed as %s" msgid "Labels will be displayed as %s"
msgstr "" msgstr ""
#: pro/fields/clone.php:709 #: pro/fields/clone.php:731
msgid "Prefix Field Labels" msgid "Prefix Field Labels"
msgstr "" msgstr ""
#: pro/fields/clone.php:724 #: pro/fields/clone.php:746
#, php-format #, php-format
msgid "Values will be saved as %s" msgid "Values will be saved as %s"
msgstr "" msgstr ""
#: pro/fields/clone.php:727 #: pro/fields/clone.php:749
msgid "Prefix Field Names" msgid "Prefix Field Names"
msgstr "" msgstr ""
#: pro/fields/clone.php:883 #: pro/fields/clone.php:905
#, php-format #, php-format
msgid "All fields from %s field group" msgid "All fields from %s field group"
msgstr "" msgstr ""
@ -2617,7 +2618,7 @@ msgstr ""
msgid "Remove layout" msgid "Remove layout"
msgstr "" msgstr ""
#: pro/fields/flexible-content.php:356 pro/fields/repeater.php:304 #: pro/fields/flexible-content.php:356 pro/fields/repeater.php:313
msgid "Click to toggle" msgid "Click to toggle"
msgstr "" msgstr ""
@ -2649,7 +2650,7 @@ msgstr ""
msgid "Max" msgid "Max"
msgstr "" msgstr ""
#: pro/fields/flexible-content.php:612 pro/fields/repeater.php:475 #: pro/fields/flexible-content.php:612 pro/fields/repeater.php:484
msgid "Button Label" msgid "Button Label"
msgstr "" msgstr ""
@ -2749,31 +2750,31 @@ msgstr ""
msgid "Maximum rows reached ({max} rows)" msgid "Maximum rows reached ({max} rows)"
msgstr "" msgstr ""
#: pro/fields/repeater.php:349 #: pro/fields/repeater.php:358
msgid "Add row" msgid "Add row"
msgstr "" msgstr ""
#: pro/fields/repeater.php:350 #: pro/fields/repeater.php:359
msgid "Remove row" msgid "Remove row"
msgstr "" msgstr ""
#: pro/fields/repeater.php:398 #: pro/fields/repeater.php:407
msgid "Sub Fields" msgid "Sub Fields"
msgstr "" msgstr ""
#: pro/fields/repeater.php:428 #: pro/fields/repeater.php:437
msgid "Collapsed" msgid "Collapsed"
msgstr "" msgstr ""
#: pro/fields/repeater.php:429 #: pro/fields/repeater.php:438
msgid "Select a sub field to show when row is collapsed" msgid "Select a sub field to show when row is collapsed"
msgstr "" msgstr ""
#: pro/fields/repeater.php:439 #: pro/fields/repeater.php:448
msgid "Minimum Rows" msgid "Minimum Rows"
msgstr "" msgstr ""
#: pro/fields/repeater.php:449 #: pro/fields/repeater.php:458
msgid "Maximum Rows" msgid "Maximum Rows"
msgstr "" msgstr ""

View File

@ -106,6 +106,15 @@ http://support.advancedcustomfields.com/
== Changelog == == Changelog ==
= 5.4.6-RC1 =
* Flexible content field: Fixed bug where radio input values were lost when adding/duplicating a layout
= 5.4.5 =
* API: Fixed bug in `acf_form()` where AJAX validation ignored 'post_title'
* API: Improved `update_field()` when saving a new value (when reference value does not yet exist)
* Core: Added search input & toggle to admin field groups list
* Core: Fixed bug where preview values did not load for a draft post
= 5.4.4 = = 5.4.4 =
* WYSIWYG field: Fixed JS error when 'Disable the visual editor when writing' is checked * WYSIWYG field: Fixed JS error when 'Disable the visual editor when writing' is checked