[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Woo-Dependencies #9

Merged
merged 2 commits into from
Jan 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions cart-rest-api-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

if ( ! class_exists( 'WC_Dependencies' ) ) {
require_once( 'woo-dependencies/woo-dependencies.php' );
}

// Quit right now if WooCommerce is not active
if ( ! is_woocommerce_active() ) {
return;
}

if ( ! class_exists( 'WC_Cart_Endpoint_REST_API' ) ) {
class WC_Cart_Endpoint_REST_API {

Expand Down Expand Up @@ -144,7 +135,7 @@ public function load_plugin() {
* @return void
*/
public function wc_cart_rest_api_admin_notice() {
echo '<div class="error"><p>' . sprintf( __( '%1$s requires at least %2$s v%3$s in order to function. Please upgrade %2$s.', 'cart-rest-api-for-woocommerce' ), 'WooCommerce Cart REST API', 'WooCommerce', $this->required_woo ) . '</p></div>';
echo '<div class="error"><p>' . sprintf( __( '%1$s requires at least %2$s v%3$s or higher.', 'cart-rest-api-for-woocommerce' ), 'WooCommerce Cart REST API', 'WooCommerce', $this->required_woo ) . '</p></div>';
} // END wc_cart_rest_api_admin_notice()

/**
Expand Down
8 changes: 4 additions & 4 deletions languages/cart-rest-api-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: WooCommerce Cart REST API 1.0.0\n"
"Report-Msgid-Bugs-To: "
"https://github.com/seb86/WooCommerce-Cart-REST-API/issues\n"
"POT-Creation-Date: 2018-01-24 03:21:15+00:00\n"
"POT-Creation-Date: 2018-01-25 15:28:02+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -15,12 +15,12 @@ msgstr ""
"Language: en_US\n"
"X-Generator: grunt-wp-i18n1.0.1\n"

#: cart-rest-api-for-woocommerce.php:86 cart-rest-api-for-woocommerce.php:96
#: cart-rest-api-for-woocommerce.php:77 cart-rest-api-for-woocommerce.php:87
msgid "Foul!"
msgstr ""

#: cart-rest-api-for-woocommerce.php:147
msgid "%1$s requires at least %2$s v%3$s in order to function. Please upgrade %2$s."
#: cart-rest-api-for-woocommerce.php:138
msgid "%1$s requires at least %2$s v%3$s or higher."
msgstr ""

#: includes/api/class-wc-rest-cart-controller.php:106
Expand Down
26 changes: 0 additions & 26 deletions woo-dependencies/class-wc-dependencies.php

This file was deleted.

11 changes: 0 additions & 11 deletions woo-dependencies/woo-dependencies.php

This file was deleted.