サムネイルサイズ変更

再インストールしてから画像ファイルの設定をしていなかったんで。
サムネイルサイズ変更。2.5系は変更できるようですが、2.2系は手動変更です。

■wp-admin/admin-functions.php 内の128と96を適当にいじる。200と150に変更した。

●1980行付近
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {

●2086行付近
function get_udims( $width, $height) {
if ( $height < = 128 && $width <= 96 ) return array( $width, $height); elseif ( $width / $height > 4 / 3 )
return array( 128, (int) ($height / $width * 128));
else
return array( (int) ($width / $height * 96 ), 96 );
}

●2207行付近
$max_side = apply_filters( ‘wp_thumbnail_max_side_length’, 128, $attachment_id, $file );

●テストアップロード
080501011.jpg

コメントを残す

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

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)