Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
[WordPress] pukiwiki記法のプラグインで複数行の引数を渡せるようにする | おれせか
おれせか

なんかそれっぽいのをうにうに。

まずは『modPukiWkiで複数行の引数を渡せるようにする』のまま修正。

なんかエラーが出る・・・なんぞこれ。
ちょっと下記のようにイジイジしてみたらとりあえずエラー無くなった。

  • %inst-dir%/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php
//▼ここから▼
/*
if (preg_match("/^\#([^\(]+)(?:\((.*)\))?/", $text, $out) || ! PukiWikiPlugin::exist_plugin_convert($out[1])) {
    return new PukiWikiDiv($out);
}
 */
//▲ここまでを▲
// 以下のように修正
if (preg_match("/^\#([^\(]+)(?:\((.*)\))?/", $text, $out) || ! PukiWikiPlugin::exist_plugin_convert($out[1])) {
    return new PukiWikiParagraph($text);
} else {
    return new PukiWikiDiv($out);
} 

でも、なんかおかしい。つーか元から入ってるpukiwikiプラグインも動作してない。
そもそもPukiwiki.ini.phpに書いたはずの「PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK」がどうも定義されてないっぺー。
というわけで色々見たかんじどうもini読み込んでないぽってことでちょっとイジイジ。

  • %inst-dir%/wp-content/plugins/modPukiWiki/PukiWiki.php
//▼ここから▼
/*
//環境定義ファイルの読込
if (file_exists('PukiWiki.ini.php')) {
    include('PukiWiki.ini.php');
} else if (file_exists('PukiWiki.ini.dist.php')) {
    include('PukiWiki.ini.dist.php');
}
 */
//▲ここまでを▲
// 以下のように修正
//環境定義ファイルの読込
if (file_exists(dirname(__FILE__) . '/PukiWiki.ini.php')) {
    include('PukiWiki.ini.php');
} else if (file_exists(dirname(__FILE__) . '/PukiWiki.ini.dist.php')) {
    include('PukiWiki.ini.dist.php');
} 

これでオッケー。

というわけで、さっきでっちあげたコード書く用のpukiwikiプラグインを

 #code(php)
      ほげほげ
 #code(end)

てな形から

 #code(php){{
     ほげほげ
 }}

に変更した。

PAGETOP
PAGETOP
PAGETOP

Comments (9)

May I speak to Lora,please? I work for the governmentI doubt itShe was injured badly in the accident.I will arrange everything.Let’s take a short break for lunch.You asked for it!Can you cover for me on Fridayhelp me tell me how to get there?You are a chicken.Can you put me in the picture about the World Cup Football Match?

[2013/03/16 (土) 16:17]

This type of planning for choosing a good application design company will believe every people because these are very good as well as nice and precious.

[2014/07/12 (土) 15:56]

vまんまだと、『名前とメールアドレスの入力を必須にする』でメアドも必須になっちゃうから。

[2014/12/25 (木) 13:06]

とりあえず、しばらくはhtml直書きでネスト作ることも無さそうなので、無理やりにリストのネストの時のみ対応。

%inst-dir%/wp-includes/formatting.php のfunction wpautop(~){~}内。

[2015/09/16 (水) 15:59]

てのがマスター/サーヴァントだったりとか。

[2015/11/23 (月) 17:31]

一方、優れたスーパーコピー素材で作りますから、質感が素晴らしいです

[2016/01/15 (金) 17:50]

http://www.corvallisoregon.gov/redirect.aspx?url=http://www.oneel.biz
Make fit you stretch your hdl if you indie critical weary irregular problems, especially: your skull balance chase you to ingestion your torah easy immeasurably the pursuer is instilled into it (unless a valuable is bright to distribution the bladder)

[2016/06/13 (月) 00:10]

なんかエラーが出る・・・なんぞこれ。
ちょっと下記のようにイジイジしてみたらとりあえずエラー無くなった。

[2016/06/20 (月) 11:21]

Polo Ralph Lauren Hettegenser Dame
Technology has advanced more than ever before today. With the new type of cell phones popping out consistently, level of competition is tough. Yet the iphones have always remained a step in advance, and have presented clients with adequate support for quite some time. Just have a look ahead for more information on the iphone as well as its amazing functions.

https://www.deleutebroyers.nl/images/del2/9886-jordan-neymar.jpg

Possessing a company that you can run out of your house offers you advantages in work and then in daily life. If you are looking to start one of these brilliant organizations or happen to be doing the work for a time, but need a number of tips, then read on for some great tips you may use.

https://www.societe.nu/imagess/soc2/1538-new-balance-574-special-edition.jpg

[2017/10/17 (火) 06:54]
PAGETOP

Comment Form

PAGETOP

Trackbacks (0)

トラックバックはありません。

PAGETOP

Trackback URL

PAGETOP

Search