Skip to content

Commit

Permalink
5.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcondon authored and remcotolsma committed Aug 14, 2018
1 parent 7eb289e commit a590a68
Show file tree
Hide file tree
Showing 36 changed files with 2,461 additions and 1,768 deletions.
12 changes: 8 additions & 4 deletions acf.php
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields PRO
Plugin URI: https://www.advancedcustomfields.com/
Description: Customise WordPress with powerful, professional and intuitive fields.
Version: 5.7.0
Version: 5.7.2
Author: Elliot Condon
Author URI: http://www.elliotcondon.com/
Copyright: Elliot Condon
Expand All @@ -18,7 +18,7 @@
class ACF {

/** @var string The plugin version number */
var $version = '5.7.0';
var $version = '5.7.2';

/** @var array The plugin settings array */
var $settings = array();
Expand Down Expand Up @@ -127,7 +127,7 @@ function initialize() {
acf_include('includes/api/api-field.php');
acf_include('includes/api/api-field-group.php');
acf_include('includes/api/api-template.php');

acf_include('includes/api/api-term.php');

// fields
acf_include('includes/fields.php');
Expand All @@ -141,7 +141,6 @@ function initialize() {

// core
acf_include('includes/assets.php');
acf_include('includes/ajax.php');
acf_include('includes/cache.php');
acf_include('includes/compatibility.php');
acf_include('includes/deprecated.php');
Expand All @@ -154,6 +153,11 @@ function initialize() {
acf_include('includes/updates.php');
acf_include('includes/validation.php');

// ajax
acf_include('includes/ajax/class-acf-ajax.php');
acf_include('includes/ajax/class-acf-ajax-user-setting.php');
acf_include('includes/ajax/class-acf-ajax-query.php');
acf_include('includes/ajax/class-acf-ajax-query-terms.php');

// forms
acf_include('includes/forms/form-attachment.php');
Expand Down
20 changes: 14 additions & 6 deletions assets/js/acf-field-group.js
Expand Up @@ -102,7 +102,6 @@

// initialize
this.$el = $('#acf-field-key-hide');
this.addEvents();

// render
this.render();
Expand Down Expand Up @@ -247,8 +246,16 @@
return $('#' + this.getInputId() + '-' + name);
},

$meta: function(){
return this.$('.meta:first');
},

$handle: function(){
return this.$('.handle:first');
},

$settings: function(){
return this.$('.acf-field-settings:first > .acf-field');
return this.$('.settings:first');
},

$setting: function( name ){
Expand Down Expand Up @@ -540,15 +547,16 @@
acf.doAction('submit_field_object', this);
},

onChange: function(){
//console.log('onChange');
onChange: function( e, $el ){

// save settings
this.save();

// action for 3rd party customization
acf.doAction('change_field_object', this);
},

onChanged: function( e, name, value ){
onChanged: function( e, $el, name, value ){

// ignore 'save'
if( name == 'save' ) {
Expand Down Expand Up @@ -1966,7 +1974,7 @@
$el.sortable({
handle: '.acf-sortable-handle',
connectWith: '.acf-field-list',
start: function(e, ui){
start: function( e, ui ){
var field = acf.getFieldObject( ui.item );
ui.placeholder.height( ui.item.height() );
acf.doAction('sortstart_field_object', field, $el);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/acf-field-group.min.js

Large diffs are not rendered by default.

0 comments on commit a590a68

Please sign in to comment.