滅多にやらないコメント投稿でのプレビュー(確認)画面にエラーがあることが分かった。
以下の二箇所を修正。
小粋空間様より教えていただきました。いつもありがとうございます。感謝。
インデックステンプレートの Site JavaScript (mt-site.js) で
青字部分を追加。
:
</MTElse>
</MTIfRegistrationRequired>
</MTIfRegistrationAllowed>
var mtcmthome;
var mtcmtauth;
if (document.comments_form) {
if (!commenter_name && (document.comments_form.email != undefined) &&
(mtcmtmail = getCookie(“mtcmtmail”)))
document.comments_form.email.value = mtcmtmail;
if (!commenter_name && (document.comments_form.author != undefined) &&
(mtcmtauth = getCookie(“mtcmtauth”)))
document.comments_form.author.value = mtcmtauth;
if (document.comments_form.url != undefined &&
(mtcmthome = getCookie(“mtcmthome”)))
document.comments_form.url.value = mtcmthome;
if (document.comments_form[“bakecookie”]) {
if (mtcmtauth || mtcmthome) {
document.comments_form.bakecookie.checked = true;
} else {
document.comments_form.bakecookie.checked = false;
}
}
}
}
:
もう1箇所も小粋空間様から教えていただきました。
function individualArchivesOnLoad(commenter_name) {
:
(中略)
:
if (document.comments_form) {
if (document.comments_form.email != undefined &&
(mtcmtmail = getCookie(“mtcmtmail”)))
document.comments_form.email.value = mtcmtmail;
if (document.comments_form.author != undefined &&
(mtcmtauth = getCookie(“mtcmtauth”)))
document.comments_form.author.value = mtcmtauth;
if (document.comments_form.url != undefined &&
(mtcmthome = getCookie(“mtcmthome”)))
document.comments_form.url.value = mtcmthome;
if (document.comments_form.bakecookie) {
if (mtcmtauth || mtcmthome) {
document.comments_form.bakecookie.checked = true;
} else {
document.comments_form.bakecookie.checked = false;
}
} :left: これを忘れないように!
}
}