Version Description
Download this release
Release Info
Developer | elliotcondon |
Plugin | Advanced Custom Fields |
Version | 3.1.3 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.1.3
- acf.php +3 -2
- core/options_page.php +6 -9
- css/input.css +0 -5
- readme.txt +4 -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.1.
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
@@ -45,7 +45,7 @@ class Acf
|
|
45 |
$this->dir = plugins_url('',__FILE__);
|
46 |
$this->siteurl = get_bloginfo('url');
|
47 |
$this->wpadminurl = admin_url();
|
48 |
-
$this->version = '3.1.
|
49 |
$this->upgrade_version = '3.0.0'; // this is the latest version which requires an upgrade
|
50 |
|
51 |
|
@@ -391,6 +391,7 @@ class Acf
|
|
391 |
echo '<link rel="stylesheet" type="text/css" href="'.$this->dir.'/css/global.css" />';
|
392 |
echo '<link rel="stylesheet" type="text/css" href="'.$this->dir.'/css/input.css" />';
|
393 |
echo '<script type="text/javascript" src="'.$this->dir.'/js/input.js" ></script>';
|
|
|
394 |
echo '<script type="text/javascript">acf.validation_message = "' . __("Validation Failed. One or more fields below are required.",'acf') . '";</script>';
|
395 |
|
396 |
// get acf's
|
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.1.3
|
7 |
Author: Elliot Condon
|
8 |
Author URI: http://www.elliotcondon.com/
|
9 |
License: GPL
|
45 |
$this->dir = plugins_url('',__FILE__);
|
46 |
$this->siteurl = get_bloginfo('url');
|
47 |
$this->wpadminurl = admin_url();
|
48 |
+
$this->version = '3.1.3';
|
49 |
$this->upgrade_version = '3.0.0'; // this is the latest version which requires an upgrade
|
50 |
|
51 |
|
391 |
echo '<link rel="stylesheet" type="text/css" href="'.$this->dir.'/css/global.css" />';
|
392 |
echo '<link rel="stylesheet" type="text/css" href="'.$this->dir.'/css/input.css" />';
|
393 |
echo '<script type="text/javascript" src="'.$this->dir.'/js/input.js" ></script>';
|
394 |
+
echo '<style type="text/css">.acf_postbox, .postbox[id*="acf_"] { display: none; }</style>';
|
395 |
echo '<script type="text/javascript">acf.validation_message = "' . __("Validation Failed. One or more fields below are required.",'acf') . '";</script>';
|
396 |
|
397 |
// get acf's
|
core/options_page.php
CHANGED
@@ -166,22 +166,19 @@ class Options_page
|
|
166 |
return false;
|
167 |
}
|
168 |
|
169 |
-
|
170 |
-
// create tyn mce instance for wysiwyg
|
171 |
-
//add_action('admin_head', 'wp_tiny_mce');
|
172 |
-
|
173 |
-
// add css + javascript
|
174 |
-
echo '<link rel="stylesheet" type="text/css" href="'.$this->parent->dir.'/css/global.css" />';
|
175 |
-
echo '<link rel="stylesheet" type="text/css" href="'.$this->parent->dir.'/css/input.css" />';
|
176 |
-
//echo '<script type="text/javascript" src="'.$this->parent->dir.'/js/input.js" ></script>';
|
177 |
-
|
178 |
// fields admin_head
|
179 |
foreach($this->parent->fields as $field)
|
180 |
{
|
181 |
$this->parent->fields[$field->name]->admin_head();
|
182 |
}
|
183 |
|
|
|
|
|
|
|
|
|
|
|
184 |
|
|
|
185 |
// get acf's
|
186 |
$acfs = $this->parent->get_field_groups();
|
187 |
if($acfs)
|
166 |
return false;
|
167 |
}
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
// fields admin_head
|
170 |
foreach($this->parent->fields as $field)
|
171 |
{
|
172 |
$this->parent->fields[$field->name]->admin_head();
|
173 |
}
|
174 |
|
175 |
+
// add css + javascript
|
176 |
+
echo '<link rel="stylesheet" type="text/css" href="'.$this->parent->dir.'/css/global.css" />';
|
177 |
+
echo '<link rel="stylesheet" type="text/css" href="'.$this->parent->dir.'/css/input.css" />';
|
178 |
+
echo '<script type="text/javascript" src="'.$this->parent->dir.'/js/input.js" ></script>';
|
179 |
+
echo '<script type="text/javascript">acf.validation_message = "' . __("Validation Failed. One or more fields below are required.",'acf') . '";</script>';
|
180 |
|
181 |
+
|
182 |
// get acf's
|
183 |
$acfs = $this->parent->get_field_groups();
|
184 |
if($acfs)
|
css/input.css
CHANGED
@@ -1,8 +1,3 @@
|
|
1 |
-
.acf_postbox,
|
2 |
-
.postbox[id*="acf_"] {
|
3 |
-
display: none;
|
4 |
-
}
|
5 |
-
|
6 |
/*---------------------------------------------------------------------------------------------
|
7 |
Post Box
|
8 |
---------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
1 |
/*---------------------------------------------------------------------------------------------
|
2 |
Post Box
|
3 |
---------------------------------------------------------------------------------------------*/
|
readme.txt
CHANGED
@@ -87,6 +87,10 @@ http://www.advancedcustomfields.com/support/
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
90 |
= 3.1.2 =
|
91 |
* New Feature: Required field validation. Note: Repeater / Flexible content fields can be required but their sub fields can not.
|
92 |
* Field update: Select field: API now returns false when "null" is selected
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 3.1.2 =
|
91 |
+
* Bug Fix: Options page fields were rendered invisible in v3.1.2 (now fixed)
|
92 |
+
* Updated POT file with new texts
|
93 |
+
|
94 |
= 3.1.2 =
|
95 |
* New Feature: Required field validation. Note: Repeater / Flexible content fields can be required but their sub fields can not.
|
96 |
* Field update: Select field: API now returns false when "null" is selected
|