Admin Columns - Version 1.4.8

Version Description

  • fixed bug: removed acf posttype placed by Advaced Custom Fields from settings menu
  • fixed bug: removed bbPress posttypes topic, forum and reply from admin columns settings menu
  • fixed bug: license key could not activate properly
Download this release

Release Info

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

Code changes from version 1.4.7 to 1.4.8

classes/license.php CHANGED
@@ -7,7 +7,7 @@ class cpac_licence
7
  *
8
  * @var string $type
9
  */
10
- private $type;
11
 
12
  public function __construct($type)
13
  {
@@ -29,14 +29,14 @@ class cpac_licence
29
  *
30
  * @since 1.3.3
31
  */
32
- private function check_remote_key( $key )
33
  {
34
  if ( empty( $key ) ) {
35
  return false;
36
  }
37
 
38
  // check key with remote API
39
- $response = wp_remote_post( $this->api_url, array(
40
  'body' => array(
41
  'api' => 'addon',
42
  'key' => $key,
@@ -67,7 +67,7 @@ class cpac_licence
67
  *
68
  * @since 1.3
69
  */
70
- private function get_license_key()
71
  {
72
  return get_option("cpac_{$this->type}_ac");
73
  }
@@ -77,7 +77,7 @@ class cpac_licence
77
  *
78
  * @since 1.3
79
  */
80
- private function set_license_key( $key )
81
  {
82
  update_option( "cpac_{$this->type}_ac", trim( $key ) );
83
  }
@@ -87,7 +87,7 @@ class cpac_licence
87
  *
88
  * @since 1.3.1
89
  */
90
- private function remove_license_key()
91
  {
92
  delete_option( "cpac_{$this->type}_ac" );
93
  delete_transient("cpac_{$this->type}_trnsnt");
7
  *
8
  * @var string $type
9
  */
10
+ public $type;
11
 
12
  public function __construct($type)
13
  {
29
  *
30
  * @since 1.3.3
31
  */
32
+ public function check_remote_key( $key )
33
  {
34
  if ( empty( $key ) ) {
35
  return false;
36
  }
37
 
38
  // check key with remote API
39
+ $response = wp_remote_post( 'http://www.codepress.nl/', array(
40
  'body' => array(
41
  'api' => 'addon',
42
  'key' => $key,
67
  *
68
  * @since 1.3
69
  */
70
+ public function get_license_key()
71
  {
72
  return get_option("cpac_{$this->type}_ac");
73
  }
77
  *
78
  * @since 1.3
79
  */
80
+ public function set_license_key( $key )
81
  {
82
  update_option( "cpac_{$this->type}_ac", trim( $key ) );
83
  }
87
  *
88
  * @since 1.3.1
89
  */
90
+ public function remove_license_key()
91
  {
92
  delete_option( "cpac_{$this->type}_ac" );
93
  delete_transient("cpac_{$this->type}_trnsnt");
classes/utility.php CHANGED
@@ -22,4 +22,36 @@ function pre_load_wordpress_seo_class_metabox()
22
  require_once WPSEO_PATH.'admin/class-metabox.php';
23
  }
24
  }
25
- add_action( 'plugins_loaded', 'pre_load_wordpress_seo_class_metabox', 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  require_once WPSEO_PATH.'admin/class-metabox.php';
23
  }
24
  }
25
+ add_action( 'plugins_loaded', 'pre_load_wordpress_seo_class_metabox', 0 );
26
+
27
+ /**
28
+ * Fix which remove the Advanced Custom Fields Type (acf) from the admin columns settings page
29
+ *
30
+ * @since 1.5
31
+ */
32
+ function remove_acf_from_cpac_post_types( $post_types )
33
+ {
34
+ if ( class_exists('Acf') ) {
35
+ unset( $post_types['acf'] );
36
+ }
37
+
38
+ return $post_types;
39
+ }
40
+ add_filter( 'cpac-get-post-types', 'remove_acf_from_cpac_post_types' );
41
+
42
+ /**
43
+ * Fix which removes bbPress Posttypes ( forum, reply and topic ) from the admin columns settings page
44
+ *
45
+ * @since 1.5
46
+ */
47
+ function remove_bbpress_from_cpac_post_types( $post_types )
48
+ {
49
+ if ( class_exists('bbPress') ) {
50
+ unset( $post_types['topic'] );
51
+ unset( $post_types['reply'] );
52
+ unset( $post_types['forum'] );
53
+ }
54
+
55
+ return $post_types;
56
+ }
57
+ add_filter( 'cpac-get-post-types', 'remove_bbpress_from_cpac_post_types' );
codepress-admin-columns.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
 
4
  Plugin Name: Codepress Admin Columns
5
- Version: 1.4.7
6
  Description: Customise 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.codepress.nl
@@ -27,7 +27,7 @@ along with this program; if not, write to the Free Software
27
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  */
29
 
30
- define( 'CPAC_VERSION', '1.4.7' );
31
  define( 'CPAC_TEXTDOMAIN', 'codepress-admin-columns' );
32
  define( 'CPAC_SLUG', 'codepress-admin-columns' );
33
  define( 'CPAC_URL', plugins_url('', __FILE__) );
@@ -62,7 +62,6 @@ class Codepress_Admin_Columns
62
  private $post_types,
63
  $codepress_url,
64
  $wordpress_url,
65
- $api_url,
66
  $admin_page,
67
  $use_hidden_custom_fields;
68
 
@@ -73,8 +72,6 @@ class Codepress_Admin_Columns
73
  */
74
  function __construct()
75
  {
76
- $this->api_url = 'http://www.codepress.nl/';
77
-
78
  // wp is loaded
79
  add_action( 'wp_loaded', array( $this, 'init') );
80
  }
2
  /*
3
 
4
  Plugin Name: Codepress Admin Columns
5
+ Version: 1.4.8
6
  Description: Customise 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.codepress.nl
27
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  */
29
 
30
+ define( 'CPAC_VERSION', '1.4.8' );
31
  define( 'CPAC_TEXTDOMAIN', 'codepress-admin-columns' );
32
  define( 'CPAC_SLUG', 'codepress-admin-columns' );
33
  define( 'CPAC_URL', plugins_url('', __FILE__) );
62
  private $post_types,
63
  $codepress_url,
64
  $wordpress_url,
 
65
  $admin_page,
66
  $use_hidden_custom_fields;
67
 
72
  */
73
  function __construct()
74
  {
 
 
75
  // wp is loaded
76
  add_action( 'wp_loaded', array( $this, 'init') );
77
  }
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.1
6
  Tested up to: 3.5
7
- Stable tag: 1.4.7
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,11 @@ add_filter( 'cpac_get_column_value_custom_field', 'my_custom_field_value', 10, 5
246
 
247
  == Changelog ==
248
 
 
 
 
 
 
249
  = 1.4.7 =
250
  * ready for WP 3.5
251
  * added support for custom fields for Media
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.1
6
  Tested up to: 3.5
7
+ Stable tag: 1.4.8
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
+ = 1.4.8 =
250
+ * fixed bug: removed acf posttype placed by Advaced Custom Fields from settings menu
251
+ * fixed bug: removed bbPress posttypes topic, forum and reply from admin columns settings menu
252
+ * fixed bug: license key could not activate properly
253
+
254
  = 1.4.7 =
255
  * ready for WP 3.5
256
  * added support for custom fields for Media