內容簡介
大多數人不需要此外掛程式。如果他們沒有它,也不會注意到任何差別。這個外掛程式只是將 WP_Query 的預設排序從「posts.post_date」更改為「posts.post_date_gmt」——也就是依據文章的 GMT 時間戳記排序,而不是依據本地時區。
誰需要這個外掛程式呢?需要經常切換時區的人。需要運行 WordPress 網絡安裝並希望能夠輕鬆地聚合所有網絡博客並照正確順序排序的人。我不知道。我為 FreeThoughtBlogs.com 編寫它,以便他們的「最新文章」側邊欄不會只顯示來自早期時區幾個博客的文章。如果對您有用,那太好了。
我希望這個外掛程式會被 WordPress 核心更改默認排序順序所取代。我想不出為什麼評論是按 GMT 排序,而文章則按本地時間排序。
就我所知,此外掛程式可能適用於比 3.0 更舊的版本。我只在 3.2.1 上測試了它。
外掛標籤
開發者團隊
原文外掛簡介
Most people don’t need this plugin. Most wouldn’t notice a difference if they had it. All it does is change the default sort order of a WP_Query from posts.post_date to posts.post_date_gmt — that is, sort on the GMT timestamp of a post rather than the local time zone.
Who needs this? People who switch time zones frequently. People running a network installation of WordPress where they want to be able to aggregate posts from all their network blogs easily, and in the right order. I don’t know. I wrote it for FreeThoughtBlogs.com, so their “most recent posts” sidebar would stop showing only posts from a few blogs in early time zones. If it works for you, great.
I have every hope that this plugin will be made obsolete by the default sort order being changed in the WordPress core. I can think of no good reason why comments are sorted by GMT but posts by local time.
For all I know, this plugin works with older versions than 3.0. I’ve only tested it with 3.2.1.
