Skip to content

Commit e7cb198

Browse files
wpessentialMuhammad Umer
authored andcommitted
improvements
Signed-off-by: Muhammad Umer <mumer@updraftplus.com>
1 parent 531291b commit e7cb198

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@
99
"require": {
1010
"php" : ">=7.4",
1111
"ext-json" : "*",
12-
"wpessential/wpessential-commons": "^1.1.1",
12+
"wpessential/wpessential-commons": "^1.1.2",
1313
"wpessential/wpessential-images": "^2.0",
1414
"wpessential/wpessential-menus": "^2.0.2",
1515
"wpessential/wpessential-sidebars": "^2.0",
1616
"wpessential/wpessential-widgets": "^1.0.5",
17-
"wpessential/wpessential-theme-support": "^1.0.2",
18-
"wpessential/wpessential-postypes": "^0.2.1"
17+
"wpessential/wpessential-theme-support": "^1.0.3",
18+
"wpessential/wpessential-postypes": "^0.2.2"
1919
},
2020
"autoload": {
2121
"psr-4": {
2222
"WPEssential\\Theme\\": "inc/"
23+
},
24+
"autoload": {
25+
"files": ["inc/ThemeLoader.php"]
2326
}
2427
},
2528
"authors": [

inc/Constants.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class Constants
2626
*/
2727
public static function constructor ()
2828
{
29-
defined( 'WPE_THEME_BUILDER_VERSION' ) || define( 'WPE_THEME_BUILDER_VERSION', '1.0' );
29+
\defined( 'WPE_THEME_BUILDER_VERSION' ) || \define( 'WPE_THEME_BUILDER_VERSION', '1.0' );
3030

3131
// Retrieve theme information (likely from a utility function `wpe_theme_info()`).
3232
$theme_info = wpe_theme_info();
@@ -36,6 +36,9 @@ public static function constructor ()
3636
"{$theme_info->UcwordsNameHyphen}_T_VER" => $theme_info->Version,
3737
"{$theme_info->UcwordsNameHyphen}_T_DIR" => get_stylesheet_directory() . '/',
3838
"{$theme_info->UcwordsNameHyphen}_T_URI" => get_stylesheet_directory_uri() . '/',
39+
"{$theme_info->UpperNameHyphen}_T_VER" => $theme_info->Version,
40+
"{$theme_info->UpperNameHyphen}_T_DIR" => get_stylesheet_directory() . '/',
41+
"{$theme_info->UpperNameHyphen}_T_URI" => get_stylesheet_directory_uri() . '/',
3942
];
4043

4144
// Allow developers to filter and modify the constants.

inc/ThemeSetup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ public static function setup_theme ()
7070
wp_link_pages( [ 'echo' => 0 ] );
7171
}
7272
}
73+
74+
ThemeSetup::constructor();

0 commit comments

Comments
 (0)