Home > wordpress > Wordpress2.9の注意点

Wordpress2.9の注意点

Wordpress2.9がアップされましたが、少々追加機能が多いので、注意が必要です。
とくにヘッダーに記載されるrel=canonical タグは、all in one Seoプラグインを入れている場合、バッティングするので、テーマのheader.phpに下記のように書くことをお勧め致します。
< ?php remove_action(‘wp_head’, ‘rel_canonical’); ?>
※all in one Seoプラグイン1.6.10でcanonicalタグのバッティングが解消されました
Wordpress2.9に限らず、デフォルトでいろんなヘッダーが表示されるので、私は下記を記載して、最小限のヘッダー表示にしております。
< ?php remove_action(‘wp_head’, ‘wp_generator’); remove_action(‘wp_head’, ‘index_rel_link’); remove_action(‘wp_head’, ’start_post_rel_link’); remove_action(‘wp_head’,'rsd_link’); remove_action(‘wp_head’,'wlwmanifest_link’); remove_action(‘wp_head’,'adjacent_posts_rel_link’); ?>

あと、wp-config.php ファイルに define(‘WP_ALLOW_REPAIR’, true);を追記すると、自動データベース最適化してくれるそうで、そこも忘れずに記載しときたいですね。
↑↑↑
これはただ単に”wp-admin/maint/repair.php”にアクセスするとデータベース最適化ができるというだけで、一般のユーザーに対して無制限にアクセスされる可能性があるので、記述は推奨しません。

Comments:0

Comment Form
Remember personal info

Trackbacks:1

Trackback URL for this entry
http://webcross01.net/archives/648.html/trackback
Listed below are links to weblogs that reference
Wordpress2.9の注意点 from WEB in the morning
pingback from Tweets that mention Wordpress2.9の注意点:WEB in the morning -- Topsy.com 09-12-20 (日) 20:29

[...] This post was mentioned on Twitter by 伊藤nobubu, 佐藤よしこ. 佐藤よしこ said: ありがとうございますっ(^-^)参考にします~☆ RT @1nobubu @mamadiary ちょっと出かけてました。参考までに、All in One SEO Pac [...]

Home > wordpress > Wordpress2.9の注意点

The Associates
Search
Feeds
Meta
一番大好きなドラマー後藤マスヒロ氏のホムペ

Return to page top