기록 보관소

태그 '강력한 암호'가있는 항목

배치 등록 플러스 플러그 문제에 워드 프레스 2.7로 이동 후

תגובה אחת 2009년 5월 25일 코멘트

- 매우 유용한 접속식 아마도 익숙한 우리 모두 등록 플러스 .

워드 프레스의 버전 2.7으로 전환 후 여러 문제가 첨가물 있었다;

  1. 회원 가입 비밀 번호 강도 테스트가 작동하지 않습니다.
  2. Common.js 파일 문제 (S 디렉토리 wp-admin/js). GetAllUserSettings 기능 () : userSettings 변수가 정의되지 않았습니다.
  3. 사용자 정의 이미지를 업로드 후 - 개인 연결 / Lharsh 파일은 더 이상 작동하지 않습니다.

MOD 개발자는 아마 몇 개월 잘 통과했지만, 버전 2.7 일련의 패치를 데리고 "깜박".

워드 프레스 커뮤니티 덕분에 이러한 문제 (에 대한 신용에 대한 해결책이다 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');

בהצלחה :)

קטגוריות: WordPress Modim תגיות: , , , , ,