This commit is contained in:
Mike Jolley 2015-11-27 13:01:58 +00:00
parent 5a95bcf185
commit 3d7a40e41f
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ function wc_get_endpoint_url( $endpoint, $value = '', $permalink = '' ) {
$permalink = get_permalink();
// Map endpoint to options
$endpoint = !empty( WC()->query->query_vars[ $endpoint ] ) ? WC()->query->query_vars[ $endpoint ] : $endpoint;
$endpoint = ! empty( WC()->query->query_vars[ $endpoint ] ) ? WC()->query->query_vars[ $endpoint ] : $endpoint;
$value = ( 'edit-address' == $endpoint ) ? wc_edit_address_i18n( $value ) : $value;
if ( get_option( 'permalink_structure' ) ) {