Fixups for typo and unintended code.
This commit is contained in:
parent
5308d5b10a
commit
ad6c9a7099
|
@ -364,7 +364,7 @@ class WC_Install {
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
|
|
@ -35,7 +35,7 @@ class FeatureController {
|
|||
*
|
||||
* @var DataSyncrhonizer
|
||||
*/
|
||||
public $data_synchronizer;
|
||||
private $data_synchronizer;
|
||||
|
||||
/**
|
||||
* Is the feature visible?
|
||||
|
|
|
@ -114,17 +114,7 @@ class OrdersTableDataStore extends \Abstract_WC_Order_Data_Store_CPT implements
|
|||
* @param \WC_Order $order
|
||||
*/
|
||||
public function create( &$order ) {
|
||||
global $wpdb;
|
||||
$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 ()
|
||||
";
|
||||
throw new \Exception( 'Unimplemented' );
|
||||
}
|
||||
|
||||
public function update( &$order ) {
|
||||
|
|
Loading…
Reference in New Issue