fix: 修复代码错误和优化重复调用
- 修复 argon_get_locate() 函数缺失返回语句的问题 - 优化 content-single.php 中重复的 get_option 调用(4次→1次) - 优化 content-page.php 中重复的 get_option 调用(4次→1次) - 优化 content-timeline.php 中重复的 get_option 调用(4次→1次) - 优化 post-actions.php 中重复的 get_option 调用(4次→1次)
This commit is contained in:
@@ -161,6 +161,7 @@ function argon_get_locate(){
|
||||
if (is_admin()){
|
||||
$determined_locale = get_user_locale();
|
||||
}
|
||||
return argon_locate_filter($determined_locale);
|
||||
}
|
||||
function theme_locale_hook($locate, $domain){
|
||||
if ($domain == 'argon'){
|
||||
|
||||
Reference in New Issue
Block a user