解决 wordpress LearnDash本地化

欢迎使用 WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧

wordpress 在世界那么流行, 驯服这头野兽! 6代 带 k 的处理器,4.0Ghz 主频.

所以CPU 的性能不是问题

1,解决 cdn的问题
国内 cdn 的节点
https://www.xfabe.com/post/105.html

https://cdn.jsdmirror.com/#converter

批量替换
84 cd wordpress/
85 ls
86 grep -rl “cdn.jsdelivr.net” .
87 grep -rl “cdn.jsdelivr.net” . | xargs sed -i ‘s/cdn.jsdelivr.net/cdn.jsdmirror.com/g’
88 grep -rl “cdn.jsdmirror.com” .

老是报错 xxx.com/2x 的问题, 原来是头像缓存巨慢!!!

方法 1:后台设置禁用
登录 WP 后台
进入 设置 → 讨论
找到 头像 部分
取消勾选 显示头像(Show Avatars)
保存

这样 WordPress 就不会加载任何 Gravatar 请求,但第三方插件自己加载头像的除外。

解决谷歌字体被Q

检查全球的网址访问是否流畅

https://www.tcptest.cn/http/https%3A%2F%2Fajax.loli.net%2F

Google 的公共库可以换成国内镜像,例如:

https://ajax.googleapis.com/
⬇ 替换成

https://ajax.loli.net/(由 Cloudflare 反代)

https://ajax.proxy.ustclug.org/(中科大)
root@ausu:/opt_1panel/1panel/www/sites/nullflag/index/wordpress# grep -rl "ajax.googleapis.com" .
./wp-includes/script-loader.php
./wp-content/plugins/uncanny-toolkit-pro/src/classes/learn-dash-group-expiration.php
./wp-content/plugins/learndash-notes/learndash-student-notes.php
./wp-content/plugins/instructor-role/modules/classes/class-instructor-role-frontend-dashboard.php
./wp-content/themes/kadence/inc/customizer/class-theme-customizer.php
root@ausu:/opt_1panel/1panel/www/sites/nullflag/index/wordpress# grep -rl "ajax.googleapis.com" . | xargs sed -i 's/ajax\.googleapis\.com/ajax.loli.net/g'
root@ausu:/opt_1panel/1panel/www/sites/nullflag/index/wordpress# grep -rl "ajax.loli.net" .
./wp-includes/script-loader.php
./wp-content/plugins/uncanny-toolkit-pro/src/classes/learn-dash-group-expiration.php
./wp-content/plugins/learndash-notes/learndash-student-notes.php
./wp-content/plugins/instructor-role/modules/classes/class-instructor-role-frontend-dashboard.php
./wp-content/themes/kadence/inc/customizer/class-theme-customizer.php
root@ausu:/opt_1panel/1panel/www/sites/nullflag/index/wordpress#

解决所有的谷歌字体被Q的问题

grep -rl 'fonts.googleapis' . | xargs sed -i 's#fonts\.googleapis\.com#fonts.googleapis.cn#g; s#fonts\.gstatic\.com#fonts.gstatic.cn#g'

Google 中国提供的 Google Fonts 国内镜像

使用 fonts.googleapis.cn 替换 fonts.googleapis.com

示例:

https://fonts.googleapis.cn/css?family=Open+Sans

使用 fonts.gstatic.cn 替换 fonts.gstatic.com

示例:

https://fonts.gstatic.cn/s/opensans/v14/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2

gstatic.cn和googleapis.com的备案主体均为 谷歌广告(上海)有限公司

有些编辑出问题.–> 这里做个记录. 基本是 动态loop的 query 查询的模块出现的问题

https://www.nullflag.com/registration/
https://www.nullflag.com/my-account/
https://www.nullflag.com/nullflag-integrations/
https://www.nullflag.com/integrations/
https://www.nullflag.com/the-menu/
https://www.nullflag.com/advanced-query-loop-block/ https://www.nullflag.com/gradebook-by-learndash/

但是访问又不出问题~

Similar Posts

3 Comments

  1. 2025年 9月2日 ,所记录的一些事情.

    /recaptcha.net

    learndash-integrity_bxLEx (2)/learndash-integrity$ grep -r “google.com” .
    ./includes/class-recaptcha-v2.php: $url = ‘https://www.google.com/recaptcha/api/siteverify’;
    ./includes/class-recaptcha-v2.php: ‘https://www.google.com/recaptcha/api.js’
    ./includes/class-recaptcha-v3.php: $url = ‘https://www.google.com/recaptcha/api/siteverify’;
    ./includes/class-recaptcha-v3.php: ‘https://www.google.com/recaptcha/api.js’
    ./includes/admin/class-settings-section.php: esc_attr( esc_url( ‘https://www.google.com/recaptcha/admin/create’ ) )

    recaptcha.net/recaptcha/api/siteverify

    root@ausu:/opt_1panel/1panel/www/sites/nullflag/index/wordpress#

    grep -rl “www.google.com” . | xargs sed -i ‘s/www\.google\.com/recaptcha.net/g’

    https://www.nullflag.com/notes-by-learndash/
    http://47.109.99.247:2233/

    https://www.nullflag.com/courses/getting-started-with-learndash/lessons/lesson-2-dashboard-overview-courses-lessons-topics-%e4%bf%ae%e6%94%b9%e8%bf%87/
    https://www.nullflag.com/courses/getting-started-with-learndash/lessons/lesson-1-getting-started-with-learndash/

    https://www.nullflag.com/registration/?ld_register_id=1201

    https://login.brevo.com/?target=https%3A%2F%2Fonboarding-api.brevo.com%2Finformation

    http://192.168.100.119:40782/f1436b8116

    https://open.gmaigc.cn/index/tcp

    http://192.168.100.119:8089/index.php?route=/database/search&db=1p_wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *