Merge pull request #3338 from BFTrick/master
Add Translatable Page Title to Download File Error Page
This commit is contained in:
commit
97cd97ddda
|
@ -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 →', '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 →', 'woocommerce' ) . '</a>', __( 'Log in to Download Files', 'woocommerce' ) );
|
||||
|
||||
elseif ( $user_id != get_current_user_id() )
|
||||
wp_die( __( 'This is not your download link.', 'woocommerce' ) );
|
||||
|
|
Loading…
Reference in New Issue