Initialize some variables
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Dec 2018 18:07:37 +0000 (13:07 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Dec 2018 18:07:37 +0000 (13:07 -0500)
For getting rid of php notices

setup/adminHooks.php

index aab7534..ca49aff 100644 (file)
@@ -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 ) {