Media Library Categories - Version 1.4.11

Version Description

  • Remember ordering when changing categories.
Download this release

Release Info

Developer jeffrey-wp
Plugin Icon 128x128 Media Library Categories
Version 1.4.11
Comparing to
See all releases

Code changes from version 1.4.10 to 1.4.11

Files changed (2) hide show
  1. index.php +12 -1
  2. readme.txt +14 -13
index.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Media Library Categories
4
  * Plugin URI: http://wordpress.org/plugins/wp-media-library-categories/
5
  * Description: Adds the ability to use categories in the media library.
6
- * Version: 1.4.10
7
  * Author: Jeffrey-WP
8
  * Author URI: http://codecanyon.net/user/jeffrey-wp/?ref=jeffrey-wp
9
  */
@@ -228,6 +228,17 @@ if ( is_admin() ) {
228
  $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;
229
  $sendback = add_query_arg( 'paged', $pagenum, $sendback );
230
 
 
 
 
 
 
 
 
 
 
 
 
231
  foreach( $post_ids as $post_id ) {
232
 
233
  if ( is_numeric( str_replace('wpmediacategory_add_', '', $sAction) ) ) {
3
  * Plugin Name: Media Library Categories
4
  * Plugin URI: http://wordpress.org/plugins/wp-media-library-categories/
5
  * Description: Adds the ability to use categories in the media library.
6
+ * Version: 1.4.11
7
  * Author: Jeffrey-WP
8
  * Author URI: http://codecanyon.net/user/jeffrey-wp/?ref=jeffrey-wp
9
  */
228
  $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;
229
  $sendback = add_query_arg( 'paged', $pagenum, $sendback );
230
 
231
+ // remember orderby
232
+ if ( isset( $_REQUEST['orderby'] ) ) {
233
+ $sOrderby = $_REQUEST['orderby'];
234
+ $sendback = add_query_arg( 'orderby', $sOrderby, $sendback );
235
+ }
236
+ // remember order
237
+ if ( isset( $_REQUEST['order'] ) ) {
238
+ $sOrder = $_REQUEST['order'];
239
+ $sendback = add_query_arg( 'order', $sOrder, $sendback );
240
+ }
241
+
242
  foreach( $post_ids as $post_id ) {
243
 
244
  if ( is_numeric( str_replace('wpmediacategory_add_', '', $sAction) ) ) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: jeffrey-wp
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2
4
- Tags: category, categories, media, library, medialibrary
5
  Requires at least: 3.1
6
  Tested up to: 3.9.1
7
- Stable tag: 1.4.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,17 +40,6 @@ To upload the plugin through WordPress, instead of FTP:
40
 
41
  == Frequently Asked Questions ==
42
 
43
- = Where can I request new features? =
44
-
45
- You can request new features on the [support page](http://wordpress.org/support/plugin/wp-media-library-categories)
46
-
47
- = I want to thank you, where can I make a donation? =
48
- Maintaining a plugin and keeping it up to date is hard work. Please support me by making a donation. Thank you.
49
- [Please donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2)
50
-
51
- = How can I filter on categories when inserting media into a post or page? =
52
- This feature is only available in the [premium version](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
53
-
54
  = By default the WordPress Media Library uses the same categories as WordPress does (such as in posts & pages). How do I use separate categories for the WordPress Media Library? =
55
  Add this code to the file functions.php located in your theme or child-theme:
56
  `/**
@@ -60,6 +49,15 @@ Add this code to the file functions.php located in your theme or child-theme:
60
  add_filter( 'wpmediacategory_taxonomy', function(){ return 'category_media'; }, 1 ); //requires PHP 5.3 or newer
61
  `
62
 
 
 
 
 
 
 
 
 
 
63
  == Screenshots ==
64
 
65
  1. Filter by category in the media library
@@ -68,6 +66,9 @@ add_filter( 'wpmediacategory_taxonomy', function(){ return 'category_media'; },
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 1.4.10 =
72
  * Stay on active page in the media library when changing categories.
73
  * Fixed PHP 5.4 strict warning.
1
  === Plugin Name ===
2
  Contributors: jeffrey-wp
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2
4
+ Tags: category, categories, media, library, medialibrary, image, images, media category, media categories
5
  Requires at least: 3.1
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.4.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
 
41
  == Frequently Asked Questions ==
42
 
 
 
 
 
 
 
 
 
 
 
 
43
  = By default the WordPress Media Library uses the same categories as WordPress does (such as in posts & pages). How do I use separate categories for the WordPress Media Library? =
44
  Add this code to the file functions.php located in your theme or child-theme:
45
  `/**
49
  add_filter( 'wpmediacategory_taxonomy', function(){ return 'category_media'; }, 1 ); //requires PHP 5.3 or newer
50
  `
51
 
52
+
53
+ = How can I filter on categories when inserting media into a post or page? =
54
+ This feature is only available in the [premium version](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
55
+
56
+
57
+ = I want to thank you, where can I make a donation? =
58
+ Maintaining a plugin and keeping it up to date is hard work. Please support me by making a donation. Thank you.
59
+ [Please donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2)
60
+
61
  == Screenshots ==
62
 
63
  1. Filter by category in the media library
66
 
67
  == Changelog ==
68
 
69
+ = 1.4.11 =
70
+ * Remember ordering when changing categories.
71
+
72
  = 1.4.10 =
73
  * Stay on active page in the media library when changing categories.
74
  * Fixed PHP 5.4 strict warning.