安排注册加插件问题后移动到WordPress 2.7
我们所有可能与熟悉的插件非常有用- 注册加 。
的WordPress 2.7版本的过渡后,有几个问题是添加剂;
- 注册密码强度测试不起作用。
- common.js文件的问题(目录wp-admin/js)。 GetAllUserSettings函数():userSettings变量没有被定义。
- 后上传自定义形象 - 个人连接/ Lharsh文件不起作用了。
国防部开发商可能“忘记”,采取了一系列补丁2.7版,虽然已经过去了好几个月。
由于WordPress的社会是一个这些问题(信用到解决方案MarQ_ZA瓦尔- Mdvaldosta解决方案)。
修订的密码强度检查的问题-
打开文件目录/ wp-content/plugins/register-plus /寄存器plus.php,并寻找以下部分:
if ( strength == pwsL10n.bad ) {
jQuery(res).addClass('bad');
jQuery(res).html( pwsL10n.bad );
}
else if ( strength == pwsL10n.good ) {
jQuery(res).addClass('good');
jQuery(res).html( pwsL10n.good );
}
else if ( strength == pwsL10n.strong ) {
jQuery(res).addClass('strong');
jQuery(res).html( pwsL10n.strong );
}
else {
// this catches 'Too short' and the off chance anything else comes along
jQuery(res).addClass('short');
jQuery(res).html( pwsL10n.short );
}
לאחר שמצאתם את המקטע, החליפו אותו בקוד הבא:
if ( strength == 2 ) {
jQuery(res).addClass('bad');
jQuery(res).html( pwsL10n.bad );
}
else if ( strength == 3 ) {
jQuery(res).addClass('good');
jQuery(res).html( pwsL10n.good );
}
else if ( strength == 4 ) {
jQuery(res).addClass('strong');
jQuery(res).html( pwsL10n.strong );
}
else {
// this catches 'Too short' and the off chance anything else comes along
jQuery(res).addClass('short');
jQuery(res).html( pwsL10n.short );
}
תיקון הבעיה בקובץ commen.js -
פתחו את הקובץ commen.js הנמצא בתקייה /wp-admin/js/ , וחפשו את המקטע הבא:
// Returns all settings as js object.
function getAllUserSettings() {
return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
}
והחליפו אותו בקוד הבא:
// Returns all settings as js object.
function getAllUserSettings() {
if (typeof(userSettings) == 'undefined')
{
return {};
}
else
{
return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
}
}
תיקון בעיית העלאת לוגו מותאם-אישית -
פתחו את הקובץ register-plus.php הנמצא בתקייה /wp-content/plugins/register-plus/ , וחפשו את השורה הבאה:
$upload_dir = ABSPATH . get_option('upload_path');
והחליפו בשורה הבאה:
$upload_dir = get_option('upload_path');
בהצלחה









































