File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 40
40
if (!defined ('WP_CONTENT_DIR ' ))
41
41
define ('WP_CONTENT_DIR ' , ABSPATH .'wp-content ' );
42
42
if (!defined ('WP_PLUGIN_URL ' ))
43
- define ('WP_PLUGIN_URL ' , get_stylesheet_directory_uri ());
43
+ define ('WP_PLUGIN_URL ' , get_template_directory_uri ());
44
44
if (!defined ('WP_PLUGIN_DIR ' ))
45
- define ('WP_PLUGIN_DIR ' , get_stylesheet_directory ());
45
+ define ('WP_PLUGIN_DIR ' , get_template_directory ());
46
46
47
47
// Plugin Options
48
- $ url_img =get_stylesheet_directory_uri ()."/func/img/ " ;
48
+ $ url_img =get_template_directory_uri ()."/func/img/ " ;
49
49
50
50
$ ua_doctype = get_option ('ua_doctype ' );
51
51
$ ua_comment_size = get_option ('ua_comment_size ' );
62
62
$ ua_output_location = get_option ('ua_output_location ' );
63
63
64
64
// Include our main UA detection functions
65
- include (get_stylesheet_directory ().'/func/wp-useragent-detect.php ' );
65
+ include (get_template_directory ().'/func/wp-useragent-detect.php ' );
66
66
67
67
// Image generation function
68
68
function clrs_img ($ code , $ type , $ title )
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
// 加载内置插件
4
- include ( get_stylesheet_directory ().'/func/wp-useragent.php ' );
4
+ include ( get_template_directory ().'/func/wp-useragent.php ' );
5
5
6
6
// 加载语言包
7
7
add_action ('after_setup_theme ' , 'my_theme_setup ' );
@@ -394,4 +394,4 @@ function clrs_config(){ clrs_thtj(); ?>
394
394
395
395
}
396
396
397
- ?>
397
+ ?>
You can’t perform that action at this time.
0 commit comments