Admin Columns - Version 2.4.5

Version Description

  • [Fixed] Estimate Time Reading column will not display a value when there is no content
  • [Fixed] When updating there was a possbile change on a "Cannot modify header information"
Download this release

Release Info

Developer codepress
Plugin Icon 128x128 Admin Columns
Version 2.4.5
Comparing to
See all releases

Code changes from version 2.4.4 to 2.4.5

Files changed (169) hide show
  1. api.php +0 -0
  2. assets/css/admin-column.css +0 -0
  3. assets/css/admin-column.min.css +0 -0
  4. assets/css/column.css +0 -0
  5. assets/css/column.min.css +0 -0
  6. assets/images/_drag.png +0 -0
  7. assets/images/addon_multiplecustomfields.png +0 -0
  8. assets/images/addon_sortable_1.png +0 -0
  9. assets/images/addons/acf.png +0 -0
  10. assets/images/addons/woocommerce.png +0 -0
  11. assets/images/arrow.png +0 -0
  12. assets/images/arrows.png +0 -0
  13. assets/images/border.png +0 -0
  14. assets/images/checkbox.png +0 -0
  15. assets/images/checkmark.png +0 -0
  16. assets/images/checkmark_single.png +0 -0
  17. assets/images/checkmark_white.png +0 -0
  18. assets/images/comment-grey-bubble.png +0 -0
  19. assets/images/comment_edit.png +0 -0
  20. assets/images/cross.png +0 -0
  21. assets/images/drag.png +0 -0
  22. assets/images/facebook.png +0 -0
  23. assets/images/get_the_addon.png +0 -0
  24. assets/images/help.png +0 -0
  25. assets/images/icon.png +0 -0
  26. assets/images/icon_20.png +0 -0
  27. assets/images/import_export.png +0 -0
  28. assets/images/info.png +0 -0
  29. assets/images/information.png +0 -0
  30. assets/images/layout_edit.png +0 -0
  31. assets/images/loading.gif +0 -0
  32. assets/images/more_info.png +0 -0
  33. assets/images/no.png +0 -0
  34. assets/images/order_arrow-rtl.png +0 -0
  35. assets/images/order_arrow.png +0 -0
  36. assets/images/settings.png +0 -0
  37. assets/images/sort.png +0 -0
  38. assets/images/square.png +0 -0
  39. assets/images/status.png +0 -0
  40. assets/images/switch_blue.png +0 -0
  41. assets/images/switch_bw.png +0 -0
  42. assets/images/trash.png +0 -0
  43. assets/images/twitter.png +0 -0
  44. assets/images/yes.png +0 -0
  45. assets/js/admin-columns.js +0 -0
  46. assets/js/admin-columns.min.js +0 -0
  47. assets/js/admin-settings.js +0 -0
  48. assets/js/admin-settings.min.js +0 -0
  49. assets/js/upgrade.js +0 -0
  50. assets/js/upgrade.min.js +0 -0
  51. assets/ui-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  52. assets/ui-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  53. assets/ui-theme/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  54. assets/ui-theme/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  55. assets/ui-theme/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  56. assets/ui-theme/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  57. assets/ui-theme/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  58. assets/ui-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  59. assets/ui-theme/images/ui-icons_222222_256x240.png +0 -0
  60. assets/ui-theme/images/ui-icons_2e83ff_256x240.png +0 -0
  61. assets/ui-theme/images/ui-icons_454545_256x240.png +0 -0
  62. assets/ui-theme/images/ui-icons_888888_256x240.png +0 -0
  63. assets/ui-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  64. assets/ui-theme/jquery-ui-1.8.18.custom.css +0 -0
  65. classes/addons.php +0 -0
  66. classes/column.php +0 -0
  67. classes/column/acf-placeholder.php +0 -0
  68. classes/column/actions.php +0 -0
  69. classes/column/comment/ID.php +0 -0
  70. classes/column/comment/actions.php +0 -0
  71. classes/column/comment/agent.php +0 -0
  72. classes/column/comment/approved.php +0 -0
  73. classes/column/comment/author-avatar.php +0 -0
  74. classes/column/comment/author-email.php +0 -0
  75. classes/column/comment/author-ip.php +0 -0
  76. classes/column/comment/author-name.php +0 -0
  77. classes/column/comment/author-url.php +0 -0
  78. classes/column/comment/author.php +0 -0
  79. classes/column/comment/date-gmt.php +0 -0
  80. classes/column/comment/date.php +0 -0
  81. classes/column/comment/excerpt.php +0 -0
  82. classes/column/comment/reply-to.php +0 -0
  83. classes/column/comment/type.php +0 -0
  84. classes/column/comment/user.php +0 -0
  85. classes/column/comment/word-count.php +0 -0
  86. classes/column/custom-field.php +0 -0
  87. classes/column/default.php +0 -0
  88. classes/column/link/ID.php +0 -0
  89. classes/column/link/actions.php +0 -0
  90. classes/column/link/description.php +0 -0
  91. classes/column/link/image.php +0 -0
  92. classes/column/link/length.php +0 -0
  93. classes/column/link/notes.php +0 -0
  94. classes/column/link/owner.php +0 -0
  95. classes/column/link/rss.php +0 -0
  96. classes/column/link/target.php +0 -0
  97. classes/column/media/ID.php +0 -0
  98. classes/column/media/actions.php +0 -0
  99. classes/column/media/alternate-text.php +0 -0
  100. classes/column/media/attached-to.php +0 -0
  101. classes/column/media/available-sizes.php +0 -0
  102. classes/column/media/caption.php +0 -0
  103. classes/column/media/description.php +0 -0
  104. classes/column/media/dimensions.php +0 -0
  105. classes/column/media/exif-data.php +0 -0
  106. classes/column/media/file-name.php +0 -0
  107. classes/column/media/file-size.php +0 -0
  108. classes/column/media/full-path.php +0 -0
  109. classes/column/media/height.php +0 -0
  110. classes/column/media/mime-type.php +0 -0
  111. classes/column/media/width.php +0 -0
  112. classes/column/post/ID.php +0 -0
  113. classes/column/post/actions.php +0 -0
  114. classes/column/post/attachment-count.php +0 -0
  115. classes/column/post/attachment.php +0 -0
  116. classes/column/post/author-name.php +0 -0
  117. classes/column/post/before-moretag.php +0 -0
  118. classes/column/post/comment-count.php +0 -0
  119. classes/column/post/comment-status.php +0 -0
  120. classes/column/post/content.php +0 -0
  121. classes/column/post/date-published.php +0 -0
  122. classes/column/post/depth.php +0 -0
  123. classes/column/post/estimated-reading-time.php +20 -16
  124. classes/column/post/excerpt.php +0 -0
  125. classes/column/post/featured-image.php +0 -0
  126. classes/column/post/formats.php +0 -0
  127. classes/column/post/last-modified-author.php +0 -0
  128. classes/column/post/modified.php +0 -0
  129. classes/column/post/order.php +1 -1
  130. classes/column/post/page-template.php +0 -0
  131. classes/column/post/parent.php +0 -0
  132. classes/column/post/path.php +0 -0
  133. classes/column/post/permalink.php +0 -0
  134. classes/column/post/ping-status.php +0 -0
  135. classes/column/post/roles.php +0 -0
  136. classes/column/post/shortcodes.php +0 -0
  137. classes/column/post/slug.php +0 -0
  138. classes/column/post/status.php +0 -0
  139. classes/column/post/sticky.php +0 -0
  140. classes/column/post/title-raw.php +0 -0
  141. classes/column/post/word-count.php +0 -0
  142. classes/column/taxonomy.php +0 -0
  143. classes/column/used-by-menu.php +0 -0
  144. classes/column/user/ID.php +0 -0
  145. classes/column/user/actions.php +0 -0
  146. classes/column/user/comment-count.php +0 -0
  147. classes/column/user/description.php +0 -0
  148. classes/column/user/display-name.php +0 -0
  149. classes/column/user/first-name.php +0 -0
  150. classes/column/user/last-name.php +0 -0
  151. classes/column/user/nickname.php +0 -0
  152. classes/column/user/post-count.php +0 -0
  153. classes/column/user/registered.php +0 -0
  154. classes/column/user/rich-editing.php +0 -0
  155. classes/column/user/url.php +0 -0
  156. classes/review_notice.php +0 -0
  157. classes/settings.php +0 -0
  158. classes/storage_model.php +0 -0
  159. classes/storage_model/comment.php +0 -0
  160. classes/storage_model/link.php +0 -0
  161. classes/storage_model/media.php +0 -0
  162. classes/storage_model/post.php +0 -0
  163. classes/storage_model/user.php +0 -0
  164. classes/third_party.php +0 -0
  165. classes/upgrade.php +0 -0
  166. classes/utility.php +0 -0
  167. codepress-admin-columns.php +2 -2
  168. includes/arrays.php +0 -0
  169. readme.txt +5 -1
api.php CHANGED
File without changes
assets/css/admin-column.css CHANGED
File without changes
assets/css/admin-column.min.css CHANGED
File without changes
assets/css/column.css CHANGED
File without changes
assets/css/column.min.css CHANGED
File without changes
assets/images/_drag.png CHANGED
File without changes
assets/images/addon_multiplecustomfields.png CHANGED
File without changes
assets/images/addon_sortable_1.png CHANGED
File without changes
assets/images/addons/acf.png CHANGED
File without changes
assets/images/addons/woocommerce.png CHANGED
File without changes
assets/images/arrow.png CHANGED
File without changes
assets/images/arrows.png CHANGED
File without changes
assets/images/border.png CHANGED
File without changes
assets/images/checkbox.png CHANGED
File without changes
assets/images/checkmark.png CHANGED
File without changes
assets/images/checkmark_single.png CHANGED
File without changes
assets/images/checkmark_white.png CHANGED
File without changes
assets/images/comment-grey-bubble.png CHANGED
File without changes
assets/images/comment_edit.png CHANGED
File without changes
assets/images/cross.png CHANGED
File without changes
assets/images/drag.png CHANGED
File without changes
assets/images/facebook.png CHANGED
File without changes
assets/images/get_the_addon.png CHANGED
File without changes
assets/images/help.png CHANGED
File without changes
assets/images/icon.png CHANGED
File without changes
assets/images/icon_20.png CHANGED
File without changes
assets/images/import_export.png CHANGED
File without changes
assets/images/info.png CHANGED
File without changes
assets/images/information.png CHANGED
File without changes
assets/images/layout_edit.png CHANGED
File without changes
assets/images/loading.gif CHANGED
File without changes
assets/images/more_info.png CHANGED
File without changes
assets/images/no.png CHANGED
File without changes
assets/images/order_arrow-rtl.png CHANGED
File without changes
assets/images/order_arrow.png CHANGED
File without changes
assets/images/settings.png CHANGED
File without changes
assets/images/sort.png CHANGED
File without changes
assets/images/square.png CHANGED
File without changes
assets/images/status.png CHANGED
File without changes
assets/images/switch_blue.png CHANGED
File without changes
assets/images/switch_bw.png CHANGED
File without changes
assets/images/trash.png CHANGED
File without changes
assets/images/twitter.png CHANGED
File without changes
assets/images/yes.png CHANGED
File without changes
assets/js/admin-columns.js CHANGED
File without changes
assets/js/admin-columns.min.js CHANGED
File without changes
assets/js/admin-settings.js CHANGED
File without changes
assets/js/admin-settings.min.js CHANGED
File without changes
assets/js/upgrade.js CHANGED
File without changes
assets/js/upgrade.min.js CHANGED
File without changes
assets/ui-theme/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_flat_75_ffffff_40x100.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_glass_55_fbf9ee_1x400.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_glass_65_ffffff_1x400.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_glass_75_dadada_1x400.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_glass_75_e6e6e6_1x400.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_glass_95_fef1ec_1x400.png CHANGED
File without changes
assets/ui-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png CHANGED
File without changes
assets/ui-theme/images/ui-icons_222222_256x240.png CHANGED
File without changes
assets/ui-theme/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
assets/ui-theme/images/ui-icons_454545_256x240.png CHANGED
File without changes
assets/ui-theme/images/ui-icons_888888_256x240.png CHANGED
File without changes
assets/ui-theme/images/ui-icons_cd0a0a_256x240.png CHANGED
File without changes
assets/ui-theme/jquery-ui-1.8.18.custom.css CHANGED
File without changes
classes/addons.php CHANGED
File without changes
classes/column.php CHANGED
File without changes
classes/column/acf-placeholder.php CHANGED
File without changes
classes/column/actions.php CHANGED
File without changes
classes/column/comment/ID.php CHANGED
File without changes
classes/column/comment/actions.php CHANGED
File without changes
classes/column/comment/agent.php CHANGED
File without changes
classes/column/comment/approved.php CHANGED
File without changes
classes/column/comment/author-avatar.php CHANGED
File without changes
classes/column/comment/author-email.php CHANGED
File without changes
classes/column/comment/author-ip.php CHANGED
File without changes
classes/column/comment/author-name.php CHANGED
File without changes
classes/column/comment/author-url.php CHANGED
File without changes
classes/column/comment/author.php CHANGED
File without changes
classes/column/comment/date-gmt.php CHANGED
File without changes
classes/column/comment/date.php CHANGED
File without changes
classes/column/comment/excerpt.php CHANGED
File without changes
classes/column/comment/reply-to.php CHANGED
File without changes
classes/column/comment/type.php CHANGED
File without changes
classes/column/comment/user.php CHANGED
File without changes
classes/column/comment/word-count.php CHANGED
File without changes
classes/column/custom-field.php CHANGED
File without changes
classes/column/default.php CHANGED
File without changes
classes/column/link/ID.php CHANGED
File without changes
classes/column/link/actions.php CHANGED
File without changes
classes/column/link/description.php CHANGED
File without changes
classes/column/link/image.php CHANGED
File without changes
classes/column/link/length.php CHANGED
File without changes
classes/column/link/notes.php CHANGED
File without changes
classes/column/link/owner.php CHANGED
File without changes
classes/column/link/rss.php CHANGED
File without changes
classes/column/link/target.php CHANGED
File without changes
classes/column/media/ID.php CHANGED
File without changes
classes/column/media/actions.php CHANGED
File without changes
classes/column/media/alternate-text.php CHANGED
File without changes
classes/column/media/attached-to.php CHANGED
File without changes
classes/column/media/available-sizes.php CHANGED
File without changes
classes/column/media/caption.php CHANGED
File without changes
classes/column/media/description.php CHANGED
File without changes
classes/column/media/dimensions.php CHANGED
File without changes
classes/column/media/exif-data.php CHANGED
File without changes
classes/column/media/file-name.php CHANGED
File without changes
classes/column/media/file-size.php CHANGED
File without changes
classes/column/media/full-path.php CHANGED
File without changes
classes/column/media/height.php CHANGED
File without changes
classes/column/media/mime-type.php CHANGED
File without changes
classes/column/media/width.php CHANGED
File without changes
classes/column/post/ID.php CHANGED
File without changes
classes/column/post/actions.php CHANGED
File without changes
classes/column/post/attachment-count.php CHANGED
File without changes
classes/column/post/attachment.php CHANGED
File without changes
classes/column/post/author-name.php CHANGED
File without changes
classes/column/post/before-moretag.php CHANGED
File without changes
classes/column/post/comment-count.php CHANGED
File without changes
classes/column/post/comment-status.php CHANGED
File without changes
classes/column/post/content.php CHANGED
File without changes
classes/column/post/date-published.php CHANGED
File without changes
classes/column/post/depth.php CHANGED
File without changes
classes/column/post/estimated-reading-time.php CHANGED
@@ -48,22 +48,26 @@ class CPAC_Column_Post_Estimated_Reading_Time extends CPAC_Column {
48
* @since 2.3.3
49
*/
50
public function convert_seconds_to_readable_time( $seconds ) {
51
-
52
- $minutes = floor( $seconds / 60 );
53
- $seconds = floor( $seconds % 60 );
54
-
55
- $time = $minutes;
56
- if ( $seconds < 10 ) {
57
- $seconds = '0' . $seconds;
58
- }
59
- if ( '00' != $seconds ) {
60
- $time .= ':' . $seconds;
61
- }
62
- if ( $minutes < 1 ) {
63
- $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'cpac' );
64
- }
65
- else {
66
- $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'cpac' );
67
}
68
69
return $time;
48
* @since 2.3.3
49
*/
50
public function convert_seconds_to_readable_time( $seconds ) {
51
+ $time = '&#8212;';
52
+
53
+ if ( $seconds ) {
54
+
55
+ $minutes = floor( $seconds / 60 );
56
+ $seconds = floor( $seconds % 60 );
57
+
58
+ $time = $minutes;
59
+ if ( $seconds < 10 ) {
60
+ $seconds = '0' . $seconds;
61
+ }
62
+ if ( '00' != $seconds ) {
63
+ $time .= ':' . $seconds;
64
+ }
65
+ if ( $minutes < 1 ) {
66
+ $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'cpac' );
67
+ }
68
+ else {
69
+ $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'cpac' );
70
+ }
71
}
72
73
return $time;
classes/column/post/excerpt.php CHANGED
File without changes
classes/column/post/featured-image.php CHANGED
File without changes
classes/column/post/formats.php CHANGED
File without changes
classes/column/post/last-modified-author.php CHANGED
File without changes
classes/column/post/modified.php CHANGED
File without changes
classes/column/post/order.php CHANGED
@@ -24,7 +24,7 @@ class CPAC_Column_Post_Order extends CPAC_Column {
24
* @since 2.0
25
*/
26
public function apply_conditional() {
27
- return is_post_type_hierarchical( $this->storage_model->key );
28
}
29
30
/**
24
* @since 2.0
25
*/
26
public function apply_conditional() {
27
+ return is_post_type_hierarchical( $this->storage_model->post_type ) || post_type_supports( $this->storage_model->post_type, 'page-attributes' );
28
}
29
30
/**
classes/column/post/page-template.php CHANGED
File without changes
classes/column/post/parent.php CHANGED
File without changes
classes/column/post/path.php CHANGED
File without changes
classes/column/post/permalink.php CHANGED
File without changes
classes/column/post/ping-status.php CHANGED
File without changes
classes/column/post/roles.php CHANGED
File without changes
classes/column/post/shortcodes.php CHANGED
File without changes
classes/column/post/slug.php CHANGED
File without changes
classes/column/post/status.php CHANGED
File without changes
classes/column/post/sticky.php CHANGED
File without changes
classes/column/post/title-raw.php CHANGED
File without changes
classes/column/post/word-count.php CHANGED
File without changes
classes/column/taxonomy.php CHANGED
File without changes
classes/column/used-by-menu.php CHANGED
File without changes
classes/column/user/ID.php CHANGED
File without changes
classes/column/user/actions.php CHANGED
File without changes
classes/column/user/comment-count.php CHANGED
File without changes
classes/column/user/description.php CHANGED
File without changes
classes/column/user/display-name.php CHANGED
File without changes
classes/column/user/first-name.php CHANGED
File without changes
classes/column/user/last-name.php CHANGED
File without changes
classes/column/user/nickname.php CHANGED
File without changes
classes/column/user/post-count.php CHANGED
File without changes
classes/column/user/registered.php CHANGED
File without changes
classes/column/user/rich-editing.php CHANGED
File without changes
classes/column/user/url.php CHANGED
File without changes
classes/review_notice.php CHANGED
File without changes
classes/settings.php CHANGED
File without changes
classes/storage_model.php CHANGED
File without changes
classes/storage_model/comment.php CHANGED
File without changes
classes/storage_model/link.php CHANGED
File without changes
classes/storage_model/media.php CHANGED
File without changes
classes/storage_model/post.php CHANGED
File without changes
classes/storage_model/user.php CHANGED
File without changes
classes/third_party.php CHANGED
File without changes
classes/upgrade.php CHANGED
File without changes
classes/utility.php CHANGED
File without changes
codepress-admin-columns.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
- Version: 2.4.4
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: http://www.admincolumns.com
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
}
33
34
// Plugin information
35
- define( 'CPAC_VERSION', '2.4.4' ); // Current plugin version
36
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
37
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
38
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
+ Version: 2.4.5
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: http://www.admincolumns.com
32
}
33
34
// Plugin information
35
+ define( 'CPAC_VERSION', '2.4.5' ); // Current plugin version
36
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
37
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
38
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
includes/arrays.php CHANGED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 3.5
6
Tested up to: 4.2.2
7
- Stable tag: 2.4.4
8
9
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
@@ -212,6 +212,10 @@ You can find a list of the available actions and filters (and examples on how to
212
213
== Changelog ==
214
215
= 2.4.4 =
216
* [Fixed] Support for custom post statuses
217
* [Fixed] Page Order column is now available on all hierarchical post types
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 3.5
6
Tested up to: 4.2.2
7
+ Stable tag: 2.4.5
8
9
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
212
213
== Changelog ==
214
215
+ = 2.4.5 =
216
+ * [Fixed] Estimate Time Reading column will not display a value when there is no content
217
+ * [Fixed] When updating there was a possbile change on a "Cannot modify header information"
218
+
219
= 2.4.4 =
220
* [Fixed] Support for custom post statuses
221
* [Fixed] Page Order column is now available on all hierarchical post types