Admin Columns - Version 2.2.3

Version Description

  • [Added] Added Path column for post(types). Uses the permalink without the home url.
Download this release

Release Info

Developer tschutter
Plugin Icon 128x128 Admin Columns
Version 2.2.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

classes/column/post/path.php ADDED
@@ -0,0 +1,37 @@
1
+ <?php
2
+ /**
3
+ *
4
+ * @since 2.0
5
+ */
6
+ class CPAC_Column_Post_Path extends CPAC_Column {
7
+
8
+ /**
9
+ * @see CPAC_Column::init()
10
+ * @since 2.3
11
+ */
12
+ public function init() {
13
+
14
+ parent::init();
15
+
16
+ // Properties
17
+ $this->properties['type'] = 'column-path';
18
+ $this->properties['label'] = __( 'Path', 'cpac' );
19
+ }
20
+
21
+ /**
22
+ * @see CPAC_Column::get_value()
23
+ * @since 2.0
24
+ */
25
+ public function get_value( $post_id ) {
26
+
27
+ return $this->get_raw_value( $post_id );
28
+ }
29
+
30
+ /**
31
+ * @see CPAC_Column::get_value()
32
+ * @since 2.0.3
33
+ */
34
+ public function get_raw_value( $post_id ) {
35
+ return str_replace( home_url(), '', get_permalink( $post_id ) );
36
+ }
37
+ }
classes/storage_model.php CHANGED
@@ -490,7 +490,7 @@ abstract class CPAC_Storage_Model {
490
$grouptypes = array();
491
492
foreach ( $columns as $index => $column ) {
493
- if ( $index && $column->properties->group == $group ) {
494
$grouptypes[ $index ] = $column;
495
unset( $columns[ $index ] );
496
}
490
$grouptypes = array();
491
492
foreach ( $columns as $index => $column ) {
493
+ if ( $column->properties->group == $group ) {
494
$grouptypes[ $index ] = $column;
495
unset( $columns[ $index ] );
496
}
codepress-admin-columns.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
4
Plugin Name: Codepress Admin Columns
5
- Version: 2.2.2
6
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.
7
Author: Codepress
8
Author URI: http://www.codepresshq.com
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
33
}
34
35
// Plugin information
36
- define( 'CPAC_VERSION', '2.2.2' ); // current plugin version
37
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
38
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
39
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
2
/*
3
4
Plugin Name: Codepress Admin Columns
5
+ Version: 2.2.3
6
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.
7
Author: Codepress
8
Author URI: http://www.codepresshq.com
33
}
34
35
// Plugin information
36
+ define( 'CPAC_VERSION', '2.2.3' ); // current plugin version
37
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
38
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
39
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
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: 3.9.1
7
- Stable tag: 2.2.2
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
@@ -246,6 +246,9 @@ You can find a list of the available actions and filters (and examples on how to
246
247
== Changelog ==
248
249
= 2.2.2 =
250
* [Fixed] Custom Fields for Media Library did not work.
251
* [Fixed] Column type dropdown displayed an empty item.
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: 3.9.1
7
+ Stable tag: 2.2.3
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
246
247
== Changelog ==
248
249
+ = 2.2.3 =
250
+ * [Added] Added Path column for post(types). Uses the permalink without the home url.
251
+
252
= 2.2.2 =
253
* [Fixed] Custom Fields for Media Library did not work.
254
* [Fixed] Column type dropdown displayed an empty item.