Arquivo

Entradas com "senha forte" da tag

Problemas de arranjo registrador mais tomada depois de se mudar para WordPress 2.7

תגובה אחת 25 de maio de 2009 Comments

Todos nós provavelmente familiarizado com o plugin bastante útil - registrador mais .

Após a transição para a versão 2.7 do WordPress, vários problemas foram aditivos;

  1. Registro de teste de força de senha não funciona.
  2. Common.js problema arquivo (s wp-admin/js diretório). GetAllUserSettings function (): variável UserSettings não está definido.
  3. Depois de carregar a imagem personalizada - pessoalmente ligar / arquivo Lharsh não funciona mais.

Desenvolvedores Mod, provavelmente, "esqueceu" de tomar um patch série versão 2.7, apesar de vários meses se passaram bem.

Graças à comunidade WordPress é uma solução para esses problemas (crédito para MarQ_ZA Val - Mdvaldosta a solução).

Força Altera senha verificação problema -

Abra o arquivo de registro plus.php-no diretório / wp-content/plugins/register-plus /, e procure pela seção seguinte:

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 תגיות: , , , , ,