WordPress のバージョンを 2.9.2 にバージョンアップ。
バージョンアップの度毎にファイルの書き換えを行わないといけない。
「WordPress カスタマイズ 備忘録」のページに書いておいたつもりで書いてなく、今回は久々だったので何処に書いておいたのかちょっと探し回ってしまいました。
本来は個云う時のために「WordPress カスタマイズ 備忘録」のページを作成したのですが・・・反省。
今回は、「Wptouch」のバージョンアップも来ていたので合わせてバージョンアップ。
WordPress をバージョンアップした場合に書き換えが必要な事。
・wp-settings.php
(ダッシュボードが真っ白で何も表示されなくなる、自動アップデートが途中で止まるのを回避するため)
if ( !defined( 'WP_MEMORY_LIMIT' ) ) |
define( 'WP_MEMORY_LIMIT' , '32M' ); |
を
if ( !defined( 'WP_MEMORY_LIMIT' ) ) |
define( 'WP_MEMORY_LIMIT' , '64M' ); |
を
もう一ヶ所は
<a href= "{$image_upload_iframe_src}&TB_iframe=true" id= "add_image" title= '$image_title' onclick= "return false;" ><img src= 'images/media-button-image.gif' alt= '$image_title' /></a> |
を
<a href= "{$image_upload_iframe_src}&TB_iframe=true" id= "add_image" title= '$image_title' onclick= "return false;" ><img src= 'images/media-button-image.gif' alt= '$image_title' /></a> |
<a href= "javascript:w=window.open('{$image_upload_iframe_src}','','scrollbars=yes,Width=650,Height=700,top=0,left=0');w.focus();" id= "add_image" title= '$image_title' onclick= "return true;" ><img src= 'images/media-button-image1.gif' alt= '$image_title' /></a> |
・メディアボタンを変更
(従来のフラッシュの方法とポップアップの方法アイコンで区別するため)
アイコンは、wp-admin/images/media-button-image.gif 
なので、アイコンを新規作成して media-button-image1.gif 
とする。
次回から探さなくても良いように「WordPress カスタマイズ 備忘録」のページにも記述しておく事にする。
[New entry]: WordPress バージョンアップ後にする事 – WordPress のバージョンを 2.9.2 にバージョンアップ。バージョンアップの度毎にファイルの書き換えを行わないといけない。「WordPres… http://wp.me/pJ3FQ-1kI
★★★yoidoreo: WordPress バージョンアップ後にする事 http://bit.ly/9bBCL8
★★★yoidoreo WordPress バージョンアップ後にする事 http://bit.ly/9bBCL8
★yoidoreo WordPress バージョンアップ後にする事 http://bit.ly/b9tQCq
WordPress バージョンアップ後にする事 http://ff.im/-gfOdl
☆yoidore: WordPress バージョンアップ後にする事 http://bit.ly/dyp6AE #apr_
★yoidoreo : WordPress バージョンアップ後にする事 http://bit.ly/9bBCL8
[RSS] WordPress バージョンアップ後にする事 http://j.mp/dDvca1 [@myen]
めもめも。 [Share] RT: WordPress バージョンアップ後にする事 – B! http://j.mp/cVrFm4
WordPress バージョンアップ後にする事 http://ff.im/-gmZIB