Version Description
- [Fixed] Remove translation from validation class - http://www.advancedcustomfields.com/support/discussion/2110/custom-validation-broken-in-other-languages
- [Fixed] Test fix WYSIWYG insert media issues
- [Added] Add Excerpt to the field group "show on page" options
Download this release
Release Info
Developer | elliotcondon |
Plugin | Advanced Custom Fields |
Version | 3.2.4 |
Comparing to | |
See all releases |
Code changes from version 3.2.3 to 3.2.4
- acf.php +8 -4
- core/admin/meta_box_options.php +1 -0
- core/fields/wysiwyg.php +22 -1
- readme.txt +5 -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 and more!
|
6 |
-
Version: 3.2.
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
@@ -44,7 +44,7 @@ class Acf
|
|
44 |
$this->dir = plugins_url('',__FILE__);
|
45 |
$this->siteurl = get_bloginfo('url');
|
46 |
$this->wpadminurl = admin_url();
|
47 |
-
$this->version = '3.2.
|
48 |
$this->upgrade_version = '3.1.8'; // this is the latest version which requires an upgrade
|
49 |
$this->cache = array(); // basic array cache to hold data throughout the page load
|
50 |
|
@@ -922,7 +922,7 @@ class Acf
|
|
922 |
// If this is a new acf, there will be no custom keys!
|
923 |
if(!get_post_custom_keys($post_id))
|
924 |
{
|
925 |
-
$options['show_on_page'] = array('the_content', 'discussion', 'custom_fields', 'comments', 'slug', 'author');
|
926 |
}
|
927 |
|
928 |
// return
|
@@ -1258,6 +1258,10 @@ class Acf
|
|
1258 |
{
|
1259 |
$html .= '#postdivrich {display: none;} ';
|
1260 |
}
|
|
|
|
|
|
|
|
|
1261 |
if(!in_array('custom_fields',$acf['options']['show_on_page']))
|
1262 |
{
|
1263 |
$html .= '#postcustom, #screen-meta label[for=postcustom-hide] { display: none; } ';
|
@@ -2081,7 +2085,7 @@ class Acf
|
|
2081 |
|
2082 |
if($field['required'] == "1")
|
2083 |
{
|
2084 |
-
$required_class = '
|
2085 |
$required_label = ' <span class="required">*</span>';
|
2086 |
}
|
2087 |
|
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 and more!
|
6 |
+
Version: 3.2.4
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
44 |
$this->dir = plugins_url('',__FILE__);
|
45 |
$this->siteurl = get_bloginfo('url');
|
46 |
$this->wpadminurl = admin_url();
|
47 |
+
$this->version = '3.2.4';
|
48 |
$this->upgrade_version = '3.1.8'; // this is the latest version which requires an upgrade
|
49 |
$this->cache = array(); // basic array cache to hold data throughout the page load
|
50 |
|
922 |
// If this is a new acf, there will be no custom keys!
|
923 |
if(!get_post_custom_keys($post_id))
|
924 |
{
|
925 |
+
$options['show_on_page'] = array('the_content', 'excerpt', 'discussion', 'custom_fields', 'comments', 'slug', 'author');
|
926 |
}
|
927 |
|
928 |
// return
|
1258 |
{
|
1259 |
$html .= '#postdivrich {display: none;} ';
|
1260 |
}
|
1261 |
+
if(!in_array('excerpt',$acf['options']['show_on_page']))
|
1262 |
+
{
|
1263 |
+
$html .= '#postexcerpt, #screen-meta label[for=postexcerpt-hide] {display: none;} ';
|
1264 |
+
}
|
1265 |
if(!in_array('custom_fields',$acf['options']['show_on_page']))
|
1266 |
{
|
1267 |
$html .= '#postcustom, #screen-meta label[for=postcustom-hide] { display: none; } ';
|
2085 |
|
2086 |
if($field['required'] == "1")
|
2087 |
{
|
2088 |
+
$required_class = ' required';
|
2089 |
$required_label = ' <span class="required">*</span>';
|
2090 |
}
|
2091 |
|
core/admin/meta_box_options.php
CHANGED
@@ -80,6 +80,7 @@ $options = $this->get_acf_options($post->ID);
|
|
80 |
'value' => $options['show_on_page'],
|
81 |
'choices' => array(
|
82 |
'the_content' => __("Content Editor",'acf'),
|
|
|
83 |
'custom_fields' => __("Custom Fields",'acf'),
|
84 |
'discussion' => __("Discussion",'acf'),
|
85 |
'comments' => __("Comments",'acf'),
|
80 |
'value' => $options['show_on_page'],
|
81 |
'choices' => array(
|
82 |
'the_content' => __("Content Editor",'acf'),
|
83 |
+
'excerpt' => __("Excerpt",'acf'),
|
84 |
'custom_fields' => __("Custom Fields",'acf'),
|
85 |
'discussion' => __("Discussion",'acf'),
|
86 |
'comments' => __("Comments",'acf'),
|
core/fields/wysiwyg.php
CHANGED
@@ -35,10 +35,31 @@ class acf_Wysiwyg extends acf_Field
|
|
35 |
*
|
36 |
*-------------------------------------------------------------------------------------*/
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
function admin_print_styles()
|
39 |
{
|
40 |
wp_enqueue_style(array(
|
41 |
-
'editor-buttons',
|
|
|
42 |
));
|
43 |
}
|
44 |
|
35 |
*
|
36 |
*-------------------------------------------------------------------------------------*/
|
37 |
|
38 |
+
function admin_print_scripts()
|
39 |
+
{
|
40 |
+
wp_enqueue_script(array(
|
41 |
+
|
42 |
+
'jquery',
|
43 |
+
'jquery-ui-core',
|
44 |
+
'jquery-ui-tabs',
|
45 |
+
|
46 |
+
// wysiwyg
|
47 |
+
'editor',
|
48 |
+
'thickbox',
|
49 |
+
'media-upload',
|
50 |
+
'word-count',
|
51 |
+
'post',
|
52 |
+
'editor-functions',
|
53 |
+
'tiny_mce',
|
54 |
+
|
55 |
+
));
|
56 |
+
}
|
57 |
+
|
58 |
function admin_print_styles()
|
59 |
{
|
60 |
wp_enqueue_style(array(
|
61 |
+
'editor-buttons',
|
62 |
+
'thickbox',
|
63 |
));
|
64 |
}
|
65 |
|
readme.txt
CHANGED
@@ -85,6 +85,11 @@ http://www.advancedcustomfields.com/support/
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
|
|
88 |
= 3.2.3 =
|
89 |
* [Fixed] Include Wysiwyg scripts / styles through the editor class
|
90 |
* [Fixed] Wysiwyg in repeater not working
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 3.2.4 =
|
89 |
+
* [Fixed] Remove translation from validation class - http://www.advancedcustomfields.com/support/discussion/2110/custom-validation-broken-in-other-languages
|
90 |
+
* [Fixed] Test fix WYSIWYG insert media issues
|
91 |
+
* [Added] Add Excerpt to the field group "show on page" options
|
92 |
+
|
93 |
= 3.2.3 =
|
94 |
* [Fixed] Include Wysiwyg scripts / styles through the editor class
|
95 |
* [Fixed] Wysiwyg in repeater not working
|