Admin Columns - Version 2.5.6.1

Version Description

  • [Fixed] Column settings were no longer available
Download this release

Release Info

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

Code changes from version 2.5.6 to 2.5.6.1

classes/storage_model.php CHANGED
@@ -514,36 +514,18 @@ abstract class CPAC_Storage_Model {
514
515
public function init_layout() {
516
517
- // skip when layout is already set
518
if ( $this->get_layout() ) {
519
return;
520
}
521
522
- $layout_id = null;
523
524
- if ( $layouts_current_user = $this->get_layouts_for_current_user() ) {
525
- $layout_preference = $this->get_user_layout_preference();
526
-
527
- // try user preference..
528
- foreach ( $layouts_current_user as $_layout ) {
529
- if ( $_layout->id === $layout_preference ) {
530
- $layout_id = $_layout->id;
531
- break;
532
- }
533
- }
534
-
535
- // when no longer available use the first user layout
536
- if ( ! $layout_id ) {
537
- $_layouts_current_user = array_values( $layouts_current_user );
538
- $layout_id = $_layouts_current_user[0]->id;
539
- }
540
}
541
542
- // use default WordPress layout
543
- //else {
544
- // $layout_id = '_wp_default_'; // layout does not exists and therefor WP default columns will be loaded
545
- //}
546
-
547
$this->set_layout( $layout_id );
548
}
549
514
515
public function init_layout() {
516
517
if ( $this->get_layout() ) {
518
return;
519
}
520
521
+ // try user preference..
522
+ $layout_id = $this->get_user_layout_preference();
523
524
+ // ..when not found use the first one
525
+ if ( ! $this->layout_exists( $layout_id ) ) {
526
+ $layout_id = $this->get_single_layout_id();
527
}
528
529
$this->set_layout( $layout_id );
530
}
531
codepress-admin-columns.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
- Version: 2.5.6
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: https://www.admincolumns.com
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
}
33
34
// Plugin information
35
- define( 'CPAC_VERSION', '2.5.6' ); // 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.5.6.1
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: https://www.admincolumns.com
32
}
33
34
// Plugin information
35
+ define( 'CPAC_VERSION', '2.5.6.1' ); // 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__ ) );
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.5.1
7
- Stable tag: 2.5.6
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
@@ -210,6 +210,9 @@ You can find a list of the available actions and filters (and examples on how to
210
211
== Changelog ==
212
213
= 2.5.6 =
214
* [Fixed] Row actions are now only added to the first column when the primary column isn't available
215
* [Fixed] The true/false field option for the Custom Field column will display a cross icon when the value is empty or zero
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.5.1
7
+ Stable tag: 2.5.6.1
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
210
211
== Changelog ==
212
213
+ = 2.5.6.1 =
214
+ * [Fixed] Column settings were no longer available
215
+
216
= 2.5.6 =
217
* [Fixed] Row actions are now only added to the first column when the primary column isn't available
218
* [Fixed] The true/false field option for the Custom Field column will display a cross icon when the value is empty or zero