Merge pull request #3338 from BFTrick/master

Add Translatable Page Title to Download File Error Page
This commit is contained in:
Mike Jolley 2013-06-17 01:48:52 -07:00
commit 97cd97ddda
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 ( $user_id && get_option( 'woocommerce_downloads_require_login' ) == 'yes' ) {
if ( ! is_user_logged_in() ) 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() ) elseif ( $user_id != get_current_user_id() )
wp_die( __( 'This is not your download link.', 'woocommerce' ) ); wp_die( __( 'This is not your download link.', 'woocommerce' ) );