Skip to content

Commit 05c4076

Browse files
committed
Implement ABSPATH check
1 parent 02e21c0 commit 05c4076

10 files changed

+21
-0
lines changed

class-gf-cli.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
// Include the Gravity Forms add-on framework
46
GFForms::include_addon_framework();
57

cli.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
along with this program. If not, see http://www.gnu.org/licenses.
2828
*/
2929

30+
defined( 'ABSPATH' ) || die();
31+
3032
// Defines the current version of the CLI add-on
3133
define( 'GF_CLI_VERSION', '1.1' );
3234

includes/class-gf-cli-entry-notification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Send Gravity Forms Notifications.
57
*

includes/class-gf-cli-entry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage Gravity Forms Entries.
57
*

includes/class-gf-cli-form-field.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage Gravity Forms Form Fields.
57
*

includes/class-gf-cli-form-notification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage Gravity Forms Notifications.
57
*

includes/class-gf-cli-form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage Gravity Forms.
57
*

includes/class-gf-cli-license.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage the Gravity Forms License Key.
57
*

includes/class-gf-cli-root.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
defined( 'ABSPATH' ) || die();
4+
35
/**
46
* Manage Gravity Forms.
57
*

includes/class-gf-cli-tool.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
defined( 'ABSPATH' ) || die();
4+
25
/**
36
* Misc Gravity Forms Tools.
47
*

0 commit comments

Comments
 (0)