Adding translatable page title to download file error page
This commit is contained in:
parent
1e94bbc990
commit
93d1006f0f
|
@ -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 →', '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() )
|
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' ) );
|
||||||
|
|
Loading…
Reference in New Issue