WordPress: Option Reference:修订间差异
(新页面: __NOTOC__ Options are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with ...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
__NOTOC__ | __NOTOC__ | ||
[[WordPress:Option Reference|Options]] are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with some of the default values from the current WordPress install. By using the appropriate function, options can be [[WordPress:Function Reference/add_option|added]], [[WordPress:Function Reference/update_option|changed]], [[WordPress:Function Reference/delete_option|removed]], and [[WordPress:Function_Reference/get_option|retrieved]], from the [[WordPress:Database_Description#Table:_wp_options|wp_options table]]. This list accords to the WordPress 2.3.1 release, and does not include options that were deprecated by that version. | [[WordPress:Option Reference|Options]] are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with some of the default values from the current WordPress install. By using the appropriate function, options can be [[WordPress:Function Reference/add_option|added]], [[WordPress:Function Reference/update_option|changed]], [[WordPress:Function Reference/delete_option|removed]], and [[WordPress:Function_Reference/get_option|retrieved]], from the [[WordPress:Database_Description#Table:_wp_options|wp_options table]]. This list accords to the WordPress 2.3.1 release, and does not include options that were deprecated by that version. | ||
[[WordPress:Option Reference|选项]]是WordPress用来储存不同的参数和配置的多块数据。以下所列的是一些选项和一些来自当前WordPress安装的默认值。通过使用适当的函数,选项可以从[[WordPress:Database_Description#Table:_wp_options|wp_选项表]]中[[WordPress:Function Reference/add_option|添加]], [[WordPress:Function Reference/update_option|更改]], [[WordPress:Function Reference/delete_option|移除]], 和[[WordPress:Function_Reference/get_option|重新找回]]。这个列表与WordPress2.3.1版本一致,而且不包含那个版本不认可的选项。 | |||
Definitions are normally typed, possible option-values are bolded, and option-value definitions are italicized. Data types are given after the possible values (if those are given) like this: | Definitions are normally typed, possible option-values are bolded, and option-value definitions are italicized. Data types are given after the possible values (if those are given) like this: | ||
定义按一般地输入,可能选项值要是粗体的,而且选项值定义要斜体的。数据在可能的值(如果有的话)的后面,像: | |||
''Data type:'' '''Integer''' | ''Data type:'' '''Integer''' | ||
第9行: | 第13行: | ||
'''You can help make this page more complete!''' | '''You can help make this page more complete!''' | ||
''数据类型:'' '''整数''' | |||
<div style="border:blue 1px solid;padding:10px; background: #E6CCFF"> | |||
'''你可以帮助使这个页面更加地完善!''' | |||
Here are some things you can do to help: | Here are some things you can do to help: | ||
下面是一些你可以帮助做的事情: | |||
* Add documentation to un-documented options, by adding a description, possible values, and the option's data type. | * Add documentation to un-documented options, by adding a description, possible values, and the option's data type. | ||
*通过添加一个描述,可能的值,和选项的数据描述,给无正式文件的选项添加文件。 | |||
* List more options here, following the category structure (if they are not already listed). | * List more options here, following the category structure (if they are not already listed). | ||
*在这儿列出更多的选项,遵循类别结构(如果它们还没有列出来)。 | |||
* Correct errors by moving functions to better categories where appropriate, and of course fixing typos. | * Correct errors by moving functions to better categories where appropriate, and of course fixing typos. | ||
*通过将函数移到合适的更好的类别,当然还安装了打字稿,来更改错误。 | |||
Read [[WordPress:Contributing to WordPress]] to find out more about how you can contribute to the effort! | Read [[WordPress:Contributing to WordPress]] to find out more about how you can contribute to the effort! | ||
阅读[[WordPress:Contributing to WordPress|给WordPress做贡献]]来找出更多的关于你可以怎样地给WordPress做贡献! | |||
</div> | |||
</div> | </div> | ||
== View By Category == | == View By Category == | ||
==通过类别浏览 == | |||
{| cellspacing="10" width="100%" | {| cellspacing="10" width="100%" | ||
|- valign="top" | |- valign="top" | ||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
{| cellspacing="10" width="100%" | |||
|- valign="top" | |||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
== Discussion == | == Discussion == | ||
== 讨论== | |||
; <tt>blacklist_keys</tt> : When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress." | ; <tt>blacklist_keys</tt> : When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress." | ||
; <tt>blacklist_keys</tt> :当一个评论的内容中包含以下的任何内容,如名字,URL,电子邮件,或者IP,这个评论就被认为是一个兜售信息。一个词或者每行的IP。它会匹配里面的词,因此"按住"会匹配WordPress。 | |||
: ''Data type:'' '''String (possibly multi-line)''' | : ''Data type:'' '''String (possibly multi-line)''' | ||
: ''数据类型:'' '''String (可能是多行)''' | |||
; <tt>comment_max_links</tt> : Hold a comment in the queue if it contains the value of this option or more. | ; <tt>comment_max_links</tt> : Hold a comment in the queue if it contains the value of this option or more. | ||
; <tt>评论_最大的_链接</tt> : 在队列中保存一个评论,如果它包含了这个选项或者更多的选项的值。 | |||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: ''数据类型:'' '''整数''' | |||
; <tt>comment_moderation</tt> : Before a comment appears, an administrator must always approve the comment. | ; <tt>comment_moderation</tt> : Before a comment appears, an administrator must always approve the comment. | ||
; <tt>评论_审核</tt> :在一个评论出现之前,一个管理者通常要批准评论。 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''True'' | : '''0''' : ''True'' | ||
: '''0''' : ''真的'' | |||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: ''数据类型:'' '''整数''' | |||
; <tt>comments_notify</tt> : E-mail me when anyone posts a comment. | ; <tt>comments_notify</tt> : E-mail me when anyone posts a comment. | ||
; <tt>评论_通报</tt> :当有人发表了一个评论之后,就发电子邮件给我。 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
: '''0''' : ''不是的'' | |||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: ''数据类型:'' '''整数''' | |||
; <tt>default_comment_status</tt> : Allow comments (can be overridden with individual posts) | ; <tt>default_comment_status</tt> : Allow comments (can be overridden with individual posts) | ||
; <tt>默认的_评论_级别</tt> : | |||
: '''open''' : ''Allow comments'' | : '''open''' : ''Allow comments'' | ||
: '''打开''' : ''允许评论'' | |||
: '''closed''' : ''Disallow comments'' | : '''closed''' : ''Disallow comments'' | ||
: '''关闭''' : ''不允许评论'' | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''String''' | |||
; <tt>default_ping_status</tt> : Allow link notifications from other blogs (pingbacks and trackbacks). | ; <tt>default_ping_status</tt> : Allow link notifications from other blogs (pingbacks and trackbacks). | ||
; <tt>默认的_ping_级别</tt> :允许从其它的博客的链接通知(pingbacks和trackbacks)。 | |||
: '''open''' : ''Allow pingbacks and trackbacks from other blogs'' | : '''open''' : ''Allow pingbacks and trackbacks from other blogs'' | ||
: '''打开''' : ''允许来自其它的博客的pingbacks 和trackbacks '' | |||
: '''closed''' : ''Disallow pingbacks and trackbacks from other blogs'' | : '''closed''' : ''Disallow pingbacks and trackbacks from other blogs'' | ||
: '''关闭''' : ''不允许来自其它的博客的pingbacks和trackbacks '' | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''String''' | |||
; <tt>default_pingback_flag</tt> : Attempt to notify any blogs linked to from the article (slows down posting). | ; <tt>default_pingback_flag</tt> : Attempt to notify any blogs linked to from the article (slows down posting). | ||
; <tt>默认_pingback_flag</tt> :试着通报任何一个从文章中链接到的博客(缓慢发帖速度)。 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>moderation_keys</tt> : When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the moderation queue. One word or IP per line. It will match inside words, so "press" will match "WordPress." | ; <tt>moderation_keys</tt> : When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the moderation queue. One word or IP per line. It will match inside words, so "press" will match "WordPress." | ||
; <tt>审核_关键词</tt> :当一个评论内容包含了一下任何的词,名字,URL,电子邮件,或者IP,这个评论就会被放在了审核队列中。一个单词或者一行一个IP,它就会匹配里面的词,因此"按住" 就会匹配"WordPress。" | |||
: ''Data type:'' '''String (possibly multi-line)''' | : ''Data type:'' '''String (possibly multi-line)''' | ||
: ''数据类型:'' '''String (可能是多行的)''' | |||
; <tt>moderation_notify</tt> : E-mail me when a comment is held for moderation. | ; <tt>moderation_notify</tt> : E-mail me when a comment is held for moderation. | ||
; <tt>审核_通知</tt> :当一个评论被留住评论的时候,给我写一封电子邮件。 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>require_name_email</tt> : Before a comment appears, the comment author must fill out his/her name and email. | ; <tt>require_name_email</tt> : Before a comment appears, the comment author must fill out his/her name and email. | ||
; <tt>需要_名字_电子邮件</tt> :在一个评论出现之前,评论的作者必须填写他的/她的名字和电子邮件。 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
== General == | == General == | ||
== 一般的 == | |||
; <tt>admin_email</tt> : Administrator email | ; <tt>admin_email</tt> : Administrator email | ||
;<tt>管理_电子邮件</tt> :管理者 电子邮件 | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''字符串''' | |||
; <tt>blogdescription</tt> : Blog tagline | ; <tt>blogdescription</tt> : Blog tagline | ||
; <tt>博客描述</tt> : 博客 tagline | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''字符串''' | |||
; <tt>blogname</tt> : Blog title | ; <tt>blogname</tt> : Blog title | ||
; <tt>博客名</tt> :博客 标题 | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''字符串''' | |||
; <tt>comment_registration</tt> : Users must be registered and logged in to comment | ; <tt>comment_registration</tt> : Users must be registered and logged in to comment | ||
; <tt>评论_注册</tt> :用户必须注册并且连接到评论 | |||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>date_format</tt> : Default date format (see [[WordPress:Formatting Date and Time]]) | ; <tt>date_format</tt> : Default date format (see [[WordPress:Formatting Date and Time]]) | ||
; <tt>日期_格式</tt> :默认日期格式(请看[[WordPress:Formatting Date and Time|安排日期和时间格式]] | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''字符串''' | |||
; <tt>default_role</tt> : The default role of users who register at the blog. | ; <tt>default_role</tt> : The default role of users who register at the blog. | ||
; <tt>默认_角色</tt> : 注册在博客上的用户的默认角色。 | |||
: '''subscriber''' : | : '''subscriber''' : | ||
: '''订阅者''' : | |||
: '''administrator''' : | : '''administrator''' : | ||
: '''管理者''' : | |||
: '''editor''' : | : '''editor''' : | ||
: '''编辑者''' : | |||
: '''author''' : | : '''author''' : | ||
: '''作者''' : | |||
: '''contributor''' : | : '''contributor''' : | ||
: '''贡献者''' : | |||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
: ''数据类型:'' '''字符串''' | |||
; <tt>gmt_offset</tt> : Times in the blog should differ by this value. | ; <tt>gmt_offset</tt> : Times in the blog should differ by this value. | ||
; <tt>gmt_offset</tt> : 根据这个值,博客中的时期应该有所不同。 | |||
: '''-6''' : ''GMT -6 (aka Central Time, USA)'' | : '''-6''' : ''GMT -6 (aka Central Time, USA)'' | ||
: '''-6''' : ''GMT -6 (aka 中央标准时间, 美国)'' | |||
: '''0''' : ''GMT (aka Greenwich Mean Time)'' | : '''0''' : ''GMT (aka Greenwich Mean Time)'' | ||
: '''0''' : ''GMT (aka 格林尼治标准时间)'' | |||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: ''数据类型:'' '''整数''' | |||
; <tt>home</tt> : Blog address (URL) | ; <tt>home</tt> : Blog address (URL) | ||
; <tt>主页</tt> : 博客 地址(URL) | |||
: ''Data type:'' '''String (URI)''' | : ''Data type:'' '''String (URI)''' | ||
: ''数据 类型:'' '''字符串 (URI)''' | |||
; <tt>siteurl</tt> : WordPress address (URL) | ; <tt>siteurl</tt> : WordPress address (URL) | ||
; <tt>站点url</tt> : WordPress地址 (URL) | |||
: ''Data type:'' '''String (URI)''' | : ''Data type:'' '''String (URI)''' | ||
''数据类型:'' '''字符串(URI)''' | |||
; <tt>start_of_week</tt> : The starting day of the week. Default is 0 (Sunday). | ; <tt>start_of_week</tt> : The starting day of the week. Default is 0 (Sunday). | ||
; <tt>一周_的_开始</tt> :一周开始的第一天。默认为0(星期天)。 | |||
: '''0''' : ''Sunday'' | : '''0''' : ''Sunday'' | ||
: '''1''' : ''Monday'' | : '''1''' : ''Monday'' | ||
第97行: | 第314行: | ||
: '''6''' : ''Saturday'' | : '''6''' : ''Saturday'' | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
: '''0''' : ''星期天'' | |||
: '''1''' : ''星期一'' | |||
: '''2''' : ''星期二'' | |||
: '''3''' : ''星期三'' | |||
: '''4''' : ''星期四'' | |||
: '''5''' : ''星期五'' | |||
: '''6''' : ''星期六'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>time_format</tt> : Default time format (see [[WordPress:Formatting Date and Time]]) | ; <tt>time_format</tt> : Default time format (see [[WordPress:Formatting Date and Time]]) | ||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
第105行: | 第334行: | ||
|- valign="top" | |- valign="top" | ||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>时间_格式</tt> : 默认时间格式 (请看[[WordPress:Formatting Date and Time|设定日期和时间格式是]]) | |||
: ''数据类型:'' '''字符串''' | |||
; <tt>用户_可以_注册</tt> : 任何人都可以注册 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
|- valign="top" | |||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Miscellaneous === | === Miscellaneous === | ||
=== 混杂的 === | |||
; <tt>hack_file</tt> : Use legacy <tt>my-hacks.php</tt> file support | ; <tt>hack_file</tt> : Use legacy <tt>my-hacks.php</tt> file support | ||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
第125行: | 第382行: | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>hack_文件</tt> : 使用 legacy <tt>my-hacks.php</tt>文件支持 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>html_类型</tt> : 博客网页默认的MIME 类型(<tt>text/html</tt>, <tt>text/xml+html</tt>, 等等。) | |||
: ''数据类型:'' '''字符串(MIME 类型)''' | |||
; <tt>秘密</tt> : 在使用salting等等安装时创建的秘密的值。 | |||
: ''数据类型:'' '''字符串 (MD5)''' | |||
; <tt>上传_路径</tt> : 在这个文件夹上储存上载的内容(与WordPress根相关) | |||
: ''数据类型:'' '''字符串 (相关的路径)''' | |||
; <tt>上载的内容_使用_年月_文件夹</tt> : 将上传的内容按月份整理- 文件夹以年份为基础 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>use_linksupdate</tt> :追溯链接的更新时间 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Permalinks === | |||
=== Permalinks === | === Permalinks === | ||
; <tt>permalink_structure</tt> : The desired structure of your blog's permalinks. Some examples: | ; <tt>permalink_structure</tt> : The desired structure of your blog's permalinks. Some examples: | ||
: ''/%year%/%monthnum%/%day%/%postname%/'' : Date and name based | : ''/%year%/%monthnum%/%day%/%postname%/'' : Date and name based | ||
第134行: | 第425行: | ||
|- valign="top" | |- valign="top" | ||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>permalink_结构</tt> : 你的博客的permalinks想得到的结构。一些例子: | |||
: ''/%年%/%月num%/%日%/%文章名%/'' : 日期和名称基于 | |||
: ''/归档/%文章_id%/'' : 数字的 | |||
: ''/%文章名%/'' : 文章名为基础 | |||
:通过浏览[[WordPress:Using Permalinks|使用Permalinks]],你可以看到更多的例子。 | |||
: ''数据类型:'' '''字符串''' | |||
|- valign="top" | |||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Privacy === | === Privacy === | ||
=== 秘密=== | |||
; <tt>blog_public</tt> | ; <tt>blog_public</tt> | ||
: '''1''' : ''I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers.'' | : '''1''' : ''I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers.'' | ||
第140行: | 第458行: | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>博客_公共的</tt> | |||
: '''1''' : ''我希望每个人都能够看到我的博客,包括搜索引擎(像Google, Sphere, Technorati) 和 archivers.'' | |||
: '''0''' : ''我想要阻碍搜索引擎,但是允许一般的访客。'' | |||
: ''数据类型:'' '''整数''' | |||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Reading === | === Reading === | ||
=== 阅读=== | |||
; <tt>blog_charset</tt> : Encoding for pages and feeds. The character encoding you write your blog in (UTF-8 is recommended). | ; <tt>blog_charset</tt> : Encoding for pages and feeds. The character encoding you write your blog in (UTF-8 is recommended). | ||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
第167行: | 第505行: | ||
|- valign="top" | |- valign="top" | ||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>博客_charset</tt> : 为网页和feeds编码。字符编码 你在(推荐UTF-8)写你的博客。 | |||
: ''数据 类型:'' '''字符串''' | |||
; <tt>gzipcompression</tt> : 如果浏览器要求的话,WordPress 应该(用gzip)压缩文章。 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>在_首页的_网页</tt> : 网页的ID应该显示在首页上。需要 ''显示_在_首页'''s value to be '''网页'''. | |||
: ''数据类型:'' '''整数''' | |||
; <tt>每个_网页上的_文章</tt> : 博客网页上最多显示'''x''' 许多文章。 | |||
: ''数据类型:'' '''整数''' | |||
; <tt>每个_rss的_文章</tt> : 在RSS feeds上最多显示'''x''' 许多文章。 | |||
: ''数据类型:'' '''整数''' | |||
; <tt>rss_摘录_长度</tt> : 摘录的长度显示在RSS feeds。需要''rss_使用_摘录''来拥有一个'''1'''的值。 | |||
: ''数据类型:'' '''整数''' | |||
; <tt>rss_语言</tt> : RSS feeds 的语言(只有元数据目的) | |||
: ''数据类型:'' '''字符串 (ISO两个字母的语言代码)''' | |||
; <tt>rss_使用_摘录</tt> : Show an excerpt instead of the full text of a post in RSS feeds | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据 类型:'' '''整数''' | |||
; <tt>显示_在_首页</tt> : 在首页上显示什么 | |||
: '''文章''' : ''你最近的文章'' | |||
: '''网页''' : ''一个静态的网页 (看看_在_首页)'' | |||
: ''数据类型:'' '''字符串''' | |||
|- valign="top" | |||
|bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Themes === | === Themes === | ||
=== 主题=== | |||
; <tt>template</tt> : The slug of the currently activated theme (how it is accessed by path, ex. ''/wp-content/themes/'''''some-theme''': some-theme would be the value) | ; <tt>template</tt> : The slug of the currently activated theme (how it is accessed by path, ex. ''/wp-content/themes/'''''some-theme''': some-theme would be the value) | ||
: ''Data type:'' '''String''' | : ''Data type:'' '''String''' | ||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | ||
; <tt>模板</tt> : 当前激活主题的slug (它是怎样通过路径得到访问的, ex. ''/wp-content/themes/'''''一些主题''':某个主题会是那个值) | |||
: ''数据类型:'' '''字符串''' | |||
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| | |||
=== Writing === | === Writing === | ||
=== 写 === | |||
; <tt>default_category</tt> : ID of the category that posts will be put in by default | ; <tt>default_category</tt> : ID of the category that posts will be put in by default | ||
: ''Data type:'' '''Integer''' | : ''Data type:'' '''Integer''' | ||
第201行: | 第606行: | ||
: '''1''' : ''Yes'' | : '''1''' : ''Yes'' | ||
: '''0''' : ''No'' | : '''0''' : ''No'' | ||
|} | |||
; <tt>默认的_类别</tt> : 文章将会被置于默认的类别ID 。 | |||
: ''数据类型:'' '''整数''' | |||
; <tt>默认的_电子邮件_类别</tt> :当通过电子邮件写的时候,文章就会默认提交的类别的 ID | |||
: ''数据类型:'' '''整数''' | |||
; <tt>默认的_链接_类别</tt> : 链接被默认置入的类别的ID | |||
: ''数据类型:'' '''整数''' | |||
; <tt>默认的_文章_编辑_rows</tt> : 文章框的大小 (in lines) | |||
: ''数据类型:'' '''整数''' | |||
; <tt>邮件服务器_注册</tt> : 用来通过电子邮件向WordPress发表文章的邮件服务器用户名 | |||
: ''数据类型:'' '''字符串''' | |||
; <tt>邮件服务器_通过</tt> :通过电子邮件向WordPress发表文章的邮件服务器密码 | |||
: ''数据类型:'' '''字符串''' | |||
; <tt>邮件服务器_端口</tt> :通过电子邮件向WordPress发表文章的邮件服务器端口 | |||
: ''数据类型:'' '''整数''' | |||
; <tt>电子邮件服务器_url</tt> : 通过电子邮件向WordPress发表文章的邮件服务器 | |||
: ''数据类型:'' '''字符串''' | |||
; <tt>ping_站点</tt> : 当你发表一篇新的文章,WordPress会自动地通知以下的站点更新服务。关于这个,请看[[WordPress:Update Services|更新服务]]。 用分行分开多个服务。需要''博客_公共'' 有一个数值'''1'''. | |||
: ''数据类型:'' '''字符串 (可能多行)''' | |||
; <tt>使用_balanceTags</tt> : 自动地更正无用地嵌套的XHTML | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>使用_smilies</tt> :显示时, 转换emoticons 像<tt>:-)</tt> 和<tt>:P</tt> 为图形 | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
: ''数据类型:'' '''整数''' | |||
; <tt>使用_trackback</tt> : 是能够发出和收到trackbacks | |||
: '''1''' : ''是的'' | |||
: '''0''' : ''不是的'' | |||
|} | |} |
2008年5月7日 (三) 16:41的版本
Options are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with some of the default values from the current WordPress install. By using the appropriate function, options can be added, changed, removed, and retrieved, from the wp_options table. This list accords to the WordPress 2.3.1 release, and does not include options that were deprecated by that version.
选项是WordPress用来储存不同的参数和配置的多块数据。以下所列的是一些选项和一些来自当前WordPress安装的默认值。通过使用适当的函数,选项可以从wp_选项表中添加, 更改, 移除, 和重新找回。这个列表与WordPress2.3.1版本一致,而且不包含那个版本不认可的选项。
Definitions are normally typed, possible option-values are bolded, and option-value definitions are italicized. Data types are given after the possible values (if those are given) like this:
定义按一般地输入,可能选项值要是粗体的,而且选项值定义要斜体的。数据在可能的值(如果有的话)的后面,像:
Data type: Integer
You can help make this page more complete!
数据类型: 整数
你可以帮助使这个页面更加地完善!
Here are some things you can do to help:
下面是一些你可以帮助做的事情:
- Add documentation to un-documented options, by adding a description, possible values, and the option's data type.
- 通过添加一个描述,可能的值,和选项的数据描述,给无正式文件的选项添加文件。
- List more options here, following the category structure (if they are not already listed).
- 在这儿列出更多的选项,遵循类别结构(如果它们还没有列出来)。
- Correct errors by moving functions to better categories where appropriate, and of course fixing typos.
- 通过将函数移到合适的更好的类别,当然还安装了打字稿,来更改错误。
Read WordPress:Contributing to WordPress to find out more about how you can contribute to the effort!
阅读给WordPress做贡献来找出更多的关于你可以怎样地给WordPress做贡献!
View By Category
通过类别浏览
|