Skip to content

Commit

Permalink
Versioning 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenSormani committed Nov 7, 2017
1 parent 0ffa94c commit d47b916
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
19 changes: 14 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
=== WooCommerce Products Per Page ===
Contributors: sormano
Donate link: http://jeroensormani.com/donate/
Tags: Products per page, woocommerce products, woocommerce products per page, woocommerce displayed products, woocommerce quantity products, woocommerce amount of products, woocommerce number of products, woocommerce shown products
Requires at least: 3.8.0
Tested up to: 4.4
Stable tag: 1.2.2
Tags: woocommerce, products per page, woocommerce products, woocommerce products per page, products, per page
Requires at least: 4.0.0
Tested up to: 4.8.3
Stable tag: 1.2.4
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -49,6 +48,16 @@ Options like:

== Changelog ==

= 1.2.4 - 07/11/2017 =

* [Fix] - Default 'list of dropdown options' setting is not properly set on the settings page.

= 1.2.3 - 23/10/2017 =

* [i18n] - Add Swedish translation
* [i18n] - Add Romanian translation
* [Fix] - Persistent cart snag where cart data gets deleted when logging out/back in

= 1.2.2 - 23/12/2015 =

* [i18n] - Add Russian translation
Expand Down
10 changes: 7 additions & 3 deletions woocommerce-products-per-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Products Per Page
* Plugin URI: https://wordpress.org/plugins/woocommerce-products-per-page/
* Description: Integrate a 'products per page' dropdown on your WooCommerce website! Set-up in <strong>seconds</strong>!
* Version: 1.2.2
* Version: 1.2.4
* Author: Jeroen Sormani
* Author URI: http://jeroensormani.com
Expand Down Expand Up @@ -47,7 +47,7 @@ class Woocommerce_Products_Per_Page {
* @since 1.2.0
* @var string $version Plugin version number.
*/
public $version = '1.2.2';
public $version = '1.2.4';


/**
Expand Down Expand Up @@ -177,9 +177,13 @@ public function plugin_update() {

// Updating to 1.2.0
if ( version_compare( get_option( 'wppp_version', '0' ), '1.2.0', '<' ) ) :
$dropdown_options_default =
( apply_filters( 'loop_shop_columns', 4 ) * 3 ) . ' ' .
( apply_filters( 'loop_shop_columns', 4 ) * 6 ) . ' ' .
( apply_filters( 'loop_shop_columns', 4 ) * 9 );
$settings = get_option( 'wppp_settings', array() );
update_option( 'wppp_dropdown_location', isset( $settings['location'] ) ? $settings['location'] : 'topbottom' );
update_option( 'wppp_dropdown_options', isset( $settings['productsPerPage'] ) ? $settings['productsPerPage'] : null );
update_option( 'wppp_dropdown_options', isset( $settings['productsPerPage'] ) ? $settings['productsPerPage'] : $dropdown_options_default );
update_option( 'wppp_default_ppp', isset( $settings['default_ppp'] ) ? $settings['default_ppp'] : '12' );
update_option( 'wppp_shop_columns', isset( $settings['shop_columns'] ) ? $settings['shop_columns'] : '4' );
update_option( 'wppp_return_to_first', isset( $settings['behaviour'] ) && '1' == $settings['behaviour'] ? 'yes' : 'no' );
Expand Down

0 comments on commit d47b916

Please sign in to comment.