Catch IDs - Version 1.4

Version Description

  • Bug Fixed: IDs not showing in category and tags page(Reported by wwkipday)
Download this release

Release Info

Developer catchthemes
Plugin Icon 128x128 Catch IDs
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (3) hide show
  1. catch-ids.php +16 -8
  2. languages/catch-ids.pot +4 -4
  3. readme.txt +4 -1
catch-ids.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Catch IDs
4
  Plugin URI: http://catchthemes.com/wp-plugins/catch-ids/
5
  Description: Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users. Just activate and catch IDs in your page, post, category, tag and media pages.
6
- Version: 1.3
7
  License: GNU General Public License, version 3 (GPLv3)
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
9
  Author: Catch Themes
@@ -113,28 +113,36 @@ function catchids_add() {
113
  add_action( 'manage_edit-link-categories_columns', 'catchids_column' );
114
  add_filter( 'manage_link_categories_custom_column', 'catchids_return_value', 10, 3 );
115
 
116
- // For Tags Management
117
  foreach( get_taxonomies() as $taxonomy ) {
118
  add_action( "manage_edit-${taxonomy}_columns" , 'catchids_column' );
119
- add_filter( "manage_${taxonomy}_custom_column" , 'catchids_value' , 10 , 3 );
120
- add_filter( "manage_edit-${taxonomy}_sortable_columns" , 'catchids_column' );
 
 
121
  }
122
 
123
  foreach( get_post_types() as $ptype ) {
124
- add_action( "manage_edit-${ptype}_columns" , 'catchids_column' );
125
  add_filter( "manage_${ptype}_posts_custom_column" , 'catchids_value' , 10 , 3 );
126
- add_filter( "manage_edit-${ptype}_sortable_columns" , 'catchids_column' );
 
 
127
  }
128
 
129
  // For User Management
130
  add_action( 'manage_users_columns', 'catchids_column' );
131
  add_filter( 'manage_users_custom_column', 'catchids_return_value', 10, 3 );
132
- add_filter( "manage_users_sortable_columns" , 'catchids_column' );
 
 
133
 
134
  // For Comment Management
135
  add_action( 'manage_edit-comments_columns', 'catchids_column' );
136
  add_action( 'manage_comments_custom_column', 'catchids_value', 10, 2 );
137
- add_filter( "manage_edit-comments_sortable_columns" , 'catchids_column' );
 
 
138
  }
139
  endif; // catchids_add
140
  add_action( 'admin_init', 'catchids_add' );
3
  Plugin Name: Catch IDs
4
  Plugin URI: http://catchthemes.com/wp-plugins/catch-ids/
5
  Description: Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users. Just activate and catch IDs in your page, post, category, tag and media pages.
6
+ Version: 1.4
7
  License: GNU General Public License, version 3 (GPLv3)
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
9
  Author: Catch Themes
113
  add_action( 'manage_edit-link-categories_columns', 'catchids_column' );
114
  add_filter( 'manage_link_categories_custom_column', 'catchids_return_value', 10, 3 );
115
 
116
+ // For Category, Tags and other custom taxonomies Management
117
  foreach( get_taxonomies() as $taxonomy ) {
118
  add_action( "manage_edit-${taxonomy}_columns" , 'catchids_column' );
119
+ add_filter( "manage_${taxonomy}_custom_column" , 'catchids_return_value' , 10 , 3 );
120
+ if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
121
+ add_filter( "manage_edit-${taxonomy}_sortable_columns" , 'catchids_column' );
122
+ }
123
  }
124
 
125
  foreach( get_post_types() as $ptype ) {
126
+ add_action( "manage_edit-${ptype}_columns" , 'catchids_column' );
127
  add_filter( "manage_${ptype}_posts_custom_column" , 'catchids_value' , 10 , 3 );
128
+ if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
129
+ add_filter( "manage_edit-${ptype}_sortable_columns" , 'catchids_column' );
130
+ }
131
  }
132
 
133
  // For User Management
134
  add_action( 'manage_users_columns', 'catchids_column' );
135
  add_filter( 'manage_users_custom_column', 'catchids_return_value', 10, 3 );
136
+ if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
137
+ add_filter( "manage_users_sortable_columns" , 'catchids_column' );
138
+ }
139
 
140
  // For Comment Management
141
  add_action( 'manage_edit-comments_columns', 'catchids_column' );
142
  add_action( 'manage_comments_custom_column', 'catchids_value', 10, 2 );
143
+ if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
144
+ add_filter( "manage_edit-comments_sortable_columns" , 'catchids_column' );
145
+ }
146
  }
147
  endif; // catchids_add
148
  add_action( 'admin_init', 'catchids_add' );
languages/catch-ids.pot CHANGED
@@ -1,11 +1,11 @@
1
- # Copyright (C) 2015 Catch Themes
2
  # This file is distributed under the GNU General Public License v3 or later.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Catch Ids\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tags/catch-ids\n"
7
- "POT-Creation-Date: 2016-02-18 17:24+0545\n"
8
- "PO-Revision-Date: 2016-02-18 17:24+0545\n"
9
  "Last-Translator: Pratik Shrestha <pratik@catchthemes.com>\n"
10
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
11
  "Language: en_US\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
- "X-Generator: Poedit 1.6.10\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
18
  "esc_html__\n"
19
  "X-Poedit-Basepath: .\n"
1
+ # Copyright (C) 2016 Catch Themes
2
  # This file is distributed under the GNU General Public License v3 or later.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Catch Ids\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tags/catch-ids\n"
7
+ "POT-Creation-Date: 2016-02-25 11:03+0545\n"
8
+ "PO-Revision-Date: 2016-02-25 11:03+0545\n"
9
  "Last-Translator: Pratik Shrestha <pratik@catchthemes.com>\n"
10
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
11
  "Language: en_US\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
18
  "esc_html__\n"
19
  "X-Poedit-Basepath: .\n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://catchthemes.com/wp-plugins/catch-ids/
5
  Tags: catch-ids, simple, admin, wp-admin, show, ids, post, page, category, media, links, tag, user, id, post id, page id, category id
6
  Requires at least: 3.5
7
  Tested up to: 4.4.2
8
- Stable tag: 1.3
9
  License: GNU General Public License, version 3 (GPLv3)
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
 
@@ -47,6 +47,9 @@ Manual Installation through FTP access
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.3 =
51
  * Update: Made the ID column sortable
52
  * Code Optimization
5
  Tags: catch-ids, simple, admin, wp-admin, show, ids, post, page, category, media, links, tag, user, id, post id, page id, category id
6
  Requires at least: 3.5
7
  Tested up to: 4.4.2
8
+ Stable tag: 1.4
9
  License: GNU General Public License, version 3 (GPLv3)
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.4 =
51
+ * Bug Fixed: IDs not showing in category and tags page(Reported by wwkipday)
52
+
53
  = 1.3 =
54
  * Update: Made the ID column sortable
55
  * Code Optimization