練炭ブログ

萌え壁紙、Irvine、DMonkey、Proxomitron などの情報を扱ってます。

WordPress 3.3.1

コメントなし»

wp-admin/css/wp-admin.css
wp-admin/includes/meta-boxes.php
wp-admin/js/post.js
wp-includes/js/quicktags.js
wp-includes/formatting.php

────
テキスト変換機能(680x0 や -- などが勝手に化ける問題)を無効化

wp-includes/ フォルダにある formatting.php の wptexturize() 関数の冒頭に return $text; を追加し、以下のようにします。

function wptexturize($text) {
return $text;

────
記事の編集画面で「カテゴリー」にスクロールバーを出さない

wp-admin/css/ フォルダにある wp-admin.css から、以下の部分を探します。

#linkcategorydiv div.tabs-panel{height:200px;

height:min-height: に変更します。

同じコードがもう一つあるので、そちらも同様に変更します。

────
記事の編集画面の「カテゴリー」でチェック状態で並び替えない

wp-admin/includes/ フォルダにある meta-boxes.php から、以下の部分を探します(post_categories_meta_box 関数の中にあります)。

<?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>

$popular_ids の直後に , 'checked_ontop' => false を追加します。

────
記事の編集画面の「タグ」で日本語変換の確定時に勝手にタグを追加しない

wp-admin/js/ フォルダにある post.js から、以下の部分を探します(co.keyup ではない方)。

.keyup

これを .keypress に変更します。

その少し後ろに以下のコードがあるので削除します。

.keypress(function(d){if(13==d.which){d.preventDefault();return false}})

────
記事の編集画面から使わないクイックタグを削除

wp-include/js/ フォルダにある quicktags.js から、以下の部分を探して削除します。

edButtons[120]=new c.TagButton("more","more","<!--more-->","","t"),edButtons[130]=new c.SpellButton(),

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です