Skip to content

Commit

Permalink
Removing Mijireh from core 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Nov 18, 2014
1 parent 003094c commit b3782fa
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 1,646 deletions.
1 change: 0 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ filter:
- includes/api/v1/*
- includes/libraries/*
- includes/updates/*
- includes/gateways/mijireh/includes/*
- includes/gateways/simplify-commerce/includes/*

checks:
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ module.exports = function( grunt ) {
apigen: {
command: [
'cd apigen/',
'php apigen.php --source ../ --destination ../wc-apidocs --download yes --template-config ./templates/woodocs/config.neon --title "WooCommerce" --exclude "*/mijireh/*" --exclude "*/includes/libraries/*" --exclude "*/api/*" --exclude "*/i18n/*" --exclude "*/node_modules/*" --exclude "*/apigen/*" --exclude "*/wc-apidocs/*"'
'php apigen.php --source ../ --destination ../wc-apidocs --download yes --template-config ./templates/woodocs/config.neon --title "WooCommerce" --exclude "*/includes/libraries/*" --exclude "*/api/*" --exclude "*/i18n/*" --exclude "*/node_modules/*" --exclude "*/apigen/*" --exclude "*/wc-apidocs/*"'
].join( '&&' )
}
},
Expand Down
1 change: 0 additions & 1 deletion includes/admin/class-wc-admin-meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function __construct() {
add_action( 'add_meta_boxes', array( $this, 'remove_meta_boxes' ), 10 );
add_action( 'add_meta_boxes', array( $this, 'rename_meta_boxes' ), 20 );
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 30 );
add_action( 'add_meta_boxes', array( 'WC_Gateway_Mijireh', 'add_page_slurp_meta' ) );
add_action( 'save_post', array( $this, 'save_meta_boxes' ), 1, 2 );

/**
Expand Down
11 changes: 0 additions & 11 deletions includes/admin/class-wc-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ public function add_notices() {
wp_enqueue_style( 'woocommerce-activation', plugins_url( '/assets/css/activation.css', WC_PLUGIN_FILE ) );
add_action( 'admin_notices', array( $this, 'translation_upgrade_notice' ) );
}

if ( ! class_exists( 'WC_Mijireh_Checkout' ) && ( $mijireh = get_option( 'woocommerce_mijireh_checkout_settings', false ) ) && ! empty( $mijireh['enabled'] ) && $mijireh['enabled'] === 'yes' && empty( $_GET['action'] ) ) {
add_action( 'admin_notices', array( $this, 'mijireh_notice' ) );
}
}

/**
Expand Down Expand Up @@ -151,13 +147,6 @@ public function template_file_check_notice() {
include( 'views/html-notice-template-check.php' );
}
}

/**
* Notice to say Mijireh has been deprecated in 2.2
*/
public function mijireh_notice() {
include( 'views/html-notice-mijireh.php' );
}
}

endif;
Expand Down
23 changes: 0 additions & 23 deletions includes/admin/views/html-notice-mijireh.php

This file was deleted.

2 changes: 0 additions & 2 deletions includes/class-wc-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public static function init() {
add_action( 'wp_ajax_nopriv_woocommerce_' . $ajax_event, array( __CLASS__, $ajax_event ) );
}
}

add_action( 'wp_ajax_page_slurp', array( 'WC_Gateway_Mijireh', 'page_slurp' ) );
}

/**
Expand Down
5 changes: 0 additions & 5 deletions includes/class-wc-payment-gateways.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ public function init() {
'WC_Gateway_Paypal',
);

// Conditional loading of core gateways
if ( ! class_exists( 'WC_Mijireh_Checkout' ) && ( $mijireh = get_option( 'woocommerce_mijireh_checkout_settings', false ) ) && ! empty( $mijireh['enabled'] ) && $mijireh['enabled'] === 'yes' ) {
$load_gateways[] = 'WC_Gateway_Mijireh';
}

if ( 'US' === WC()->countries->get_base_country() ) {
if ( class_exists( 'WC_Subscriptions_Order' ) || class_exists( 'WC_Pre_Orders_Order' ) ) {
$load_gateways[] = 'WC_Addons_Gateway_Simplify_Commerce';
Expand Down
155 changes: 0 additions & 155 deletions includes/gateways/mijireh/assets/css/mijireh.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed includes/gateways/mijireh/assets/images/mijireh.png
Binary file not shown.
51 changes: 0 additions & 51 deletions includes/gateways/mijireh/assets/js/page_slurp.js

This file was deleted.

Loading

0 comments on commit b3782fa

Please sign in to comment.