classes -> includes (for includes)

This commit is contained in:
Mike Jolley 2013-06-11 14:28:45 +01:00
parent c75ea04c1c
commit 4397b00c4a
6 changed files with 11 additions and 11 deletions

View File

@ -27,7 +27,7 @@ function do_install_woocommerce() {
woocommerce_init_roles();
// Register post types
include_once( untrailingslashit( plugin_dir_path( dirname( __FILE__ ) ) ) . '/classes/class-wc-post-types.php' );
include_once( untrailingslashit( plugin_dir_path( dirname( __FILE__ ) ) ) . '/includes/class-wc-post-types.php' );
// Add default taxonomies
woocommerce_default_taxonomies();

View File

@ -2483,7 +2483,7 @@ function woocommerce_category_sales() {
$r['value'] = 'id';
$r['selected'] = isset( $_POST['show_categories'] ) ? $_POST['show_categories'] : '';
include_once( $woocommerce->plugin_path() . '/classes/walkers/class-product-cat-dropdown-walker.php' );
include_once( $woocommerce->plugin_path() . '/includes/walkers/class-product-cat-dropdown-walker.php' );
echo woocommerce_walk_category_dropdown_tree( $categories, 0, $r );
?>

View File

@ -166,7 +166,7 @@ class WooCommerce {
if ( strpos( $class, 'wc_gateway_' ) === 0 ) {
$path = $this->plugin_path() . '/classes/gateways/' . trailingslashit( substr( str_replace( '_', '-', $class ), 11 ) );
$path = $this->plugin_path() . '/includes/gateways/' . trailingslashit( substr( str_replace( '_', '-', $class ), 11 ) );
$file = 'class-' . str_replace( '_', '-', $class ) . '.php';
if ( is_readable( $path . $file ) ) {
@ -176,7 +176,7 @@ class WooCommerce {
} elseif ( strpos( $class, 'wc_shipping_' ) === 0 ) {
$path = $this->plugin_path() . '/classes/shipping/' . trailingslashit( substr( str_replace( '_', '-', $class ), 12 ) );
$path = $this->plugin_path() . '/includes/shipping/' . trailingslashit( substr( str_replace( '_', '-', $class ), 12 ) );
$file = 'class-' . str_replace( '_', '-', $class ) . '.php';
if ( is_readable( $path . $file ) ) {
@ -186,7 +186,7 @@ class WooCommerce {
} elseif ( strpos( $class, 'wc_shortcode_' ) === 0 ) {
$path = $this->plugin_path() . '/classes/shortcodes/';
$path = $this->plugin_path() . '/includes/shortcodes/';
$file = 'class-' . str_replace( '_', '-', $class ) . '.php';
if ( is_readable( $path . $file ) ) {
@ -197,7 +197,7 @@ class WooCommerce {
if ( strpos( $class, 'wc_' ) === 0 ) {
$path = $this->plugin_path() . '/classes/';
$path = $this->plugin_path() . '/includes/';
$file = 'class-' . str_replace( '_', '-', $class ) . '.php';
if ( is_readable( $path . $file ) ) {

View File

@ -29,7 +29,7 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
$this->id = 'mijireh_checkout';
$this->method_title = __( 'Mijireh Checkout', 'woocommerce' );
$this->icon = apply_filters( 'woocommerce_mijireh_checkout_icon', $woocommerce->plugin_url() . '/classes/gateways/mijireh/assets/images/credit_cards.png' );
$this->icon = apply_filters( 'woocommerce_mijireh_checkout_icon', $woocommerce->plugin_url() . '/includes/gateways/mijireh/assets/images/credit_cards.png' );
$this->has_fields = false;
// Load the settings.
@ -348,9 +348,9 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
global $woocommerce;
if ( self::is_slurp_page() ) {
wp_enqueue_style( 'mijireh_css', $woocommerce->plugin_url() . '/classes/gateways/mijireh/assets/css/mijireh.css' );
wp_enqueue_style( 'mijireh_css', $woocommerce->plugin_url() . '/includes/gateways/mijireh/assets/css/mijireh.css' );
wp_enqueue_script( 'pusher', 'https://d3dy5gmtp8yhk7.cloudfront.net/1.11/pusher.min.js', null, false, true );
wp_enqueue_script( 'page_slurp', $woocommerce->plugin_url() . '/classes/gateways/mijireh/assets/js/page_slurp.js', array('jquery'), false, true );
wp_enqueue_script( 'page_slurp', $woocommerce->plugin_url() . '/includes/gateways/mijireh/assets/js/page_slurp.js', array('jquery'), false, true );
add_meta_box(
'slurp_meta_box', // $id

View File

@ -142,7 +142,7 @@ class WC_Widget_Product_Categories extends WC_Widget {
}
include_once( $woocommerce->plugin_path() . '/classes/walkers/class-product-cat-list-walker.php' );
include_once( $woocommerce->plugin_path() . '/includes/walkers/class-product-cat-list-walker.php' );
$cat_args['walker'] = new WC_Product_Cat_List_Walker;
$cat_args['title_li'] = '';

View File

@ -1659,7 +1659,7 @@ function woocommerce_walk_category_dropdown_tree() {
global $woocommerce;
if ( ! class_exists( 'WC_Product_Cat_Dropdown_Walker' ) )
include_once( $woocommerce->plugin_path() . '/classes/walkers/class-product-cat-dropdown-walker.php' );
include_once( $woocommerce->plugin_path() . '/includes/walkers/class-product-cat-dropdown-walker.php' );
$args = func_get_args();