Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions inc/functions-limit-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ function bill_no_login_redirect( $content ) {
global $pagenow;
if ( ! is_user_logged_in() && ! is_admin() ) {
// ログインページへリダイレクト
$redirectUrl = home_url( $_SERVER['REQUEST_URI'] );
$url = wp_login_url( $redirectUrl );
header( "Location: {$url}" );
$url = wp_login_url( $_SERVER['REQUEST_URI'] );
wp_safe_redirect( $url );
exit;

/*
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ GitHub : https://github.com/vektor-inc/BillVektor

== Changelog ==

[ 不具合修正 ] サブディレクトリで運用された場合のリダイレクト不良修正

1.11.4
[ 不具合修正 ] Money Forward インポート用のデータ形式が変更になってインポートできなくなっていたため修正

Expand Down