Adding translatable page title to download file error page

This commit is contained in:
Patrick Rauland 2013-06-14 12:52:34 -05:00
parent 1e94bbc990
commit 93d1006f0f
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ function woocommerce_download_product() {
if ( $user_id && get_option( 'woocommerce_downloads_require_login' ) == 'yes' ) {
if ( ! is_user_logged_in() )
wp_die( __( 'You must be logged in to download files.', 'woocommerce' ) . ' <a href="' . wp_login_url( get_permalink( woocommerce_get_page_id( 'myaccount' ) ) ) . '">' . __( 'Login &rarr;', 'woocommerce' ) . '</a>' );
wp_die( __( 'You must be logged in to download files.', 'woocommerce' ) . ' <a href="' . wp_login_url( get_permalink( woocommerce_get_page_id( 'myaccount' ) ) ) . '">' . __( 'Login &rarr;', 'woocommerce' ) . '</a>', __( 'Log in to Download Files', 'woocommerce' ) );
elseif ( $user_id != get_current_user_id() )
wp_die( __( 'This is not your download link.', 'woocommerce' ) );