Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow more readable flat rate options to be entered

  • Loading branch information...
commit 4c08f7bf6d22e0f5d8612e3b19b47db67b57639f 1 parent 727a4b1
@GeertDD authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/shipping/class-wc-flat-rate.php
View
2  classes/shipping/class-wc-flat-rate.php
@@ -181,7 +181,7 @@ function calculate_shipping( $package = array() ) {
// 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;
Please sign in to comment.
Something went wrong with that request. Please try again.