* * @return string The content of the HTML comment */ $comment = apply_filters('wp_stream_frontend_indicator', $comment); if (!empty($comment)) { echo sprintf("<!-- %s -->\n", esc_html($comment)); // xss ok } } /** * Return active instance of WP_Stream, create one if it doesn't exist * * @return WP_Stream */ public static function get_instance() { if (empty(self::$instance)) { $class = __CLASS__; self::$instance = new $class(); } return self::$instance; } } if (!WP_Stream::is_valid_php_version()) { WP_Stream::fail_php_version(); } elseif (WP_Stream::deprecated_plugins_exist()) { WP_Stream::deprecated_plugins_notice(); } else { $GLOBALS['wp_stream'] = WP_Stream::get_instance(); } register_deactivation_hook(__FILE__, array('WP_Stream_Admin', 'remove_api_authentication'));