Version Description
- [Fixed] Fix bug when appending taxonomy terms - http://support.advancedcustomfields.com/discussion/5522/append-taxonomies
- [Fixed] Fix embed shortcode for WYSIWYG field - http://support.advancedcustomfields.com/discussion/5503/embed-video-wysiwyg-field-doesn039t-work-since-update
- [Fixed] Fix issues with loading numbers - http://support.advancedcustomfields.com/discussion/5538/zero-first-number-problem-in-text-fields
- [Fixed] Fix bug with user field and format_value_for_api - http://support.advancedcustomfields.com/discussion/5542/user-field-weirdness-after-update
- [Fixed] Fix capitalization issue on field name - http://support.advancedcustomfields.com/discussion/5527/field-name-retains-capitalization-from-field-title
- [Fixed] Fix tabs not hiding from conditional logic - http://support.advancedcustomfields.com/discussion/5506/conditional-logic-not-working-with-tabs
- [Updated] Update dir / path to allow for SSL - http://support.advancedcustomfields.com/discussion/5518/in-admin-page-got-error-javascript-when-open-with-https
- [Updated] Updated relationship JS - http://support.advancedcustomfields.com/discussion/5550/relationship-field-search-box
Download this release
Release Info
Developer | elliotcondon |
Plugin | Advanced Custom Fields |
Version | 4.0.3 |
Comparing to | |
See all releases |
Code changes from version 4.0.2 to 4.0.3
- acf.php +5 -5
- core/controllers/export.php +1 -1
- readme.txt +10 -0
acf.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced Custom Fields
|
4 |
Plugin URI: http://www.advancedcustomfields.com/
|
5 |
Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
|
6 |
-
Version: 4.0.
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
@@ -66,7 +66,7 @@ class Acf
|
|
66 |
$this->settings = array(
|
67 |
'path' => apply_filters('acf/helpers/get_path', __FILE__),
|
68 |
'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
|
69 |
-
'version' => '4.0.
|
70 |
'upgrade_version' => '3.4.1',
|
71 |
);
|
72 |
|
@@ -137,14 +137,14 @@ class Acf
|
|
137 |
|
138 |
// if file is in plugins folder
|
139 |
$wp_plugin_dir = str_replace('\\' ,'/', WP_PLUGIN_DIR);
|
140 |
-
$dir = str_replace($wp_plugin_dir,
|
141 |
|
142 |
|
143 |
if( $count < 1 )
|
144 |
{
|
145 |
// if file is in wp-content folder
|
146 |
$wp_content_dir = str_replace('\\' ,'/', WP_CONTENT_DIR);
|
147 |
-
$dir = str_replace($wp_content_dir,
|
148 |
}
|
149 |
|
150 |
|
@@ -210,7 +210,7 @@ class Acf
|
|
210 |
foreach( $value as $k => $v )
|
211 |
{
|
212 |
// if $field was passed, never modify the value! NEVER!
|
213 |
-
if( $k
|
214 |
{
|
215 |
continue;
|
216 |
}
|
3 |
Plugin Name: Advanced Custom Fields
|
4 |
Plugin URI: http://www.advancedcustomfields.com/
|
5 |
Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
|
6 |
+
Version: 4.0.3
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
66 |
$this->settings = array(
|
67 |
'path' => apply_filters('acf/helpers/get_path', __FILE__),
|
68 |
'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
|
69 |
+
'version' => '4.0.3',
|
70 |
'upgrade_version' => '3.4.1',
|
71 |
);
|
72 |
|
137 |
|
138 |
// if file is in plugins folder
|
139 |
$wp_plugin_dir = str_replace('\\' ,'/', WP_PLUGIN_DIR);
|
140 |
+
$dir = str_replace($wp_plugin_dir, plugins_url(), $dir, $count);
|
141 |
|
142 |
|
143 |
if( $count < 1 )
|
144 |
{
|
145 |
// if file is in wp-content folder
|
146 |
$wp_content_dir = str_replace('\\' ,'/', WP_CONTENT_DIR);
|
147 |
+
$dir = str_replace($wp_content_dir, content_url(), $dir, $count);
|
148 |
}
|
149 |
|
150 |
|
210 |
foreach( $value as $k => $v )
|
211 |
{
|
212 |
// if $field was passed, never modify the value! NEVER!
|
213 |
+
if( $k === 'value' )
|
214 |
{
|
215 |
continue;
|
216 |
}
|
core/controllers/export.php
CHANGED
@@ -418,7 +418,7 @@ if(function_exists("register_field_group"))
|
|
418 |
$html = preg_replace('/([\t\r\n]+?)array/', 'array', $html);
|
419 |
|
420 |
// Remove number keys from array
|
421 |
-
$html = preg_replace('/[0-9] => array/', 'array', $html);
|
422 |
|
423 |
// add extra tab at start of each line
|
424 |
$html = str_replace("\n", "\n\t", $html);
|
418 |
$html = preg_replace('/([\t\r\n]+?)array/', 'array', $html);
|
419 |
|
420 |
// Remove number keys from array
|
421 |
+
$html = preg_replace('/[0-9]+ => array/', 'array', $html);
|
422 |
|
423 |
// add extra tab at start of each line
|
424 |
$html = str_replace("\n", "\n\t", $html);
|
readme.txt
CHANGED
@@ -101,6 +101,16 @@ http://support.advancedcustomfields.com/
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= 4.0.2 =
|
105 |
* [Added] Add auto video filter to WYSIWYG value - http://support.advancedcustomfields.com/discussion/5378/video-embed-in-wysiwyg-field
|
106 |
* [Fixed] Fix Repeater + WYSIWYG loosing p tags on drag/drop - http://support.advancedcustomfields.com/discussion/5476/acf-4-0-0-wysiwyg-p-tag-disappearing-after-drag-drop-save
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 4.0.3 =
|
105 |
+
* [Fixed] Fix bug when appending taxonomy terms - http://support.advancedcustomfields.com/discussion/5522/append-taxonomies
|
106 |
+
* [Fixed] Fix embed shortcode for WYSIWYG field - http://support.advancedcustomfields.com/discussion/5503/embed-video-wysiwyg-field-doesn039t-work-since-update
|
107 |
+
* [Fixed] Fix issues with loading numbers - http://support.advancedcustomfields.com/discussion/5538/zero-first-number-problem-in-text-fields
|
108 |
+
* [Fixed] Fix bug with user field and format_value_for_api - http://support.advancedcustomfields.com/discussion/5542/user-field-weirdness-after-update
|
109 |
+
* [Fixed] Fix capitalization issue on field name - http://support.advancedcustomfields.com/discussion/5527/field-name-retains-capitalization-from-field-title
|
110 |
+
* [Fixed] Fix tabs not hiding from conditional logic - http://support.advancedcustomfields.com/discussion/5506/conditional-logic-not-working-with-tabs
|
111 |
+
* [Updated] Update dir / path to allow for SSL - http://support.advancedcustomfields.com/discussion/5518/in-admin-page-got-error-javascript-when-open-with-https
|
112 |
+
* [Updated] Updated relationship JS - http://support.advancedcustomfields.com/discussion/5550/relationship-field-search-box
|
113 |
+
|
114 |
= 4.0.2 =
|
115 |
* [Added] Add auto video filter to WYSIWYG value - http://support.advancedcustomfields.com/discussion/5378/video-embed-in-wysiwyg-field
|
116 |
* [Fixed] Fix Repeater + WYSIWYG loosing p tags on drag/drop - http://support.advancedcustomfields.com/discussion/5476/acf-4-0-0-wysiwyg-p-tag-disappearing-after-drag-drop-save
|