-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error log and xss and some minor improvents
error log, xss, cancel button on frontend listing page, chrome OS and some minor improvements
- Loading branch information
1 parent
1a90bb1
commit 519341a
Showing
5 changed files
with
52 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/** | ||
* Fired during plugin activation | ||
* | ||
* @link https://github.com/faiyazalam | ||
* @since 1.4.1 | ||
* | ||
* @package User_Login_History | ||
* @subpackage User_Login_History/includes | ||
* @author Er Faiyaz Alam | ||
*/ | ||
class User_Login_History_Error_Handler { | ||
|
||
const ULH_ERROR_LOG_FILE = WP_CONTENT_DIR . '/user-login-history.log'; | ||
|
||
public static function error_log($message = '') { | ||
ini_set('error_log', self::ULH_ERROR_LOG_FILE); | ||
error_log("$message at line:" . __LINE__ . " file:" . __FILE__); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters