WP Show IDs ( simple, yet elegant ) - Version 1.0.2

Version Description

  • Hooks/Filters updated; general cleanup.
  • Updated minimum requirements to WordPress 3.0.
Download this release

Release Info

Developer PriMoThemes
Plugin Icon wp plugin WP Show IDs ( simple, yet elegant )
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

includes/functions/configure-columns.inc.php CHANGED
@@ -12,7 +12,7 @@ If not, see: <http://www.gnu.org/licenses/>.
12
  Direct access denial.
13
  */
14
  if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
15
- exit ("Do not access this file directly.");
16
  /*
17
  Configure all of the required Hooks/Filters for columns & css.
18
  Attach to: add_action("admin_init");
@@ -27,69 +27,37 @@ if (!function_exists ("ws_plugin__wp_show_ids_configure"))
27
  /**/
28
  add_action ("admin_head", "_ws_plugin__wp_show_ids_echo_css"); /* Add CSS. */
29
  /**/
30
- if (version_compare (get_bloginfo ("version"), "3.0", ">=")) /* WordPress® v3.0+. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  {
32
- add_filter ("manage_edit-post_columns", "_ws_plugin__wp_show_ids_return_column");
33
- add_action ("manage_posts_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
34
- /**/
35
- add_filter ("manage_edit-comments_columns", "_ws_plugin__wp_show_ids_return_column");
36
- add_action ("manage_comments_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
37
- /**/
38
- add_filter ("manage_edit-page_columns", "_ws_plugin__wp_show_ids_return_column");
39
- add_action ("manage_pages_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
40
- /**/
41
- add_filter ("manage_link-manager_columns", "_ws_plugin__wp_show_ids_return_column");
42
- add_action ("manage_link_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
43
- /**/
44
- add_filter ("manage_edit-link-categories_columns", "_ws_plugin__wp_show_ids_return_column");
45
- add_filter ("manage_link_categories_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
46
- /**/
47
- add_filter ("manage_upload_columns", "_ws_plugin__wp_show_ids_return_column");
48
- add_action ("manage_media_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
49
- /**/
50
- add_filter ("manage_users_columns", "_ws_plugin__wp_show_ids_return_column");
51
- add_filter ("manage_users_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
52
- /**/
53
- foreach ($wp_post_types as $type => $post_type_object) /* Handle WP 3.0+ Post Types. */
54
- {
55
- add_action ("manage_edit-${type}_columns", "_ws_plugin__wp_show_ids_return_column");
56
- add_filter ("manage_${type}_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
57
- }
58
- /**/
59
- foreach ($wp_taxonomies as $taxonomy => $taxonomy_o) /* Handle WP 3.0+ Taxonomies. */
60
- {
61
- add_action ("manage_edit-${taxonomy}_columns", "_ws_plugin__wp_show_ids_return_column");
62
- add_filter ("manage_${taxonomy}_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
63
- }
64
  }
65
- else if (version_compare (get_bloginfo ("version"), "2.9.2", ">=")) /* WordPress® v2.9.2+. */
 
66
  {
67
- add_filter ("manage_edit_columns", "_ws_plugin__wp_show_ids_return_column");
68
- add_action ("manage_posts_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
69
- /**/
70
- add_filter ("manage_categories_columns", "_ws_plugin__wp_show_ids_return_column");
71
- add_filter ("manage_categories_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
72
- /**/
73
- add_filter ("manage_edit-tags_columns", "_ws_plugin__wp_show_ids_return_column");
74
- add_filter ("manage_post_tag_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
75
- /**/
76
- add_filter ("manage_edit-comments_columns", "_ws_plugin__wp_show_ids_return_column");
77
- add_action ("manage_comments_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
78
- /**/
79
- add_filter ("manage_edit-page_columns", "_ws_plugin__wp_show_ids_return_column");
80
- add_action ("manage_pages_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
81
- /**/
82
- add_filter ("manage_link-manager_columns", "_ws_plugin__wp_show_ids_return_column");
83
- add_action ("manage_link_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
84
- /**/
85
- add_filter ("manage_edit-link-categories_columns", "_ws_plugin__wp_show_ids_return_column");
86
- add_filter ("manage_link_categories_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
87
- /**/
88
- add_filter ("manage_upload_columns", "_ws_plugin__wp_show_ids_return_column");
89
- add_action ("manage_media_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
90
- /**/
91
- add_filter ("manage_users_columns", "_ws_plugin__wp_show_ids_return_column");
92
- add_filter ("manage_users_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
93
  }
94
  /**/
95
  do_action ("ws_plugin__wp_show_ids_after_configure", get_defined_vars ());
12
  Direct access denial.
13
  */
14
  if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
15
+ exit("Do not access this file directly.");
16
  /*
17
  Configure all of the required Hooks/Filters for columns & css.
18
  Attach to: add_action("admin_init");
27
  /**/
28
  add_action ("admin_head", "_ws_plugin__wp_show_ids_echo_css"); /* Add CSS. */
29
  /**/
30
+ add_filter ("manage_edit-post_columns", "_ws_plugin__wp_show_ids_return_column");
31
+ add_action ("manage_posts_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
32
+ /**/
33
+ add_filter ("manage_edit-comments_columns", "_ws_plugin__wp_show_ids_return_column");
34
+ add_action ("manage_comments_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
35
+ /**/
36
+ add_filter ("manage_edit-page_columns", "_ws_plugin__wp_show_ids_return_column");
37
+ add_action ("manage_pages_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
38
+ /**/
39
+ add_filter ("manage_link-manager_columns", "_ws_plugin__wp_show_ids_return_column");
40
+ add_action ("manage_link_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
41
+ /**/
42
+ add_filter ("manage_edit-link-categories_columns", "_ws_plugin__wp_show_ids_return_column");
43
+ add_filter ("manage_link_categories_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
44
+ /**/
45
+ add_filter ("manage_upload_columns", "_ws_plugin__wp_show_ids_return_column");
46
+ add_action ("manage_media_custom_column", "_ws_plugin__wp_show_ids_echo_value", 10, 2);
47
+ /**/
48
+ add_filter ("manage_users_columns", "_ws_plugin__wp_show_ids_return_column");
49
+ add_filter ("manage_users_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
50
+ /**/
51
+ foreach ($wp_post_types as $type => $post_type_object) /* Handle WP 3.0+ Post Types. */
52
  {
53
+ add_action ("manage_edit-${type}_columns", "_ws_plugin__wp_show_ids_return_column");
54
+ add_filter ("manage_${type}_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
+ /**/
57
+ foreach ($wp_taxonomies as $taxonomy => $taxonomy_o) /* Handle WP 3.0+ Taxonomies. */
58
  {
59
+ add_action ("manage_edit-${taxonomy}_columns", "_ws_plugin__wp_show_ids_return_column");
60
+ add_filter ("manage_${taxonomy}_custom_column", "_ws_plugin__wp_show_ids_return_value", 10, 3);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  }
62
  /**/
63
  do_action ("ws_plugin__wp_show_ids_after_configure", get_defined_vars ());
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === WP Show IDs ( simple, yet elegant ) ===
2
 
3
- Version: 1.0.1
4
- Stable tag: 1.0.1
5
  Framework: WS-DIP-3.0
6
 
7
  WordPress Compatible: yes
@@ -9,8 +9,8 @@ WP Multisite Compatible: yes
9
  Multisite Blog Farm Compatible: yes
10
 
11
  Tested up to: 3.0
12
- Requires at least: 2.9.2
13
- Requires: WordPress® 2.9.2+, PHP 5.2+
14
 
15
  Copyright: © 2009 WebSharks, Inc.
16
  License: GNU General Public License
@@ -51,10 +51,14 @@ Yes, the support forum is located [here](http://www.primothemes.com/forums/viewf
51
  Yes, the WP Show IDs plugin covers all the bases. It displays the ID for all types of WordPress® content.
52
 
53
  = Does this plugin work with Custom Post Types? =
54
- Yes, support for WordPress® 3.0+ has been added; supporting even Custom Post Types.
55
 
56
  == Changelog ==
57
 
 
 
 
 
58
  = 1.0.1 =
59
  * Streamlined a few things.
60
  * General cleanup.
1
  === WP Show IDs ( simple, yet elegant ) ===
2
 
3
+ Version: 1.0.2
4
+ Stable tag: 1.0.2
5
  Framework: WS-DIP-3.0
6
 
7
  WordPress Compatible: yes
9
  Multisite Blog Farm Compatible: yes
10
 
11
  Tested up to: 3.0
12
+ Requires at least: 3.0
13
+ Requires: WordPress® 3.0+, PHP 5.2+
14
 
15
  Copyright: © 2009 WebSharks, Inc.
16
  License: GNU General Public License
51
  Yes, the WP Show IDs plugin covers all the bases. It displays the ID for all types of WordPress® content.
52
 
53
  = Does this plugin work with Custom Post Types? =
54
+ Yes, this plugin supports WordPress® 3.0+; even Custom Post Types &amp; Custom Taxonomies.
55
 
56
  == Changelog ==
57
 
58
+ = 1.0.2 =
59
+ * Hooks/Filters updated; general cleanup.
60
+ * Updated minimum requirements to WordPress® 3.0.
61
+
62
  = 1.0.1 =
63
  * Streamlined a few things.
64
  * General cleanup.
wp-show-ids.php CHANGED
@@ -9,8 +9,8 @@ along with this software. In the main directory, see: /licensing/
9
  If not, see: <http://www.gnu.org/licenses/>.
10
  */
11
  /*
12
- Version: 1.0.1
13
- Stable tag: 1.0.1
14
  Framework: WS-DIP-3.0
15
 
16
  WordPress Compatible: yes
@@ -18,8 +18,8 @@ WP Multisite Compatible: yes
18
  Multisite Blog Farm Compatible: yes
19
 
20
  Tested up to: 3.0
21
- Requires at least: 2.9.2
22
- Requires: WordPress® 2.9.2+, PHP 5.2+
23
 
24
  Copyright: © 2009 WebSharks, Inc.
25
  License: GNU General Public License
@@ -38,13 +38,13 @@ Tags: admin, administration, dashboard, id, ids, wp ids, wp-ids, show ids, wordp
38
  Direct access denial.
39
  */
40
  if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
41
- exit ("Do not access this file directly.");
42
  /*
43
  Define versions.
44
  */
45
- define ("WS_PLUGIN__WP_SHOW_IDS_VERSION", "1.0.1");
46
  define ("WS_PLUGIN__WP_SHOW_IDS_MIN_PHP_VERSION", "5.2");
47
- define ("WS_PLUGIN__WP_SHOW_IDS_MIN_WP_VERSION", "2.9.2");
48
  /*
49
  Compatibility checks.
50
  */
@@ -54,7 +54,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__WP_SHOW_IDS_MIN_PHP_VERSION, ">=")
54
  /*
55
  Hook before loaded.
56
  */
57
- do_action ("ws_plugin__wp_show_ids_before_loaded");
58
  /*
59
  System configuraton.
60
  */
@@ -66,7 +66,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__WP_SHOW_IDS_MIN_PHP_VERSION, ">=")
66
  /*
67
  Hook after system config & hooks are loaded.
68
  */
69
- do_action ("ws_plugin__wp_show_ids_config_hooks_loaded");
70
  /*
71
  Function includes.
72
  */
@@ -78,7 +78,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__WP_SHOW_IDS_MIN_PHP_VERSION, ">=")
78
  /*
79
  Hook after loaded.
80
  */
81
- do_action ("ws_plugin__wp_show_ids_after_loaded");
82
  }
83
  else if (is_admin ()) /* Admin compatibility errors. */
84
  {
9
  If not, see: <http://www.gnu.org/licenses/>.
10
  */
11
  /*
12
+ Version: 1.0.2
13
+ Stable tag: 1.0.2
14
  Framework: WS-DIP-3.0
15
 
16
  WordPress Compatible: yes
18
  Multisite Blog Farm Compatible: yes
19
 
20
  Tested up to: 3.0
21
+ Requires at least: 3.0
22
+ Requires: WordPress® 3.0+, PHP 5.2+
23
 
24
  Copyright: © 2009 WebSharks, Inc.
25
  License: GNU General Public License
38
  Direct access denial.
39
  */
40
  if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
41
+ exit("Do not access this file directly.");
42
  /*
43
  Define versions.
44
  */
45
+ define ("WS_PLUGIN__WP_SHOW_IDS_VERSION", "1.0.2");
46
  define ("WS_PLUGIN__WP_SHOW_IDS_MIN_PHP_VERSION", "5.2");
47
+ define ("WS_PLUGIN__WP_SHOW_IDS_MIN_WP_VERSION", "3.0");
48
  /*
49
  Compatibility checks.
50
  */
54
  /*
55
  Hook before loaded.
56
  */
57
+ do_action("ws_plugin__wp_show_ids_before_loaded");
58
  /*
59
  System configuraton.
60
  */
66
  /*
67
  Hook after system config & hooks are loaded.
68
  */
69
+ do_action("ws_plugin__wp_show_ids_config_hooks_loaded");
70
  /*
71
  Function includes.
72
  */
78
  /*
79
  Hook after loaded.
80
  */
81
+ do_action("ws_plugin__wp_show_ids_after_loaded");
82
  }
83
  else if (is_admin ()) /* Admin compatibility errors. */
84
  {