Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d138bc1f38
commit
a7feaed0e6
|
@ -9,7 +9,7 @@
|
|||
/**
|
||||
* The custom background class.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@ class Custom_Background {
|
|||
* Callback for header div.
|
||||
*
|
||||
* @var callback
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
*/
|
||||
var $admin_image_div_callback;
|
||||
|
@ -36,7 +36,7 @@ class Custom_Background {
|
|||
/**
|
||||
* PHP4 Constructor - Register administration header callback.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param callback $admin_header_callback
|
||||
* @param callback $admin_image_div_callback Optional custom image div output callback.
|
||||
* @return Custom_Background
|
||||
|
@ -49,7 +49,7 @@ class Custom_Background {
|
|||
/**
|
||||
* Set up the hooks for the Custom Background admin page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function init() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
|
@ -68,7 +68,7 @@ class Custom_Background {
|
|||
/**
|
||||
* Set up the enqueue for the CSS & JavaScript files.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function admin_load() {
|
||||
wp_enqueue_script('custom-background');
|
||||
|
@ -78,7 +78,7 @@ class Custom_Background {
|
|||
/**
|
||||
* Execute custom background modification.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function take_action() {
|
||||
|
||||
|
@ -132,7 +132,7 @@ class Custom_Background {
|
|||
/**
|
||||
* Display the custom background page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function admin_page() {
|
||||
?>
|
||||
|
@ -252,7 +252,7 @@ class Custom_Background {
|
|||
/**
|
||||
* Handle a Image upload for the background image.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function handle_upload() {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
/**
|
||||
* The custom header image class.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
@ -19,7 +19,7 @@ class Custom_Image_Header {
|
|||
* Callback for administration header.
|
||||
*
|
||||
* @var callback
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
*/
|
||||
var $admin_header_callback;
|
||||
|
@ -28,7 +28,7 @@ class Custom_Image_Header {
|
|||
* Callback for header div.
|
||||
*
|
||||
* @var callback
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
*/
|
||||
var $admin_image_div_callback;
|
||||
|
@ -38,7 +38,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* PHP4 Constructor - Register administration header callback.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param callback $admin_header_callback
|
||||
* @param callback $admin_image_div_callback Optional custom image div output callback.
|
||||
* @return Custom_Image_Header
|
||||
|
@ -51,7 +51,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Set up the hooks for the Custom Header admin page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function init() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
|
@ -69,7 +69,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Get the current step.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return int Current step
|
||||
*/
|
||||
|
@ -87,7 +87,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Set up the enqueue for the JavaScript files.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function js_includes() {
|
||||
$step = $this->step();
|
||||
|
@ -115,7 +115,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Execute custom header modification.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function take_action() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
|
@ -210,7 +210,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Execute Javascript depending on step.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function js() {
|
||||
$step = $this->step();
|
||||
|
@ -223,7 +223,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Display Javascript based on Step 1.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function js_1() { ?>
|
||||
<script type="text/javascript">
|
||||
|
@ -301,7 +301,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Display Javascript based on Step 2.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function js_2() { ?>
|
||||
<script type="text/javascript">
|
||||
|
@ -353,7 +353,7 @@ class Custom_Image_Header {
|
|||
/**
|
||||
* Display first step of custom header image page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function step_1() {
|
||||
$this->process_default_headers();
|
||||
|
@ -448,7 +448,7 @@ if ( !empty($this->default_headers) ) {
|
|||
/**
|
||||
* Display second step of custom header image page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function step_2() {
|
||||
check_admin_referer('custom-header');
|
||||
|
@ -528,7 +528,7 @@ if ( !empty($this->default_headers) ) {
|
|||
/**
|
||||
* Display third step of custom header image page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function step_3() {
|
||||
check_admin_referer('custom-header');
|
||||
|
@ -577,7 +577,7 @@ if ( !empty($this->default_headers) ) {
|
|||
/**
|
||||
* Display last step of custom header image page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function finished() {
|
||||
$_GET['updated'] = 1;
|
||||
|
@ -587,7 +587,7 @@ if ( !empty($this->default_headers) ) {
|
|||
/**
|
||||
* Display the page based on the current step.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function admin_page() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
|
|
|
@ -1035,7 +1035,7 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Upgrader
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
var $in_loop = false;
|
||||
|
|
|
@ -550,7 +550,7 @@ function unzip_file($file, $to) {
|
|||
* This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class.
|
||||
* Assumes that WP_Filesystem() has already been called and set up.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
|
@ -612,7 +612,7 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) {
|
|||
* This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the PclZip library.
|
||||
* Assumes that WP_Filesystem() has already been called and set up.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
|
|
|
@ -408,7 +408,7 @@ function post_comment_status_meta_box($post) {
|
|||
/**
|
||||
* Display comments for post table header
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param $result table header rows
|
||||
* @return
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/**
|
||||
* Determine if uploaded file exceeds space quota.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param array $file $_FILES array for a given file.
|
||||
* @return array $_FILES array with 'error' key set if file exceeds quota. 'error' is empty otherwise.
|
||||
|
@ -39,7 +39,7 @@ add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
|
|||
/**
|
||||
* Delete a blog
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id Blog ID
|
||||
* @param bool $drop True if blog's table should be dropped. Default is false.
|
||||
|
@ -514,7 +514,8 @@ function refresh_user_details($id) {
|
|||
|
||||
function format_code_lang( $code = '' ) {
|
||||
$code = strtolower(substr($code, 0, 2));
|
||||
$lang_codes = array('aa' => 'Afar', 'ab' => 'Abkhazian', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'ba' => 'Bashkir', 'bm' => 'Bambara', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan; Valencian', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'zh' => 'Chinese', 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi; Dhivehi; Maldivian', 'nl' => 'Dutch; Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijian', 'fi' => 'Finnish', 'fr' => 'French', 'fy' => 'Western Frisian', 'ff' => 'Fulah', 'ka' => 'Georgian', 'de' => 'German', 'gd' => 'Gaelic; Scottish Gaelic', 'ga' => 'Irish', 'gl' => 'Galician', 'gv' => 'Manx', 'el' => 'Greek, Modern', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian; Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'ig' => 'Igbo', 'is' => 'Icelandic', 'io' => 'Ido', 'ii' => 'Sichuan Yi', 'iu' => 'Inuktitut', 'ie' => 'Interlingue', 'ia' => 'Interlingua (International Auxiliary Language Association)', 'id' => 'Indonesian', 'ik' => 'Inupiaq', 'it' => 'Italian', 'jv' => 'Javanese', 'ja' => 'Japanese', 'kl' => 'Kalaallisut; Greenlandic', 'kn' => 'Kannada', 'ks' => 'Kashmiri', 'kr' => 'Kanuri', 'kk' => 'Kazakh', 'km' => 'Central Khmer', 'ki' => 'Kikuyu; Gikuyu', 'rw' => 'Kinyarwanda', 'ky' => 'Kirghiz; Kyrgyz', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kuanyama; Kwanyama', 'ku' => 'Kurdish', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'li' => 'Limburgan; Limburger; Limburgish', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lb' => 'Luxembourgish; Letzeburgesch', 'lu' => 'Luba-Katanga', 'lg' => 'Ganda', 'mk' => 'Macedonian', 'mh' => 'Marshallese', 'ml' => 'Malayalam', 'mi' => 'Maori', 'mr' => 'Marathi', 'ms' => 'Malay', 'mg' => 'Malagasy', 'mt' => 'Maltese', 'mo' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo; Navaho', 'nr' => 'Ndebele, South; South Ndebele', 'nd' => 'Ndebele, North; North Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian', 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål', 'no' => 'Norwegian', 'ny' => 'Chichewa; Chewa; Nyanja', 'oc' => 'Occitan, Provençal', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian; Ossetic', 'pa' => 'Panjabi; Punjabi', 'fa' => 'Persian', 'pi' => 'Pali', 'pl' => 'Polish', 'pt' => 'Portuguese', 'ps' => 'Pushto', 'qu' => 'Quechua', 'rm' => 'Romansh', 'ro' => 'Romanian', 'rn' => 'Rundi', 'ru' => 'Russian', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh', 'wa' => 'Walloon', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu');
|
||||
$lang_codes = array('aa' => 'Afar', 'ab' => 'Abkhazian', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'ba' => 'Bashkir', 'bm' => 'Bambara', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan; Valencian', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'zh' => 'Chinese', 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi; Dhivehi; Maldivian', 'nl' => 'Dutch; Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijian', 'fi' => 'Finnish', 'fr' => 'French', 'fy' => 'Western Frisian', 'ff' => 'Fulah', 'ka' => 'Georgian', 'de' => 'German', 'gd' => 'Gaelic; Scottish Gaelic', 'ga' => 'Irish', 'gl' => 'Galician', 'gv' => 'Manx', 'el' => 'Greek, Modern', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian; Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'ig' => 'Igbo', 'is' => 'Icelandic', 'io' => 'Ido', 'ii' => 'Sichuan Yi', 'iu' => 'Inuktitut', 'ie' => 'Interlingue', 'ia' => 'Interlingua (International Auxiliary Language Association)', 'id' => 'Indonesian', 'ik' => 'Inupiaq', 'it' => 'Italian', 'jv' => 'Javanese', 'ja' => 'Japanese', 'kl' => 'Kalaallisut; Greenlandic', 'kn' => 'Kannada', 'ks' => 'Kashmiri', 'kr' => 'Kanuri', 'kk' => 'Kazakh', 'km' => 'Central Khmer', 'ki' => 'Kikuyu; Gikuyu', 'rw' => 'Kinyarwanda', 'ky' => 'Kirghiz; Kyrgyz', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kuanyama; Kwanyama', 'ku' => 'Kurdish', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'li' => 'Limburgan; Limburger; Limburgish', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lb' => 'Luxembourgish; Letzeburgesch', 'lu' => 'Luba-Katanga', 'lg' => 'Ganda', 'mk' => 'Macedonian', 'mh' => 'Marshallese', 'ml' => 'Malayalam', 'mi' => 'Maori', 'mr' => 'Marathi', 'ms' => 'Malay', 'mg' => 'Malagasy', 'mt' => 'Maltese', 'mo' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo; Navaho', 'nr' => 'Ndebele, South; South Ndebele', 'nd' => 'Ndebele, North; North Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian', 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål', 'no' => 'Norwegian', 'ny' => 'Chichewa; Chewa; Nyanja', 'oc' => 'Occitan, Provençal', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian; Ossetic', 'pa' => 'Panjabi; Punjabi', 'fa' => 'Persian', 'pi' => 'Pali', 'pl' => 'Polish', 'pt' => 'Portuguese', 'ps' => 'Pushto', 'qu' => 'Quechua', 'rm' => 'Romansh', 'ro' => 'Romanian', 'rn' => 'Rundi', 'ru' => 'Russian', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh', 'wa' => 'Walloon'
|
||||
, 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu');
|
||||
$lang_codes = apply_filters('lang_codes', $lang_codes, $code);
|
||||
return strtr( $code, $lang_codes );
|
||||
}
|
||||
|
@ -756,7 +757,7 @@ add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
|
|||
/**
|
||||
* Outputs the notice message for multisite regarding activation of plugin page.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @return none
|
||||
*/
|
||||
function _admin_notice_multisite_activate_plugins_page() {
|
||||
|
|
|
@ -600,7 +600,7 @@ function populate_roles_280() {
|
|||
/**
|
||||
* Create and modify WordPress roles for WordPress 3.0.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function populate_roles_300() {
|
||||
$role =& get_role( 'administrator' );
|
||||
|
@ -615,7 +615,7 @@ function populate_roles_300() {
|
|||
/**
|
||||
* populate network settings
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $network_id id of network to populate
|
||||
* @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful,
|
||||
|
|
|
@ -3879,7 +3879,7 @@ function compression_test() {
|
|||
/**
|
||||
* Set the current screen object
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @uses $current_screen
|
||||
*
|
||||
|
|
|
@ -120,7 +120,7 @@ function get_broken_themes() {
|
|||
/**
|
||||
* Get the allowed themes for the current blog.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @uses get_themes()
|
||||
* @uses current_theme_info()
|
||||
|
|
|
@ -1858,7 +1858,7 @@ function pre_schema_upgrade() {
|
|||
/**
|
||||
* Install Network.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
if ( !function_exists( 'install_network' ) ) :
|
||||
|
@ -1954,7 +1954,7 @@ endif;
|
|||
/**
|
||||
* Install global terms.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
if ( !function_exists( 'install_global_terms' ) ) :
|
||||
|
|
|
@ -573,7 +573,7 @@ class WP_User_Search {
|
|||
/**
|
||||
* {@internal Missing Description}}
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
|
@ -582,7 +582,7 @@ class WP_User_Search {
|
|||
/**
|
||||
* {@internal Missing Description}}
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
|
@ -591,7 +591,7 @@ class WP_User_Search {
|
|||
/**
|
||||
* {@internal Missing Description}}
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
|
|
|
@ -763,7 +763,7 @@ class WP_User {
|
|||
/**
|
||||
* Set the blog to operate on. Defaults to the current blog.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id Optional Blog ID, defaults to current blog.
|
||||
*/
|
||||
|
@ -1153,7 +1153,7 @@ function remove_role( $role ) {
|
|||
/**
|
||||
* Determine if user is a site admin.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $user_id (Optional) The ID of a user. Defaults to the current user.
|
||||
* @return bool True if the user is a site admin.
|
||||
|
|
|
@ -1451,7 +1451,7 @@ function wp_list_comments($args = array(), $comments = null ) {
|
|||
* a filter of the form comments_form_field_$name where $name is the key used
|
||||
* in the array of fields.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param array $args Options for strings, fields etc in the form
|
||||
* @param mixed $post_id Post ID to generate the form for, uses the current post if null
|
||||
* @return void
|
||||
|
|
|
@ -387,7 +387,7 @@ function load_plugin_textdomain( $domain, $abs_rel_path = false, $plugin_rel_pat
|
|||
/**
|
||||
* Load the translated strings for a plugin residing in the mu-plugins dir.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $domain Unique identifier for retrieving translated strings
|
||||
*/
|
||||
|
|
|
@ -2040,7 +2040,7 @@ function rel_canonical() {
|
|||
/**
|
||||
* Prints the ajax url on the front end
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
**/
|
||||
function _wp_ajaxurl() {
|
||||
echo '<script type="text/javascript">',
|
||||
|
@ -2051,7 +2051,7 @@ function _wp_ajaxurl() {
|
|||
/**
|
||||
* Hooks _wp_ajaxurl() to wp_head
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
**/
|
||||
function wp_ajaxurl() {
|
||||
add_action('wp_head', '_wp_ajaxurl', 1);
|
||||
|
|
|
@ -514,7 +514,7 @@ function image_get_intermediate_size($post_id, $size='thumbnail') {
|
|||
|
||||
/**
|
||||
* Get the available image sizes
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @return array Returns a filtered array of image size strings
|
||||
*/
|
||||
function get_intermediate_image_sizes() {
|
||||
|
|
|
@ -73,7 +73,7 @@ function get_id_from_blogname( $name ) {
|
|||
/**
|
||||
* Retrieve the details for a blog from the blogs table and blog options.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param int|string|array $fields A blog ID, a blog name, or an array of fields to query against.
|
||||
* @param bool $get_all Whether to retrieve all details or only the details in the blogs table. Default is true.
|
||||
* @return object Blog details.
|
||||
|
@ -183,7 +183,7 @@ function get_blog_details( $fields, $get_all = true ) {
|
|||
/**
|
||||
* Clear the blog details cache.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id Blog ID
|
||||
*/
|
||||
|
@ -201,7 +201,7 @@ function refresh_blog_details( $blog_id ) {
|
|||
/**
|
||||
* Update the details for a blog. Updates the blogs table for a given blog id.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id Blog ID
|
||||
* @param array $details Array of details keyed by blogs table field names.
|
||||
|
@ -477,7 +477,7 @@ function update_archived( $id, $archived ) {
|
|||
/**
|
||||
* Update a blog details field.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id BLog ID
|
||||
* @param string $pref A field name
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
/**
|
||||
* Whether a subdomain configuration is enabled.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return bool True if subdomain configuration is enabled, false otherwise.
|
||||
*/
|
||||
|
@ -209,4 +209,4 @@ function ms_not_installed() {
|
|||
$msg .= '<p>' . /*WP_I18N_MS_FORUMS*/'If you suspect a problem please report it to the support forums but you must include the information asked for in the <a target="_blank" href="http://codex.wordpress.org/Debugging_WPMU">WPMU bug reporting guidelines</a>!'/*/WP_I18N_MS_FORUMS*/ . '</p>';
|
||||
|
||||
die( $msg );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,7 +181,7 @@ function apply_filters($tag, $value) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Plugin
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @global array $wp_filter Stores all of the filters
|
||||
* @global array $merged_filters Merges the filter hooks using this function.
|
||||
* @global array $wp_current_filter stores the list of current filters with the current one last
|
||||
|
|
|
@ -529,7 +529,7 @@ function get_page_statuses( ) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Post
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses $wp_post_statuses Inserts new post status object into the list
|
||||
*
|
||||
* @param string $post_status Name of the post status.
|
||||
|
@ -595,7 +595,7 @@ function register_post_status($post_status, $args = array()) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Post
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses $wp_post_statuses
|
||||
* @see register_post_status
|
||||
* @see get_post_statuses
|
||||
|
@ -617,7 +617,7 @@ function get_post_status_object( $post_status ) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Post
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses $wp_post_statuses
|
||||
* @see register_post_status
|
||||
* @see get_post_status_object
|
||||
|
@ -690,7 +690,7 @@ function get_post_type($post = false) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Post
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses $wp_post_types
|
||||
* @see register_post_type
|
||||
* @see get_post_types
|
||||
|
@ -878,7 +878,7 @@ function register_post_type($post_type, $args = array()) {
|
|||
/**
|
||||
* Register support of certain features for a post type.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param string $post_type The post type for which to add the feature
|
||||
* @param string|array $feature the feature being added, can be an array of feature strings or a single string
|
||||
*/
|
||||
|
@ -897,7 +897,7 @@ function add_post_type_support( $post_type, $feature ) {
|
|||
/**
|
||||
* Remove support for a feature from a post type.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param string $post_type The post type for which to remove the feature
|
||||
* @param string $feature The feature being removed
|
||||
*/
|
||||
|
@ -914,7 +914,7 @@ function remove_post_type_support( $post_type, $feature ) {
|
|||
/**
|
||||
* Checks a post type's support for a given feature
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @param string $post_type The post type being checked
|
||||
* @param string $feature the feature being checked
|
||||
* @return boolean
|
||||
|
@ -4006,7 +4006,7 @@ function update_postmeta_cache($post_ids) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Cache
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @uses do_action() Calls 'clean_attachment_cache' on $id.
|
||||
*
|
||||
|
@ -4585,4 +4585,4 @@ function _show_post_preview() {
|
|||
|
||||
add_filter('the_preview', '_set_preview');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -304,7 +304,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Taxonomy
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses $wp_taxonomies Modifies taxonomy object
|
||||
*
|
||||
* @param string $taxonomy Name of taxonomy object
|
||||
|
@ -2566,7 +2566,7 @@ function is_object_in_term( $object_id, $taxonomy, $terms = null ) {
|
|||
/**
|
||||
* Determine if the given object type is associated with the given taxonomy.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses get_object_taxonomies()
|
||||
*
|
||||
* @param string $object_type Object type string
|
||||
|
|
|
@ -384,7 +384,7 @@ function get_user_meta($user_id, $key, $single = false) {
|
|||
*
|
||||
* If the meta field for the user does not exist, it will be added.
|
||||
*
|
||||
* @since 3.0
|
||||
* @since 3.0.0
|
||||
* @uses update_metadata
|
||||
* @link http://codex.wordpress.org/Function_Reference/update_user_meta
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue