Switched to .com maps. Closes #515.
This commit is contained in:
parent
3ea6535910
commit
57e233adb1
|
@ -75,7 +75,7 @@ function woocommerce_custom_order_columns($column) {
|
|||
case "billing_address" :
|
||||
if ($order->get_formatted_shipping_address()) :
|
||||
|
||||
echo '<a target="_blank" href="' . esc_url( 'http://maps.google.co.uk/maps?&q='.urlencode( $order->get_billing_address() ).'&z=16' ) . '">'. preg_replace('#<br\s*/?>#i', ', ', $order->get_formatted_billing_address()) .'</a>';
|
||||
echo '<a target="_blank" href="' . esc_url( 'http://maps.google.com/maps?&q='.urlencode( $order->get_billing_address() ).'&z=16' ) . '">'. preg_replace('#<br\s*/?>#i', ', ', $order->get_formatted_billing_address()) .'</a>';
|
||||
else :
|
||||
echo '–';
|
||||
endif;
|
||||
|
@ -88,7 +88,7 @@ function woocommerce_custom_order_columns($column) {
|
|||
case "shipping_address" :
|
||||
if ($order->get_formatted_shipping_address()) :
|
||||
|
||||
echo '<a target="_blank" href="' . esc_url( 'http://maps.google.co.uk/maps?&q='.urlencode( $order->get_shipping_address() ).'&z=16' ) .'">'. preg_replace('#<br\s*/?>#i', ', ', $order->get_formatted_shipping_address()) .'</a>';
|
||||
echo '<a target="_blank" href="' . esc_url( 'http://maps.google.com/maps?&q='.urlencode( $order->get_shipping_address() ).'&z=16' ) .'">'. preg_replace('#<br\s*/?>#i', ', ', $order->get_formatted_shipping_address()) .'</a>';
|
||||
else :
|
||||
echo '–';
|
||||
endif;
|
||||
|
|
Loading…
Reference in New Issue