projects
/
WP-Plugins
/
glm-serverstats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0311db5
)
Initialize some variables
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 20 Dec 2018 18:07:37 +0000
(13:07 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 20 Dec 2018 18:07:37 +0000
(13:07 -0500)
For getting rid of php notices
setup/adminHooks.php
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
aab7534
..
ca49aff
100644
(file)
--- a/
setup/adminHooks.php
+++ b/
setup/adminHooks.php
@@
-99,6
+99,9
@@
if ( $user_is_admin || $user_is_editor ) {
$response = wp_remote_get( GLM_SERVERSTATS_PLUGIN_RELAY_URL . '&option=latest' );
$message_data = wp_remote_retrieve_body( $response );
$status = wp_remote_retrieve_response_code( $response);
+ // Initialize variables
+ $title = $dashboard_message = $current_time = '';
+ $id = $updated = false;
// If we get a good response.
if ( $status == 200 ) {