Allow more readable flat rate options to be entered

This commit is contained in:
Geert De Deckere 2012-04-18 08:03:28 +02:00
parent 727a4b1cf4
commit 4c08f7bf6d
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class WC_Flat_Rate extends WC_Shipping_Method {
// Add any extra rates
if ( sizeof( $this->options ) > 0) foreach ( $this->options as $option ) {
$this_option = explode('|', $option);
$this_option = preg_split( '~\s*\|\s*~', trim( $option ) );
if (sizeof($this_option)!==3) continue;