Skip to content

Commit e1339fc

Browse files
committed
change constant to be more descriptive
1 parent 7d9c1ac commit e1339fc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

mu-plugins/osi-editor-tweaks/osi-editor-tweaks.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313

1414
define( 'OSI_ET_VERSION', '1.0.0' );
15-
define( 'OSI_BUILD_PATH', plugin_dir_path( __FILE__ ) . 'build/' );
16-
define( 'OSI_BUILD_URL', plugin_dir_url( __FILE__ ) . 'build/' );
15+
define( 'OSI_ET_BUILD_PATH', plugin_dir_path( __FILE__ ) . 'build/' );
16+
define( 'OSI_ET_BUILD_URL', plugin_dir_url( __FILE__ ) . 'build/' );
1717

1818

1919
/**
@@ -23,22 +23,22 @@
2323
*/
2424
function osi_et_admin_scripts() {
2525
// If file exists, enqueue the script.
26-
if ( file_exists( OSI_BUILD_PATH . 'scripts/editor/editor.asset.php' ) ) {
27-
$assets = include OSI_BUILD_PATH . 'scripts/editor/editor.asset.php';
26+
if ( file_exists( OSI_ET_BUILD_PATH . 'scripts/editor/editor.asset.php' ) ) {
27+
$assets = include OSI_ET_BUILD_PATH . 'scripts/editor/editor.asset.php';
2828
wp_enqueue_script(
2929
'osi-event-list',
30-
OSI_BUILD_URL . 'scripts/editor/editor.js',
30+
OSI_ET_BUILD_URL . 'scripts/editor/editor.js',
3131
$assets['dependencies'],
3232
$assets['version'],
3333
true
3434
);
3535
}
3636

3737
// If file exists, enqueue the editor styles.
38-
if ( file_exists( OSI_BUILD_PATH . 'styles/editor/editor.scss.css' ) ) {
38+
if ( file_exists( OSI_ET_BUILD_PATH . 'styles/editor/editor.scss.css' ) ) {
3939
wp_enqueue_style(
4040
'osi-event-list-editor',
41-
OSI_BUILD_URL . 'styles/editor/editor.scss.css',
41+
OSI_ET_BUILD_URL . 'styles/editor/editor.scss.css',
4242
array(),
4343
OSI_ET_VERSION
4444
);
@@ -53,22 +53,22 @@ function osi_et_admin_scripts() {
5353
*/
5454
function osi_et_frontend_scripts() {
5555
// If file exists, enqueue the script.
56-
if ( file_exists( OSI_BUILD_PATH . 'scripts/theme/theme.asset.php' ) ) {
57-
$assets = include OSI_BUILD_PATH . 'scripts/theme/theme.asset.php';
56+
if ( file_exists( OSI_ET_BUILD_PATH . 'scripts/theme/theme.asset.php' ) ) {
57+
$assets = include OSI_ET_BUILD_PATH . 'scripts/theme/theme.asset.php';
5858
wp_enqueue_script(
5959
'osi-et-theme',
60-
OSI_BUILD_URL . 'scripts/theme/theme.js',
60+
OSI_ET_BUILD_URL . 'scripts/theme/theme.js',
6161
$assets['dependencies'],
6262
$assets['version'],
6363
true
6464
);
6565
}
6666

6767
// If file exists, enqueue the front-end styles.
68-
if ( file_exists( OSI_BUILD_PATH . 'styles/theme/theme.scss.css' ) ) {
68+
if ( file_exists( OSI_ET_BUILD_PATH . 'styles/theme/theme.scss.css' ) ) {
6969
wp_enqueue_style(
7070
'osi-et-theme',
71-
OSI_BUILD_URL . 'styles/theme/theme.scss.css',
71+
OSI_ET_BUILD_URL . 'styles/theme/theme.scss.css',
7272
array(),
7373
OSI_ET_VERSION
7474
);

0 commit comments

Comments
 (0)