Lifestream導入とコード修正
WordPressのプラグイン「Lifestream」を使い始めました。
様々なソーシャルフィードを一覧として見ることができ、また、自動で記事にも貼り付けられ便利です。
t2bからLifestreamへの移行も検討中です。今日の夜、Lifestream経由で上手くフィードがWordPressに投げられたら、本格的に移行の予定。
ただ、インストール直後は日付の区切り認識がうまくいっておらず、タイムゾーン設定が正しくないような感じでした(Todayの欄には本日の記事が入るべきところ、昨日の記事の途中まで入ってしまう)。
ざっと、コードの怪しそうなところを見たところ、core.phpの97行目のところで
return $this->date + LIFESTREAM_DATE_OFFSET;
というところがあり、二重にタイムゾーン対応しているのかなと思って、
return $this->date;
とやったら、上手く動きました。
https://www.tokano.net/d/lifestream
とりあえずの対策です。
こんなんでいいのかな?
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /home/users/1/ttokano/web/net/tokano/d/wp-content/plugins/social/lib/social/walker/comment.php on line 18
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /home/users/1/ttokano/web/net/tokano/d/wp-content/plugins/social/lib/social/walker/comment.php on line 42
[…] Lifestream導入とコード修正|時は流れて […]
[…] Lifestream導入とコード修正|時は流れて […]