久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress:WPMU Functions/get blog list

來自站長百科
Fludlen討論 | 貢獻(xiàn)2008年9月26日 (五) 15:34的版本
(差異) ←上一版本 | 最后版本 (差異) | 下一版本→ (差異)
跳轉(zhuǎn)至: 導(dǎo)航、? 搜索

Returns a stdClass Object of blogs with each in the following format:

返回博客的stdClass Object,每個Object的格式如下:

 stdClass Object (
   [blog_id] => 1
   [site_id] => 1
   [domain] => sub.example.com
   [path] => /pathname/
   [registered] => 2008-01-01 01:00:00
   [last_updated] => 2008-01-01 01:00:00
   [public] => 1
   [archived] => 0
   [mature] => 0
   [spam] => 0
   [deleted] => 0
   [lang_id] => 0
   [blogname] => Blog Name
   [siteurl] => http://sub.example.com/pathname
   [post_count] => 1
 )

stdClass Object (

   [blog_id] => 1
   [site_id] => 1
   [domain] => sub.example.com
   [path] => /pathname/
   [registered] => 2008-01-01 01:00:00
   [last_updated] => 2008-01-01 01:00:00
   [public] => 1
   [archived] => 0
   [mature] => 0
   [spam] => 0
   [deleted] => 0
   [lang_id] => 0
   [blogname] => Blog Name
   [siteurl] => http://sub.example.com/pathname
   [post_count] => 1
 )

Note[ ]

注意[ ]

Orders the blog list by registered date in descending order (oldest to newest). As such, using start and end may slice blogs other than than those desired. An improvement to this would be to sort by blog_id, blogname or even allowing the developer to specify their own order (for example: get_blog_list(0,10,true,blogname).

以遞減的順序,根據(jù)博客的注冊日期,列出博客(從最晚注冊到最新注冊)。這樣,使用start and end可能會分開博客,而不會得到預(yù)期的效果。改善的方法是根據(jù)blog_id,博客名分類,甚至允許開發(fā)人員規(guī)定自己的博客順序(例如:get_blog_list(0,10,正確的,博客名)。



Return to WordPress:WPMU_Functions

返回到 WPMU_Functions