Version Description
= 3.0 = Now piggybacking the awesome Media workflow introduced in WordPress 3.5
Download this release
Release Info
Developer | jchristopher |
Plugin | Attachments |
Version | 3.4.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.4.2 to 3.4.2.1
- README.md +6 -3
- classes/class.attachments.php +3 -6
- index.php +1 -1
- readme.txt +1 -1
README.md
CHANGED
@@ -474,10 +474,13 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
474 |
|
475 |
<dl>
|
476 |
|
|
|
|
|
|
|
477 |
<dt>3.4.2</dt>
|
478 |
-
<dd>Fixed an issue where the
|
479 |
-
<dd>Search now respects custom
|
480 |
-
<dd>You can now pass in a
|
481 |
|
482 |
<dt>3.4.1</dt>
|
483 |
<dd>Class abstraction and cleanup</dd>
|
474 |
|
475 |
<dl>
|
476 |
|
477 |
+
<dt>3.4.2.1</dt>
|
478 |
+
<dd>Fixed a regression that prevented the <code>type</code> method from returning</dd>
|
479 |
+
|
480 |
<dt>3.4.2</dt>
|
481 |
+
<dd>Fixed an issue where the <code>languages</code> directory wouldn't be utilized for l10n</dd>
|
482 |
+
<dd>Search now respects custom <code>meta_key</code></dd>
|
483 |
+
<dd>You can now pass in a <code>filetype</code> parameter when searching to limit results in that way</dd>
|
484 |
|
485 |
<dt>3.4.1</dt>
|
486 |
<dd>Class abstraction and cleanup</dd>
|
classes/class.attachments.php
CHANGED
@@ -57,7 +57,7 @@ if ( !class_exists( 'Attachments' ) ) :
|
|
57 |
|
58 |
// establish our environment variables
|
59 |
|
60 |
-
$this->version = '3.4.1';
|
61 |
$this->url = ATTACHMENTS_URL;
|
62 |
$this->dir = ATTACHMENTS_DIR;
|
63 |
|
@@ -349,7 +349,7 @@ if ( !class_exists( 'Attachments' ) ) :
|
|
349 |
return false;
|
350 |
|
351 |
$attachment_mime = $this->get_mime_type( $this->attachments[$index]->id );
|
352 |
-
return
|
353 |
}
|
354 |
|
355 |
|
@@ -361,10 +361,7 @@ if ( !class_exists( 'Attachments' ) ) :
|
|
361 |
*/
|
362 |
function get_mime_type( $id = null )
|
363 |
{
|
364 |
-
|
365 |
-
return false;
|
366 |
-
|
367 |
-
$attachment_mime = explode( '/', get_post_mime_type( $id ) );
|
368 |
return isset( $attachment_mime[0] ) ? $attachment_mime[0] : false;
|
369 |
}
|
370 |
|
57 |
|
58 |
// establish our environment variables
|
59 |
|
60 |
+
$this->version = '3.4.2.1';
|
61 |
$this->url = ATTACHMENTS_URL;
|
62 |
$this->dir = ATTACHMENTS_DIR;
|
63 |
|
349 |
return false;
|
350 |
|
351 |
$attachment_mime = $this->get_mime_type( $this->attachments[$index]->id );
|
352 |
+
return $attachment_mime;
|
353 |
}
|
354 |
|
355 |
|
361 |
*/
|
362 |
function get_mime_type( $id = null )
|
363 |
{
|
364 |
+
$attachment_mime = explode( '/', get_post_mime_type( intval( $id ) ) );
|
|
|
|
|
|
|
365 |
return isset( $attachment_mime[0] ) ? $attachment_mime[0] : false;
|
366 |
}
|
367 |
|
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.4.2
|
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.4.2.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.1
|
7 |
-
Stable tag: 3.4.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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.1
|
7 |
+
Stable tag: 3.4.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|