con['url'] ) . '" data-beacon-article="' . esc_attr( $firewall_beacon['id'] ) . '" rel="noopener noreferrer" target="_blank">', '' ); $security_message = __( '- In the security plugin, if you are using one', 'rocket' ); $firewall_message = __( "- In the server's firewall. Your host can help you with this", 'rocket' ); $message = "WP Rocket: $main_message"; rocket_notice_html( [ 'status' => 'error', 'message' => $message, 'dismissible' => '', 'id' => 'rocket-notice-rucss-error-http', 'dismiss_button' => 'rucss_error_notice', 'dismiss_button_class' => 'button-primary', ] ); } /** * Is the error notice present. * * @return bool */ public function has_saas_error_notice() { return (bool) get_transient( 'wp_rocket_rucss_errors_count' ); } /** * Display a notice on table missing. * * @return void */ public function display_no_table_notice() { if ( ! $this->can_display_notice() ) { return; } if ( $this->used_css->exists() ) { return; } // translators: %1$s = plugin name, %2$s = table name, %3$s = open tag, %4$s = closing tag. $main_message = esc_html__( '%1$s: Could not create the %2$s table in the database which is necessary for the Remove Unused CSS feature to work. Please reach out to %3$sour support%4$s.', 'rocket' ); $message = sprintf( // translators: %1$s = plugin name, %2$s = table name, %3$s = open tag, %4$s = closing tag. $main_message, 'WP Rocket', $this->used_css->get_name(), '', '' ); rocket_notice_html( [ 'status' => 'error', 'dismissible' => '', 'message' => $message, 'id' => 'rocket-notice-rucss-missing-table', ] ); } /** * Get support URL. * * @return string */ protected function get_support_url() { return rocket_get_external_url( 'support', [ 'utm_source' => 'wp_plugin', 'utm_medium' => 'wp_rocket', ] ); } }