[php]
<?php
//トップページ以外の場合にnot_homeクラスを追加
$body_class = "";
if ( !is_front_page() ) {
$body_class .= ' not_home';
}
?>
<body id="top" <?php body_class( $body_c…
プラグインダウンロード
以下のサイト内から「Angsuman’s Authenticated WordPress Plugin」をダウンロードします。
Angsuman’s Authenticated WordPress Pluginプラグイン編集
プラグインの内容が古くなっていて、最新のWordPressの認証に対応していないので、以下のように書き換えます。
ac_authenticator.phpの14行目付近
if ( (!empty($_COOKIE[USER_COOKIE]) && !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) || (empty($_COOKIE[USER_COOKIE])) ) {上記のコードを以下のコードで置き換えます。
if ( !is_user_logged_in() ){
この投稿へのコメント
コメントはまだありません。