Skip to content

Commit 2c01813

Browse files
committed
Added 'trunk' branch; updated my URL and bumped version.
1 parent 4f9d79b commit 2c01813

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jamesmorrison/display-git-branch",
33
"description": "Display Git Branch",
44
"homepage": "https://github.com/jamesmorrison/display-git-branch",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"keywords": [
77
"wordpress"
88
],
@@ -11,8 +11,8 @@
1111
"authors": [
1212
{
1313
"name": "James Morrison",
14-
"email": "james@morrison.me",
15-
"homepage": "http://www.jamesmorrison.me"
14+
"email": "james@morrison.uk",
15+
"homepage": "https://morrison.uk"
1616
}
1717
],
1818
"support": {

display-git-branch.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
* Plugin Name: Display Git Branch
44
* Plugin URI: https://github.com/jamesmorrison/display-git-branch/
55
* Description: Shows which Git branch you're working on. Highlights configurable restricted branches in red.
6-
* Version: 0.1.0
6+
* Version: 0.1.1
77
* Author: James Morrison
8-
* Author URI: http://www.jamesmorrison.me/
8+
* Author URI: https://morrison.uk/
99
* Text Domain: display-git-branch
10+
*
11+
* @package Display_Git_Branch
1012
**/
1113

1214
// Security check
1315
defined( 'ABSPATH' ) || die();
1416

1517
// Useful global constants
16-
define( 'DISPLAY_GIT_BRANCH_VERSION', '0.1.0' );
18+
define( 'DISPLAY_GIT_BRANCH_VERSION', '0.1.1' );
1719
define( 'DISPLAY_GIT_BRANCH_URL', plugin_dir_url( __FILE__ ) );
1820
define( 'DISPLAY_GIT_BRANCH_PATH', dirname( __FILE__ ) . '/' );
1921
define( 'DISPLAY_GIT_BRANCH_INC', DISPLAY_GIT_BRANCH_PATH . 'includes/' );

includes/core.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ function restricted_branches() {
9696

9797
return apply_filters( 'display_git_branch_restricted_branches',
9898
[
99-
'master',
100-
'develop',
99+
'trunk',
100+
'master', // WARNING: this will be deprecated in a future release
101+
'develop', // WARNING: this will be deprecated in a future release
101102
]
102103
);
103104

0 commit comments

Comments
 (0)