iG:Syntax Hiliter をちょこっと修正

公開日: 2008年3月25日火曜日 plugins WordPress

コード表示に便利なプラグインのiG:Syntax Hiliter。
Canned !! — my Atropine » iG:Syntax Hiliter

ですが、WordPress 2.3.3 にアップグレードしてからどうも動作していませんでした。
ソースを確認すると
[html]

[/html]
になっている。

ん? triumphalroman.net/wp-content ??
インストールディレクトリを変更したので、triumphalroman.net/wp/wp-content じゃないとそりゃ動作しないわ。
ってことで原因を調査するとどうもここっぽい。
wp-content/plugins/syntax_hilite.php

[php num=31]
$igsyntax_hiliter_path = get_settings('home')."/wp-content/plugins/ig_syntax_hilite"; //URL to the plugin directory
[/php]

なので下記ページを参考にして…
get_settings - WordPress

[php num=31]
$igsyntax_hiliter_path = get_settings('siteurl')."/wp-content/plugins/ig_syntax_hilite"; //URL to the plugin directory
[/php]
こうしてアップロードしてみるとうまく動作しましたとさ。

ま、get_settings('home')のまんまでパスを "wp/wp-content..." としてもよかったんだけどね。
  • ?±??G???g???[?d????u?b?N?}?[?N???A

0 件のコメント :

コメントを投稿