Fixups for typo and unintended code.

This commit is contained in:
vedanshujain 2022-02-02 15:14:34 +05:30
parent 5308d5b10a
commit ad6c9a7099
3 changed files with 3 additions and 13 deletions

View File

@ -364,7 +364,7 @@ class WC_Install {
/** /**
* Verify if the table(s) already exists. * Verify if the table(s) already exists.
* *
* @param string $schema Schema definition to check agains. * @param string $schema Schema definition to check against.
* *
* return array List of missing tables. * return array List of missing tables.
*/ */

View File

@ -35,7 +35,7 @@ class FeatureController {
* *
* @var DataSyncrhonizer * @var DataSyncrhonizer
*/ */
public $data_synchronizer; private $data_synchronizer;
/** /**
* Is the feature visible? * Is the feature visible?

View File

@ -114,17 +114,7 @@ class OrdersTableDataStore extends \Abstract_WC_Order_Data_Store_CPT implements
* @param \WC_Order $order * @param \WC_Order $order
*/ */
public function create( &$order ) { public function create( &$order ) {
global $wpdb; throw new \Exception( 'Unimplemented' );
$order->set_version( Constants::get_constant( 'WC_VERSION' ) );
$order->set_currency( $order->get_currency() ? $order->get_currency() : get_woocommerce_currency() );
if ( ! $order->get_date_created( 'edit' ) ) {
$order->set_date_created( time() );
}
$table_name = $this->get_orders_table_name();
$insert_query = "
INSERT INTO $table_name ()
";
} }
public function update( &$order ) { public function update( &$order ) {