Admin Columns - Version 2.2.6.1

Version Description

  • [Fixed] Fixed dependency on PHP 5.3+ in actions column
Download this release

Release Info

Developer engelen
Plugin Icon 128x128 Admin Columns
Version 2.2.6.1
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.6.1

README.md DELETED
File without changes
classes/column/actions.php CHANGED
@@ -114,9 +114,7 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
114
  $link = preg_replace( '/class=["\'](.*?)["\']/', 'class="$1 cpac-tip button cpac-button-action dashicons hide-content dashicons-' . $icons[ $action ] . '"', $link, 1 );
115
 
116
  // Add tooltip title
117
- $link = preg_replace_callback( '/>(.*?)<\/a>/', function( $matches ) {
118
- return ' data-tip="' . esc_attr( $matches[1] ) . '">' . $matches[1] . '</a>';
119
- }, $link );
120
 
121
  $actions[ $action ] = $link;
122
  }
@@ -125,6 +123,19 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
125
  return $actions;
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  /**
129
  * Get a list of action names and their corresponding dashicons.
130
  *
114
  $link = preg_replace( '/class=["\'](.*?)["\']/', 'class="$1 cpac-tip button cpac-button-action dashicons hide-content dashicons-' . $icons[ $action ] . '"', $link, 1 );
115
 
116
  // Add tooltip title
117
+ $link = preg_replace_callback( '/>(.*?)<\/a>/', array( $this, 'add_link_tooltip' ), $link );
 
 
118
 
119
  $actions[ $action ] = $link;
120
  }
123
  return $actions;
124
  }
125
 
126
+ /**
127
+ * Add the tooltip data attribute to the link
128
+ * Callback for preg_replace_callback
129
+ *
130
+ * @since 2.2.6.1
131
+ *
132
+ * @param array $matches Matches information from preg_replace_callback
133
+ * @return string Link part with tooltip attribute
134
+ */
135
+ public function add_link_tooltip( $matches ) {
136
+ return ' data-tip="' . esc_attr( $matches[1] ) . '">' . $matches[1] . '</a>';
137
+ }
138
+
139
  /**
140
  * Get a list of action names and their corresponding dashicons.
141
  *
codepress-admin-columns.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
 
4
  Plugin Name: Codepress Admin Columns
5
- Version: 2.2.6
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.6' ); // 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.6.1
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.6.1' ); // 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.2
7
- Stable tag: 2.2.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
 
@@ -248,6 +248,9 @@ You can find a list of the available actions and filters (and examples on how to
248
 
249
  == Changelog ==
250
 
 
 
 
251
  = 2.2.6 =
252
  * [Changed] Display "edit columns" button by default
253
  * [Improved] Improved memory usage by only loading columns for the current screen
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.2
7
+ Stable tag: 2.2.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
 
248
 
249
  == Changelog ==
250
 
251
+ = 2.2.6.1 =
252
+ * [Fixed] Fixed dependency on PHP 5.3+ in actions column
253
+
254
  = 2.2.6 =
255
  * [Changed] Display "edit columns" button by default
256
  * [Improved] Improved memory usage by only loading columns for the current screen