migration_status = $migration_status; $this->options_helper = $options_helper; } /** * Runs the health check. Checks if the tagline is set to WordPress' default tagline, or to its set translation. * * @return void */ public function run() { if ( ! $this->should_run() ) { return; } $this->links_table_accessible = $this->migration_status->is_version( 'free', \WPSEO_VERSION ); } /** * Determines whether the health check should run or not. * * @return bool True if the text link counter feature is enabled. */ public function should_run() { $text_link_counter_enabled = $this->options_helper->get( 'enable_text_link_counter' ); if ( ! \is_bool( $text_link_counter_enabled ) ) { return false; } return $text_link_counter_enabled; } /** * Returns true if the links table is accessible * * @return bool The boolean indicating if the health check was succesful. */ public function is_successful() { return $this->links_table_accessible; } }