Version Description
2019-01-07 * FIXED: Warning - Unexpected Output - headers already sent
Download this release
Release Info
Developer | 99robots |
Plugin | Header Footer Code Manager |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- 99robots-header-footer-code-manager.php +15 -2
- readme.txt +4 -1
99robots-header-footer-code-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Header Footer Code Manager
|
4 |
* Plugin URI: https://99robots.com/products
|
5 |
* 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>.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: 99robots
|
8 |
* Author URI: https://99robots.com/
|
9 |
* Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -199,9 +199,18 @@ function hfcm_add_plugin_page_settings_link( $links ) {
|
|
199 |
|
200 |
// Create the Admin Notice
|
201 |
function hfcm_review_push_notice() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
$user_id = get_current_user_id();
|
203 |
// Check if current user has already dismissed it
|
204 |
-
|
|
|
205 |
?>
|
206 |
<div id="hfcm-message" class="notice notice-success">
|
207 |
<a class="hfcm-dismiss-alert notice-dismiss" href="?hfcm-admin-notice-dismissed">Dismiss</a>
|
@@ -218,6 +227,10 @@ function hfcm_plugin_notice_dismissed() {
|
|
218 |
// Checking if user clicked on the Dismiss button
|
219 |
if ( isset( $_GET['hfcm-admin-notice-dismissed'] ) ){
|
220 |
add_user_meta( $user_id, 'hfcm_plugin_notice_dismissed', 'true', true );
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
}
|
223 |
add_action( 'admin_init', 'hfcm_plugin_notice_dismissed' );
|
3 |
* Plugin Name: Header Footer Code Manager
|
4 |
* Plugin URI: https://99robots.com/products
|
5 |
* 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>.
|
6 |
+
* Version: 1.1.2
|
7 |
* Author: 99robots
|
8 |
* Author URI: https://99robots.com/
|
9 |
* Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
199 |
|
200 |
// Create the Admin Notice
|
201 |
function hfcm_review_push_notice() {
|
202 |
+
|
203 |
+
$allowed_pages_notices = array(
|
204 |
+
'toplevel_page_hfcm-list',
|
205 |
+
'hfcm_page_hfcm-create',
|
206 |
+
'admin_page_hfcm-update',
|
207 |
+
);
|
208 |
+
$screen = get_current_screen()->id;
|
209 |
+
|
210 |
$user_id = get_current_user_id();
|
211 |
// Check if current user has already dismissed it
|
212 |
+
|
213 |
+
if ( !get_user_meta( $user_id, 'hfcm_plugin_notice_dismissed') && in_array($screen, $allowed_pages_notices)) {
|
214 |
?>
|
215 |
<div id="hfcm-message" class="notice notice-success">
|
216 |
<a class="hfcm-dismiss-alert notice-dismiss" href="?hfcm-admin-notice-dismissed">Dismiss</a>
|
227 |
// Checking if user clicked on the Dismiss button
|
228 |
if ( isset( $_GET['hfcm-admin-notice-dismissed'] ) ){
|
229 |
add_user_meta( $user_id, 'hfcm_plugin_notice_dismissed', 'true', true );
|
230 |
+
// Redirect to original page the user was on
|
231 |
+
$current_url = wp_get_referer();
|
232 |
+
wp_redirect($current_url);
|
233 |
+
exit;
|
234 |
}
|
235 |
}
|
236 |
add_action( 'admin_init', 'hfcm_plugin_notice_dismissed' );
|
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: 5.0.2
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
@@ -107,6 +107,9 @@ A. If your script is not supported, just let us know and we'll look into it imme
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
110 |
= 1.1.1 = 2018-12-31
|
111 |
* FIXED: Warning - Unexpected Output - headers already sent
|
112 |
|
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: 5.0.2
|
6 |
+
Stable tag: 1.1.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.1.2 = 2019-01-07
|
111 |
+
* FIXED: Warning - Unexpected Output - headers already sent
|
112 |
+
|
113 |
= 1.1.1 = 2018-12-31
|
114 |
* FIXED: Warning - Unexpected Output - headers already sent
|
115 |
|