Use `_` instead of `-` as per convention.

This commit is contained in:
vedanshujain 2020-06-04 20:33:38 +05:30
parent 6afbed0c14
commit 4fce106f14
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ defined( 'ABSPATH' ) || exit;
<p>
<?php
$verify_db_tool_available = array_key_exists( 'verify_db_tables', WC_Admin_Status::get_tools() );
$missing_tables = get_option( 'woocommerce-schema-missing-tables' );
$missing_tables = get_option( 'woocommerce_schema_missing_tables' );
if ( $verify_db_tool_available ) {
echo wp_kses_post(
sprintf(

View File

@ -330,13 +330,13 @@ class WC_Install {
if ( $modify_notice ) {
WC_Admin_Notices::add_notice( 'base_tables_missing' );
}
update_option( 'woocommerce-schema-missing-tables', $missing_tables );
update_option( 'woocommerce_schema_missing_tables', $missing_tables );
} else {
if ( $modify_notice ) {
WC_Admin_Notices::remove_notice( 'base_tables_missing' );
}
update_option( 'woocommerce-schema-version', WC()->version );
delete_option( 'woocommerce-schema-missing-tables' );
update_option( 'woocommerce_schema_version', WC()->version );
delete_option( 'woocommerce_schema_missing_tables' );
}
return $missing_tables;
}