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:
2026-01-16 00:23:36 +08:00
parent 744b4d03d5
commit 6b7466f42b
5 changed files with 21 additions and 16 deletions

View File

@@ -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'){