You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( empty( $client_ip ) && $this->is_stream_screen() ) {
227
+
$this->notice( __( 'Stream plugin can\'t determine a reliable client IP address! Please update the hosting environment to set the $_SERVER[\'REMOTE_ADDR\'] variable or use the wp_stream_client_ip_address filter to specify the verified client IP address!', 'stream' ) );
228
+
}
223
229
}
224
230
225
231
/**
@@ -541,9 +547,10 @@ public function is_stream_screen() {
541
547
returntrue;
542
548
}
543
549
544
-
$screen = get_current_screen();
545
-
if ( Alerts::POST_TYPE === $screen->post_type ) {
546
-
returntrue;
550
+
if ( is_admin() && function_exists( 'get_current_screen' ) ) {
0 commit comments