Switched to .com maps. Closes #515.

This commit is contained in:
Mike Jolley 2012-01-21 01:18:49 +00:00
parent 3ea6535910
commit 57e233adb1
1 changed files with 2 additions and 2 deletions

View File

@ -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 '&ndash;';
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 '&ndash;';
endif;