-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indicate default username and password on
wp-login.php
(#136)
* Indicate default username and password on `wp-login.php` * Use a named file instead of `my-hacks.php`
- Loading branch information
1 parent
583a02b
commit b84dfee
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/wordpress-playground/mu-plugins/1-show-admin-credentials-on-wp-login.php
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,15 @@ | ||
<?php | ||
/** | ||
* Add a notice to wp-login.php offering the username and password. | ||
*/ | ||
|
||
add_action( | ||
'login_message', | ||
function() { | ||
return <<<EOT | ||
<div class="message info"> | ||
<strong>username:</strong> <code>admin</code><br /><strong>password</strong>: <code>password</code> | ||
</div> | ||
EOT; | ||
} | ||
); |
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