Simple Local Avatars の評価項目の非表示について
-
Simple Local Avatars (simple-local-avatars.2.0.zip) を利用して、管理画面のプロフィールより、プロフィール画像を追加できるうよにしました。しかし、機能が追加されたことはよいのですが、写真をアップできる機能項目の下に、[評価]項目として4つのラジオボタンが表示されます。
———————————-
[評価]
◎ G — Suitable for all audiences
◎ PG — Possibly offensive, usually for audiences 13 and above
◎ R — Intended for adult audiences above 17
◎ X — Even more mature than aboveIf the local avatar is inappropriate for this site, Gravatar will be attempted.
———————————-上記を非表示にしようとおもい、本体のsimple-local-avatars.php の270行あたりの該当箇所を直接削除しました。(下記)
<tr>
<th scope=”row”><?php _e(‘Rating’); ?></th>
<td colspan=”2″>
<fieldset id=”simple-local-avatar-ratings” <?php disabled( empty( $profileuser->simple_local_avatar ) ); ?>>
<legend class=”screen-reader-text”><span><?php _e(‘Rating’); ?></span></legend>
<?php
if ( empty( $profileuser->simple_local_avatar_rating ) || ! array_key_exists( $profileuser->simple_local_avatar_rating, $this->avatar_ratings ) )
$profileuser->simple_local_avatar_rating = ‘G’;foreach ( $this->avatar_ratings as $key => $rating ) :
echo “\n\t<label><input type=’radio’ name=’simple_local_avatar_rating’ value='” . esc_attr( $key ) . “‘ ” . checked( $profileuser->simple_local_avatar_rating, $key, false ) . “/> $rating</label>
“;
endforeach;
?>
<p class=”description”><?php _e( ‘If the local avatar is inappropriate for this site, Gravatar will be attempted.’ ); ?></p>
</fieldset></td>
</tr>上記のコードを削除した結果、表示されなくなりましたが、肝心のプラグ機能に影響があるようで、プロフィール画面より、画像をメディアに追加できなくなりました(コードを元に戻すと、実際は、追加されているのですが、表示されていないだけで)。
解決策がわかりましたら、お手数ですが、教えてください。よろしくお願いします。
- トピック「Simple Local Avatars の評価項目の非表示について」には新たに返信することはできません。