Attachments - Version 1.5.1

Version Description

  • Fixed thumbnail rendering issue
  • Fixed issue where browse modal included extraneous items after filtering or searching
Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin Attachments
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

attachments.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Attachments
4
  Plugin URI: http://mondaybynoon.com/wordpress-attachments/
5
  Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
6
- Version: 1.5
7
  Author: Jonathan Christopher
8
  Author URI: http://mondaybynoon.com/
9
  */
@@ -422,7 +422,7 @@ function is_attachments_context()
422
  global $pagenow;
423
 
424
  // if post_id is set, it's the editor upload...
425
- if ( ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) && !isset( $_REQUEST['post_id'] ) )
426
  {
427
  return true;
428
  }
3
  Plugin Name: Attachments
4
  Plugin URI: http://mondaybynoon.com/wordpress-attachments/
5
  Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
6
+ Version: 1.5.1
7
  Author: Jonathan Christopher
8
  Author URI: http://mondaybynoon.com/
9
  */
422
  global $pagenow;
423
 
424
  // if post_id is set, it's the editor upload...
425
+ if ( ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) && empty( $_REQUEST['post_id'] ) )
426
  {
427
  return true;
428
  }
css/attachments.css CHANGED
@@ -42,13 +42,15 @@ p.attachments-actions { float:right; margin:6px 0 0 !important; }
42
  #poststuff li.attachments-file h2 span { display:block; float:left; }
43
  #poststuff li.attachments-file h2 a span.attachment-handle-icon { padding:9px 0 0 0; cursor:move; }
44
  #poststuff li.attachments-file h2 span.attachment-name { padding:0 10px; height:2em; overflow:hidden; width:60%; }
45
- #poststuff li.attachments-file h2 span.attachment-delete { width:60px; text-align:center; padding:0.7em 0 0 0; float:right; margin-right:3px; }
46
  #poststuff li.attachments-file h2 span.attachment-delete a { font:11px "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; color:#21759b; text-decoration:underline; }
47
  #poststuff li.attachments-file h2 span.attachment-delete a:hover { color:#d54e21; }
48
 
49
  #attachments-list .attachments-file { overflow:hidden; zoom:1; }
50
  #attachments-list .attachments-fields { width:80%; float:left; }
51
- #attachments-list .attachments-thumbnail { width:80px; float:right; text-align:right; padding-right:3px; }
 
 
52
 
53
  .attachments-fields .textfield { overflow:hidden; zoom:1; padding-bottom:10px; }
54
  .attachments-fields .textfield label { display:block; width:20%; float:left; padding-top:6px; }
42
  #poststuff li.attachments-file h2 span { display:block; float:left; }
43
  #poststuff li.attachments-file h2 a span.attachment-handle-icon { padding:9px 0 0 0; cursor:move; }
44
  #poststuff li.attachments-file h2 span.attachment-name { padding:0 10px; height:2em; overflow:hidden; width:60%; }
45
+ #poststuff li.attachments-file h2 span.attachment-delete { width:80px; text-align:center; padding:0.7em 0 0 0; float:right; margin-right:3px; }
46
  #poststuff li.attachments-file h2 span.attachment-delete a { font:11px "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; color:#21759b; text-decoration:underline; }
47
  #poststuff li.attachments-file h2 span.attachment-delete a:hover { color:#d54e21; }
48
 
49
  #attachments-list .attachments-file { overflow:hidden; zoom:1; }
50
  #attachments-list .attachments-fields { width:80%; float:left; }
51
+ #attachments-list .attachment-thumbnail { width:80px; float:right; margin-right:3px; }
52
+ #attachments-list .attachments-thumbnail { width:80px; float:right; text-align:right; }
53
+ #attachments-list .attachments-thumbnail img { display:block; max-width:80px; margin:0 auto; }
54
 
55
  .attachments-fields .textfield { overflow:hidden; zoom:1; padding-bottom:10px; }
56
  .attachments-fields .textfield label { display:block; width:20%; float:left; padding-top:6px; }
js/attachments.js CHANGED
@@ -89,7 +89,7 @@ function attachments_handle_attach(title,caption,id,thumb){
89
  new_attachments += '<div class="attachment-thumbnail"><span class="attachments-thumbnail">';
90
 
91
 
92
- new_attachments += '<img src="' + attachment_thumb + '" width="80" alt="Thumbnail" />';
93
  new_attachments += '</span></div>';
94
  new_attachments += '</li>';
95
 
@@ -108,7 +108,7 @@ jQuery(document).ready(function() {
108
 
109
  if(attachments_is_attachments_context)
110
  {
111
- jQuery('body').addClass('attachments-media-upload');
112
 
113
  // we need to hijack the Attach button
114
  jQuery('td.savesend input').live('click',function(e){
89
  new_attachments += '<div class="attachment-thumbnail"><span class="attachments-thumbnail">';
90
 
91
 
92
+ new_attachments += '<img src="' + attachment_thumb + '" alt="Thumbnail" />';
93
  new_attachments += '</span></div>';
94
  new_attachments += '</li>';
95
 
108
 
109
  if(attachments_is_attachments_context)
110
  {
111
+ jQuery('body').addClass('attachments-media-upload');
112
 
113
  // we need to hijack the Attach button
114
  jQuery('td.savesend input').live('click',function(e){
readme.txt CHANGED
@@ -4,13 +4,13 @@ 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: 2.8
6
  Tested up to: 3.0.1
7
- Stable tag: 1.5
8
 
9
- Attachments allows you to append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
10
 
11
  == Description ==
12
 
13
- Attachments allows you to append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types. This plugin *does not* directly interact with your theme, you will need to edit your template files.
14
 
15
  There is a **screencast available** on the [plugin home page](http://mondaybynoon.com/wordpress-attachments/)
16
 
@@ -37,10 +37,17 @@ Attachments uses WordPress' built in Media library for uploads and storage.
37
 
38
  == Screenshots ==
39
 
40
- 1. Attachments meta box on every Post and Page
 
 
 
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 1.5 =
45
  * Completely revamped the upload/browse experience. Attachments now uses WordPress default modal dialogs.
46
 
4
  Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.5.1
8
 
9
+ Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
10
 
11
  == Description ==
12
 
13
+ Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types. This plugin *does not* directly interact with your theme, you will need to edit your template files.
14
 
15
  There is a **screencast available** on the [plugin home page](http://mondaybynoon.com/wordpress-attachments/)
16
 
37
 
38
  == Screenshots ==
39
 
40
+ 1. Attachments meta box as it appears on Posts, Pages, or Custom Post Types
41
+ 2. Native WordPress browse modal dialog, slightly customized for Attachments. Upload straight from your computer.
42
+ 3. You can also browse the existing media in your Media Library. The dialog remains open, allowing you to attach multiple assets.
43
+ 4. Once assets have been attached, you can customize the title, caption, and order
44
 
45
  == Changelog ==
46
 
47
+ = 1.5.1 =
48
+ * Fixed thumbnail rendering issue
49
+ * Fixed issue where browse modal included extraneous items after filtering or searching
50
+
51
  = 1.5 =
52
  * Completely revamped the upload/browse experience. Attachments now uses WordPress default modal dialogs.
53
 
screenshot-1.jpg CHANGED
Binary file
screenshot-2.jpg ADDED
Binary file
screenshot-3.jpg ADDED
Binary file
screenshot-4.jpg ADDED
Binary file