File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -70,3 +70,5 @@ public static function setup_theme ()
7070 wp_link_pages ( [ 'echo ' => 0 ] );
7171 }
7272}
73+
74+ ThemeSetup::constructor ();
You can’t perform that action at this time.
0 commit comments