Skip to content

Commit 5f7b29e

Browse files
authored
Merge pull request #235 from codepress/release/3.2.7
Release/3.2.7
2 parents 03f166b + 98b0d46 commit 5f7b29e

22 files changed

+44
-30
lines changed

assets/js/admin-page-columns.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin-page-columns.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/AdminColumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function get_version_key() {
179179
* @return string
180180
*/
181181
public function get_version() {
182-
return '3.2.6';
182+
return '3.2.7';
183183
}
184184

185185
/**

classes/Column/Post/Title.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@ public function __construct() {
1414
$this->set_type( 'title' );
1515
}
1616

17-
public function is_valid() {
18-
return post_type_supports( $this->get_post_type(), 'title' );
19-
}
20-
2117
}

classes/ListScreen.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,14 +744,16 @@ public function store( $column_data ) {
744744
}
745745

746746
// Encode site url
747-
if ( $setting = $column->get_setting( 'label' ) ) {
747+
$setting = $column->get_setting( 'label' );
748+
749+
if ( $setting ) {
748750
$sanitized[ $setting->get_name() ] = $setting->get_encoded_label();
749751
}
750752

751753
$settings[ $column_name ] = array_merge( $options, $sanitized );
752754
}
753755

754-
$result = update_option( self::OPTIONS_KEY . $this->get_storage_key(), $settings );
756+
$result = update_option( self::OPTIONS_KEY . $this->get_storage_key(), $settings, false );
755757

756758
if ( ! $result ) {
757759
return new WP_Error( 'same-settings' );
@@ -820,7 +822,7 @@ private function get_default_key() {
820822
* @return bool
821823
*/
822824
public function save_default_headings( $column_headings ) {
823-
return update_option( $this->get_default_key(), $column_headings );
825+
return update_option( $this->get_default_key(), $column_headings, false );
824826
}
825827

826828
/**

classes/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function update_stored_version( $version = null ) {
123123
$version = $this->get_version();
124124
}
125125

126-
return update_option( $this->get_version_key(), $version );
126+
return update_option( $this->get_version_key(), $version, false );
127127
}
128128

129129
/**

classes/Plugin/Update/V3007.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function update_roles_column() {
5555
}
5656

5757
if ( $update ) {
58-
update_option( $row->option_name, $options );
58+
update_option( $row->option_name, $options, false );
5959
}
6060
}
6161
}

classes/Storage/Option.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function __construct( $key ) {
1818
* @return mixed
1919
*/
2020
public function get() {
21+
wp_cache_delete( $this->key, 'options' );
22+
2123
return get_option( $this->key );
2224
}
2325

codepress-admin-columns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
/*
33
Plugin Name: Admin Columns
4-
Version: 3.2.6
4+
Version: 3.2.7
55
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.
66
Author: AdminColumns.com
77
Author URI: https://www.admincolumns.com
88
Plugin URI: https://www.admincolumns.com
9-
Requires PHP: 5.3
9+
Requires PHP: 5.3.6
1010
Text Domain: codepress-admin-columns
1111
Domain Path: /languages
1212
License: GPL v3
96 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)