as3cf->is_pro_plugin_setup() ) { return false; } if ( false !== static::show_tool_constant() && constant( static::show_tool_constant() ) ) { return true; } return $this->is_active(); } /** * Get title text. * * @return string */ public function get_title_text() { return __( 'Analyze & Repair', 'amazon-s3-and-cloudfront' ); } /** * Get button text. * * @return string */ public function get_button_text() { return __( 'Analyze & Repair', 'amazon-s3-and-cloudfront' ); } /** * Get queued status text. * * @return string */ public function get_queued_status(): string { return __( 'Analyzing and repairing offload metadata.', 'amazon-s3-and-cloudfront' ); } /** * Get short queued status text. * * @return string */ public function get_short_queued_status(): string { return _x( 'Repairing…', 'Short tool running message', 'amazon-s3-and-cloudfront' ); } /** * Message for error notice * * @param string|null $message Optional message to override the default for the tool. * * @return string */ protected function get_error_notice_message( $message = null ) { $title = __( 'Analyze & Repair Errors', 'amazon-s3-and-cloudfront' ); $message = empty( $message ) ? __( 'Previous attempts at analyzing and repairing your offload metadata have resulted in errors.', 'amazon-s3-and-cloudfront' ) : $message; return sprintf( '%s — %s', $title, $message ); } }