Version Description
2016-9-22 * FIXED: Updated code triggering a fatal error for sites with older PHP versions.
Download this release
Release Info
Developer | 99robots |
Plugin | Header Footer Code Manager |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- 99robots-header-footer-code-manager.php +1 -1
- includes/hfcm-list.php +8 -8
- readme.txt +4 -1
99robots-header-footer-code-manager.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Header Footer Code Manager
|
5 |
Plugin URI: https://99robots.com/products
|
6 |
Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://99robots.com/"> official page</a>.
|
7 |
-
Version: 1.0.
|
8 |
Author: 99robots
|
9 |
Author URI: https://99robots.com/
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
4 |
Plugin Name: Header Footer Code Manager
|
5 |
Plugin URI: https://99robots.com/products
|
6 |
Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://99robots.com/"> official page</a>.
|
7 |
+
Version: 1.0.2
|
8 |
Author: 99robots
|
9 |
Author URI: https://99robots.com/
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
includes/hfcm-list.php
CHANGED
@@ -215,10 +215,10 @@ class hfcm_Snippets_List extends WP_List_Table {
|
|
215 |
|
216 |
$title = '<strong>' . $item['name'] . '</strong>';
|
217 |
|
218 |
-
$actions =
|
219 |
'edit' => sprintf('<a href="?page=%s&action=%s&id=%s&_wpnonce=%s">' . __('Edit', '99robots-header-footer-code-manager') . '</a>', esc_attr("hfcm-update"), 'edit', absint($item['script_id']), $edit_nonce),
|
220 |
'delete' => sprintf('<a href="?page=%s&action=%s&snippet=%s&_wpnonce=%s">' . __('Delete', '99robots-header-footer-code-manager') . '</a>', esc_attr($_REQUEST['page']), 'delete', absint($item['script_id']), $delete_nonce)
|
221 |
-
|
222 |
|
223 |
return $title . $this->row_actions($actions);
|
224 |
}
|
@@ -229,7 +229,7 @@ class hfcm_Snippets_List extends WP_List_Table {
|
|
229 |
* @return array
|
230 |
*/
|
231 |
function get_columns() {
|
232 |
-
$columns =
|
233 |
'cb' => '<input type="checkbox" />',
|
234 |
'script_id' => __('ID', '99robots-header-footer-code-manager'),
|
235 |
'status' => __('Status', '99robots-header-footer-code-manager'),
|
@@ -238,7 +238,7 @@ class hfcm_Snippets_List extends WP_List_Table {
|
|
238 |
'location' => __('Location', '99robots-header-footer-code-manager'),
|
239 |
'device_type' => __('Devices', '99robots-header-footer-code-manager'),
|
240 |
'shortcode' => __('Shortcode', '99robots-header-footer-code-manager')
|
241 |
-
|
242 |
|
243 |
return $columns;
|
244 |
}
|
@@ -263,11 +263,11 @@ class hfcm_Snippets_List extends WP_List_Table {
|
|
263 |
* @return array
|
264 |
*/
|
265 |
public function get_bulk_actions() {
|
266 |
-
$actions =
|
267 |
'bulk-activate' => __('Activate', '99robots-header-footer-code-manager'),
|
268 |
'bulk-deactivate' => __('Deactivate', '99robots-header-footer-code-manager'),
|
269 |
'bulk-delete' => __('Remove', '99robots-header-footer-code-manager'),
|
270 |
-
|
271 |
|
272 |
return $actions;
|
273 |
}
|
@@ -292,10 +292,10 @@ class hfcm_Snippets_List extends WP_List_Table {
|
|
292 |
$current_page = $this->get_pagenum();
|
293 |
$total_items = self::record_count();
|
294 |
|
295 |
-
$this->set_pagination_args(
|
296 |
'total_items' => $total_items, //WE have to calculate the total number of items
|
297 |
'per_page' => $per_page //WE have to determine how many items to show on a page
|
298 |
-
|
299 |
|
300 |
$this->items = self::get_snippets($per_page, $current_page, $customvar);
|
301 |
}
|
215 |
|
216 |
$title = '<strong>' . $item['name'] . '</strong>';
|
217 |
|
218 |
+
$actions = array(
|
219 |
'edit' => sprintf('<a href="?page=%s&action=%s&id=%s&_wpnonce=%s">' . __('Edit', '99robots-header-footer-code-manager') . '</a>', esc_attr("hfcm-update"), 'edit', absint($item['script_id']), $edit_nonce),
|
220 |
'delete' => sprintf('<a href="?page=%s&action=%s&snippet=%s&_wpnonce=%s">' . __('Delete', '99robots-header-footer-code-manager') . '</a>', esc_attr($_REQUEST['page']), 'delete', absint($item['script_id']), $delete_nonce)
|
221 |
+
);
|
222 |
|
223 |
return $title . $this->row_actions($actions);
|
224 |
}
|
229 |
* @return array
|
230 |
*/
|
231 |
function get_columns() {
|
232 |
+
$columns = array(
|
233 |
'cb' => '<input type="checkbox" />',
|
234 |
'script_id' => __('ID', '99robots-header-footer-code-manager'),
|
235 |
'status' => __('Status', '99robots-header-footer-code-manager'),
|
238 |
'location' => __('Location', '99robots-header-footer-code-manager'),
|
239 |
'device_type' => __('Devices', '99robots-header-footer-code-manager'),
|
240 |
'shortcode' => __('Shortcode', '99robots-header-footer-code-manager')
|
241 |
+
);
|
242 |
|
243 |
return $columns;
|
244 |
}
|
263 |
* @return array
|
264 |
*/
|
265 |
public function get_bulk_actions() {
|
266 |
+
$actions = array(
|
267 |
'bulk-activate' => __('Activate', '99robots-header-footer-code-manager'),
|
268 |
'bulk-deactivate' => __('Deactivate', '99robots-header-footer-code-manager'),
|
269 |
'bulk-delete' => __('Remove', '99robots-header-footer-code-manager'),
|
270 |
+
);
|
271 |
|
272 |
return $actions;
|
273 |
}
|
292 |
$current_page = $this->get_pagenum();
|
293 |
$total_items = self::record_count();
|
294 |
|
295 |
+
$this->set_pagination_args(array(
|
296 |
'total_items' => $total_items, //WE have to calculate the total number of items
|
297 |
'per_page' => $per_page //WE have to determine how many items to show on a page
|
298 |
+
));
|
299 |
|
300 |
$this->items = self::get_snippets($per_page, $current_page, $customvar);
|
301 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: 99robots, charliepatel
|
|
3 |
Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.6.1
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
@@ -98,6 +98,9 @@ A. If your script is not supported, just let us know and we'll look into it imme
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
101 |
= 1.0.1 = 2016-9-20
|
102 |
* FIXED: Updated code triggering a fatal error for sites with older PHP versions; now compatible.
|
103 |
|
3 |
Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.6.1
|
6 |
+
Stable tag: 1.0.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 1.0.2 = 2016-9-22
|
102 |
+
* FIXED: Updated code triggering a fatal error for sites with older PHP versions.
|
103 |
+
|
104 |
= 1.0.1 = 2016-9-20
|
105 |
* FIXED: Updated code triggering a fatal error for sites with older PHP versions; now compatible.
|
106 |
|