diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..30babffc625009b7f4b9bf238b959329fe3c4d06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/vendor/
+.idea
+composer.lock
diff --git a/functions.php b/functions.php
index 426860e37a20fe03293133fef0749cc2422100c3..de2816f5582ab50705040e098b73d9bb4d4a078c 100644
--- a/functions.php
+++ b/functions.php
@@ -1,5 +1,13 @@
 <?php
 
+//include __DIR__. "/baselinker_functions.php";
+
+if ( file_exists( __DIR__. '/functions_add.php' ) ) {
+	include __DIR__ . '/functions_add.php';
+}
+
+include __DIR__ . '/functions_rest_api.php';
+
 /**
  * Disable images regenerations
  */
diff --git a/functions_rest_api.php b/functions_rest_api.php
new file mode 100644
index 0000000000000000000000000000000000000000..a0aacb0e4dd8ce5a3bd821e453a17b800d97dbd9
--- /dev/null
+++ b/functions_rest_api.php
@@ -0,0 +1,10 @@
+<?php
+
+add_filter( 'woocommerce_rest_check_permissions', 'storefront_wpdesk_allow_rest_api_queries', 10, 4 );
+function storefront_wpdesk_allow_rest_api_queries( $permission, $context, $zero, $object ) {
+	$disable_permissions = get_option( 'wpdesk_rest_api_disable_permissions', '' );
+	if ( $disable_permissions ) {
+		return true;  // Allow all queries.
+	}
+	return $permission;
+}
\ No newline at end of file
diff --git a/woocommerce/cart/cart-shipping.php b/woocommerce/cart/cart-shipping.php
index 8de0b8afe2110174b996d26607487f9dd43da489..8470f8f4b34c84bf9fa86b3c7db8f1208398a7bf 100644
--- a/woocommerce/cart/cart-shipping.php
+++ b/woocommerce/cart/cart-shipping.php
@@ -30,7 +30,6 @@ $calculator_text          = '';
 		<?php if ( $available_methods ) : ?>
 			<ul id="shipping_method" class="woocommerce-shipping-methods">
 				<?php foreach ( $available_methods as $method ) : ?>
-<?php error_log(print_r($method,true)); ?>
 					<li>
 						<?php
 						if ( 1 < count( $available_methods ) ) {