Version Description
- Fixed a Fatal Error when registering the text field
Download this release
Release Info
Developer | jchristopher |
Plugin | Attachments |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.1.1
- README.md +3 -0
- classes/class.attachments.php +1 -1
- classes/class.field.php +2 -2
- classes/fields/class.field.text.php +1 -1
- classes/fields/class.field.textarea.php +1 -1
- classes/fields/class.field.wysiwyg.php +1 -1
- index.php +1 -1
- readme.txt +4 -1
README.md
CHANGED
@@ -250,6 +250,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
250 |
|
251 |
<dl>
|
252 |
|
|
|
|
|
|
|
253 |
<dt>3.1</dt>
|
254 |
<dd>New field: wysiwyg</dd>
|
255 |
<dd>Fields will now properly respect line breaks</dd>
|
250 |
|
251 |
<dl>
|
252 |
|
253 |
+
<dt>3.1.1</dt>
|
254 |
+
<dd>Fixed a Fatal Error when registering the text field</dd>
|
255 |
+
|
256 |
<dt>3.1</dt>
|
257 |
<dd>New field: wysiwyg</dd>
|
258 |
<dd>Fields will now properly respect line breaks</dd>
|
classes/class.attachments.php
CHANGED
@@ -56,7 +56,7 @@ if ( !class_exists( 'Attachments' ) ) :
|
|
56 |
global $_wp_additional_image_sizes;
|
57 |
|
58 |
// establish our environment variables
|
59 |
-
$this->version = '3.1';
|
60 |
$this->url = ATTACHMENTS_URL;
|
61 |
$this->dir = ATTACHMENTS_DIR;
|
62 |
|
56 |
global $_wp_additional_image_sizes;
|
57 |
|
58 |
// establish our environment variables
|
59 |
+
$this->version = '3.1.1';
|
60 |
$this->url = ATTACHMENTS_URL;
|
61 |
$this->dir = ATTACHMENTS_DIR;
|
62 |
|
classes/class.field.php
CHANGED
@@ -14,7 +14,7 @@ if ( !class_exists( 'Attachments_Field' ) ) :
|
|
14 |
{
|
15 |
public function html( $field );
|
16 |
public function format_value_for_input( $value, $field = null );
|
17 |
-
public function assets(
|
18 |
}
|
19 |
|
20 |
class Attachments_Field implements Attachments_Field_Template
|
@@ -75,7 +75,7 @@ if ( !class_exists( 'Attachments_Field' ) ) :
|
|
75 |
return $value;
|
76 |
}
|
77 |
|
78 |
-
public function assets(
|
79 |
{
|
80 |
return;
|
81 |
}
|
14 |
{
|
15 |
public function html( $field );
|
16 |
public function format_value_for_input( $value, $field = null );
|
17 |
+
public function assets();
|
18 |
}
|
19 |
|
20 |
class Attachments_Field implements Attachments_Field_Template
|
75 |
return $value;
|
76 |
}
|
77 |
|
78 |
+
public function assets()
|
79 |
{
|
80 |
return;
|
81 |
}
|
classes/fields/class.field.text.php
CHANGED
@@ -27,7 +27,7 @@ class Attachments_Field_Text extends Attachments_Field implements Attachments_Fi
|
|
27 |
return htmlspecialchars( $value, ENT_QUOTES );
|
28 |
}
|
29 |
|
30 |
-
public function assets(
|
31 |
{
|
32 |
return;
|
33 |
}
|
27 |
return htmlspecialchars( $value, ENT_QUOTES );
|
28 |
}
|
29 |
|
30 |
+
public function assets()
|
31 |
{
|
32 |
return;
|
33 |
}
|
classes/fields/class.field.textarea.php
CHANGED
@@ -27,7 +27,7 @@ class Attachments_Field_Textarea extends Attachments_Field implements Attachment
|
|
27 |
return $value;
|
28 |
}
|
29 |
|
30 |
-
public function assets(
|
31 |
{
|
32 |
return;
|
33 |
}
|
27 |
return $value;
|
28 |
}
|
29 |
|
30 |
+
public function assets()
|
31 |
{
|
32 |
return;
|
33 |
}
|
classes/fields/class.field.wysiwyg.php
CHANGED
@@ -28,7 +28,7 @@ class Attachments_Field_WYSIWYG extends Attachments_Field implements Attachments
|
|
28 |
<?php
|
29 |
}
|
30 |
|
31 |
-
function assets(
|
32 |
{
|
33 |
if( 'true' == get_user_meta( get_current_user_id(), 'rich_editing', true ) ) :
|
34 |
?>
|
28 |
<?php
|
29 |
}
|
30 |
|
31 |
+
function assets()
|
32 |
{
|
33 |
if( 'true' == get_user_meta( get_current_user_id(), 'rich_editing', true ) ) :
|
34 |
?>
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
-
* Version: 3.1
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
+
* Version: 3.1.1
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
|
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,6 +95,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
98 |
= 3.1 =
|
99 |
* New field: wysiwyg
|
100 |
* Fields will now properly respect line breaks
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 3.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 3.1.1 =
|
99 |
+
* Fixed a Fatal Error when registering the text field
|
100 |
+
|
101 |
= 3.1 =
|
102 |
* New field: wysiwyg
|
103 |
* Fields will now properly respect line breaks
|