Skip to content

Commit 70511e9

Browse files
committed
Updates in main plugin file and plugin functions.php
1 parent 1df83e7 commit 70511e9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

functions.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@
55
* We recommend to keep your code organized and split in files, and
66
* you can include them here.
77
*/
8-
namespace Haste\Toolkit;
9-
10-
Admin\EnqueueScripts::init();

haste-toolkit.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,18 @@
1515

1616
namespace Haste\Toolkit;
1717

18-
1918
// Prevents direct access
2019
defined( 'ABSPATH' ) || exit;
2120

21+
if ( ! defined( 'HASTE_TOOLKIT_PLUGIN_FILE' ) ) {
22+
define( 'HASTE_TOOLKIT_PLUGIN_FILE', __FILE__ );
23+
}
24+
2225
// Autoload
2326
if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) {
2427
require __DIR__ . '/vendor/autoload.php';
2528
}
2629

27-
if ( ! defined( 'HASTE_TOOLKIT_PLUGIN_FILE' ) ) {
28-
define( 'HASTE_TOOLKIT_PLUGIN_FILE', __FILE__ );
29-
}
30-
3130
if ( ! class_exists( 'HasteToolkit' ) ) {
3231
class HasteToolkit {
3332
/**

0 commit comments

Comments
 (0)