-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move message for developers to separate .dist file
- Loading branch information
Showing
3 changed files
with
24 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*/.DS_Store | ||
deploy.sh | ||
config.php | ||
devMessage.php | ||
.idea/ | ||
node_modules/ | ||
specs/results/ | ||
|
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,21 @@ | ||
<?php | ||
|
||
// This is just a quick way to show a message on WP sites that are in development, i.e., WP_DEBUG is on | ||
// kept out of git to avoid trivial, but annoying, conflicts | ||
|
||
$stringfromfile = file('.git/HEAD', FILE_USE_INCLUDE_PATH); | ||
$firstLine = $stringfromfile[0]; //get the string from the array | ||
$explodedstring = explode("/", $firstLine, 3); //seperate out by the "/" in the string | ||
$branchname = $explodedstring[2]; //get the one that is always the branch name | ||
|
||
?> | ||
|
||
|
||
<div class='updated notice'> | ||
<p>This is a dev site.</p> | ||
<p>On branch: <?php echo $branchname; ?></p> | ||
</div> | ||
|
||
|
||
|
||
|
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