mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
- WPCS for defined constants;
* um_url -> UM_URL * um_path -> UM_PATH * um_plugin -> UM_PLUGIN * ultimatemember_version -> UM_VERSION * ultimatemember_plugin_name -> UM_PLUGIN_NAME
This commit is contained in:
@@ -28,7 +28,7 @@ if ( ! class_exists( 'Templates' ) ) {
|
||||
* @return string
|
||||
*/
|
||||
function get_template( $slug ) {
|
||||
$file_list = um_path . "templates/{$slug}.php";
|
||||
$file_list = UM_PATH . "templates/{$slug}.php";
|
||||
$theme_file = get_stylesheet_directory() . "/ultimate-member/templates/{$slug}.php";
|
||||
|
||||
if ( file_exists( $theme_file ) ) {
|
||||
@@ -38,4 +38,4 @@ if ( ! class_exists( 'Templates' ) ) {
|
||||
return $file_list;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user