Plugin Directory

Changeset 1908674


Ignore:
Timestamp:
07/13/2018 09:47:41 AM (8 years ago)
Author:
ottok
Message:

Manually release 1.0.8 as Git Deployer cannot be fixed quickly enough

Location:
woo-pakettikauppa
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • woo-pakettikauppa/tags/1.0.8/README.md

    r1908665 r1908674  
    2626
    2727> *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts.
     28
     29> *Important!* Before you start using this plugin, please check with your hosting provider that you have directory listing disabled. For more information about directory listing, check the documentation for [Apache](https://wiki.apache.org/httpd/DirectoryListings) or [Nginx](https://nginx.org/en/docs/http/ngx_http_autoindex_module.html).
    2830
    2931# Features
  • woo-pakettikauppa/tags/1.0.8/includes/class-wc-pakettikauppa-shipment.php

    r1908665 r1908674  
    357357          $product = $order->get_product_from_item( $item );
    358358          if ( ! $product->is_virtual() ) {
    359             $weight += $product->get_weight() * $item['qty'];
     359            $weight += wc_get_weight($product->get_weight() * $item['qty'], 'kg');
    360360          }
    361361        }
  • woo-pakettikauppa/tags/1.0.8/includes/class-wc-pakettikauppa-shipping-method.php

    r1908665 r1908674  
    4646
    4747        $this->method_title       = 'Pakettikauppa'; // Title shown in admin
    48         $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin
     48        $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://www.pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin
    4949
    5050        $this->enabled = 'yes';
  • woo-pakettikauppa/tags/1.0.8/languages/wc-pakettikauppa-fi.po

    r1908665 r1908674  
    223223msgid ""
    224224"All shipping methods with one contract. For more information visit <a href="
    225 "\"https://pakettikauppa.fi/\">Pakettikauppa</a>."
     225"\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>."
    226226msgstr ""
    227227"Kaikki olennaiset toimitustavat yhdellä sopimuksella. Lisätietoja "
    228 "Pakettikaupan kotisivuilta <a href=\"https://pakettikauppa.fi/\">www."
     228"Pakettikaupan kotisivuilta <a href=\"https://www.pakettikauppa.fi/\">www."
    229229"pakettikauppa.fi</a>."
    230230
  • woo-pakettikauppa/tags/1.0.8/languages/wc-pakettikauppa.pot

    r1908665 r1908674  
    215215msgid ""
    216216"All shipping methods with one contract. For more information visit <a href="
    217 "\"https://pakettikauppa.fi/\">Pakettikauppa</a>."
     217"\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>."
    218218msgstr ""
    219219
  • woo-pakettikauppa/tags/1.0.8/readme.txt

    r1908665 r1908674  
    1414== Description ==
    1515
    16 [Pakettikauppa](https://pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.
     16[Pakettikauppa](https://www.pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.
    1717
    1818> *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts.
  • woo-pakettikauppa/tags/1.0.8/wc-pakettikauppa.php

    r1908665 r1908674  
    22/**
    33 * Plugin Name: WooCommerce Pakettikauppa
    4  * Version: 1.0.7
     4 * Version: 1.0.8
    55 * Plugin URI: https://github.com/Seravo/woocommerce-pakettikauppa
    66 * Description: Pakettikauppa shipping service for WooCommerce. Integrates Prinetti, Matkahuolto, DB Schenker and others.
     
    3636 */
    3737function wc_pakettikauppa_prepare_directory() {
    38   // Use private directory out of webroot, can be accessed via X-Sendfile
    39   @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR );
    40   chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 );
     38  // Create directory for plugin documents if does not yet exist
     39  if ( ! file_exists( WC_PAKETTIKAUPPA_PRIVATE_DIR ) ) {
     40    @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR );
     41    chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 );
     42  }
     43
     44  // Create index.php to disallow directory listing in some incorrectly configured servers
     45  $index_file = WC_PAKETTIKAUPPA_PRIVATE_DIR . '/index.php';
     46  if ( ! file_exists( $index_file ) ) {
     47    touch( $index_file );
     48  }
    4149}
    42 register_activation_hook( __FILE__, 'wc_pakettikauppa_prepare_directory' );
     50add_action( 'init', 'wc_pakettikauppa_prepare_directory' );
    4351
    4452/**
  • woo-pakettikauppa/trunk/README.md

    r1761726 r1908674  
    2626
    2727> *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts.
     28
     29> *Important!* Before you start using this plugin, please check with your hosting provider that you have directory listing disabled. For more information about directory listing, check the documentation for [Apache](https://wiki.apache.org/httpd/DirectoryListings) or [Nginx](https://nginx.org/en/docs/http/ngx_http_autoindex_module.html).
    2830
    2931# Features
  • woo-pakettikauppa/trunk/includes/class-wc-pakettikauppa-shipment.php

    r1833640 r1908674  
    357357          $product = $order->get_product_from_item( $item );
    358358          if ( ! $product->is_virtual() ) {
    359             $weight += $product->get_weight() * $item['qty'];
     359            $weight += wc_get_weight($product->get_weight() * $item['qty'], 'kg');
    360360          }
    361361        }
  • woo-pakettikauppa/trunk/includes/class-wc-pakettikauppa-shipping-method.php

    r1833640 r1908674  
    4646
    4747        $this->method_title       = 'Pakettikauppa'; // Title shown in admin
    48         $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin
     48        $this->method_description = __( 'All shipping methods with one contract. For more information visit <a href="https://www.pakettikauppa.fi/">Pakettikauppa</a>.', 'wc-pakettikauppa' ); // Description shown in admin
    4949
    5050        $this->enabled = 'yes';
  • woo-pakettikauppa/trunk/languages/wc-pakettikauppa-fi.po

    r1759098 r1908674  
    223223msgid ""
    224224"All shipping methods with one contract. For more information visit <a href="
    225 "\"https://pakettikauppa.fi/\">Pakettikauppa</a>."
     225"\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>."
    226226msgstr ""
    227227"Kaikki olennaiset toimitustavat yhdellä sopimuksella. Lisätietoja "
    228 "Pakettikaupan kotisivuilta <a href=\"https://pakettikauppa.fi/\">www."
     228"Pakettikaupan kotisivuilta <a href=\"https://www.pakettikauppa.fi/\">www."
    229229"pakettikauppa.fi</a>."
    230230
  • woo-pakettikauppa/trunk/languages/wc-pakettikauppa.pot

    r1759098 r1908674  
    215215msgid ""
    216216"All shipping methods with one contract. For more information visit <a href="
    217 "\"https://pakettikauppa.fi/\">Pakettikauppa</a>."
     217"\"https://www.pakettikauppa.fi/\">Pakettikauppa</a>."
    218218msgstr ""
    219219
  • woo-pakettikauppa/trunk/readme.txt

    r1908665 r1908674  
    1414== Description ==
    1515
    16 [Pakettikauppa](https://pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.
     16[Pakettikauppa](https://www.pakettikauppa.fi/) is a shipping service provider in Finland. This plugin integrates their service into WooCommerce. To start shipping, all your WooCommerce needs is this plugin and a merchant ID of your account registered with Pakettikauppa.
    1717
    1818> *Note!* If you already have shipping contracts with Posti, Matkahuolto or DB Schenker with reduced prices, you can contact the customer support of Pakettikauppa to get those contracts via Pakettikauppa so you can use the WooCommerce Pakettikauppa plugin with your current shipping contracts.
  • woo-pakettikauppa/trunk/wc-pakettikauppa.php

    r1833640 r1908674  
    22/**
    33 * Plugin Name: WooCommerce Pakettikauppa
    4  * Version: 1.0.7
     4 * Version: 1.0.8
    55 * Plugin URI: https://github.com/Seravo/woocommerce-pakettikauppa
    66 * Description: Pakettikauppa shipping service for WooCommerce. Integrates Prinetti, Matkahuolto, DB Schenker and others.
     
    3636 */
    3737function wc_pakettikauppa_prepare_directory() {
    38   // Use private directory out of webroot, can be accessed via X-Sendfile
    39   @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR );
    40   chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 );
     38  // Create directory for plugin documents if does not yet exist
     39  if ( ! file_exists( WC_PAKETTIKAUPPA_PRIVATE_DIR ) ) {
     40    @wp_mkdir_p( WC_PAKETTIKAUPPA_PRIVATE_DIR );
     41    chmod( WC_PAKETTIKAUPPA_PRIVATE_DIR, 0755 );
     42  }
     43
     44  // Create index.php to disallow directory listing in some incorrectly configured servers
     45  $index_file = WC_PAKETTIKAUPPA_PRIVATE_DIR . '/index.php';
     46  if ( ! file_exists( $index_file ) ) {
     47    touch( $index_file );
     48  }
    4149}
    42 register_activation_hook( __FILE__, 'wc_pakettikauppa_prepare_directory' );
     50add_action( 'init', 'wc_pakettikauppa_prepare_directory' );
    4351
    4452/**
Note: See TracChangeset for help on using the changeset viewer.