<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13102] trunk/wp-includes/functions.php: Some phpdoc for functions.php.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13102">13102</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-02-13 08:59:04 +0000 (Sat, 13 Feb 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Some phpdoc for functions.php. Props miqrogroove, see <a href="http://trac.wordpress.org/ticket/12215">#12215</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesfunctionsphp">trunk/wp-includes/functions.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/functions.php (13101 => 13102)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/functions.php        2010-02-13 08:56:38 UTC (rev 13101)
+++ trunk/wp-includes/functions.php        2010-02-13 08:59:04 UTC (rev 13102)
</span><span class="lines">@@ -3341,6 +3341,16 @@
</span><span class="cx">         return $current_suspend;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * {@internal Missing Short Description}}
+ *
+ * @since 2.8
+ *
+ * @param unknown_type $key
+ * @param unknown_type $default
+ * @param unknown_type $use_cache
+ * @return unknown
+ */
</ins><span class="cx"> function get_site_option( $key, $default = false, $use_cache = true ) {
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><span class="lines">@@ -3371,7 +3381,15 @@
</span><span class="cx">          return apply_filters( 'site_option_' . $key, $value );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// expects $key, $value not to be SQL escaped
</del><ins>+/**
+ * {@internal Missing Short Description}}
+ *
+ * @since 2.8
+ *
+ * @param unknown_type $key not to be SQL escaped
+ * @param unknown_type $value not to be SQL escaped
+ * @return unknown
+ */
</ins><span class="cx"> function add_site_option( $key, $value ) {
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><span class="lines">@@ -3399,6 +3417,14 @@
</span><span class="cx">         return $result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * {@internal Missing Short Description}}
+ *
+ * @since 2.9
+ *
+ * @param unknown_type $key
+ * @return unknown
+ */
</ins><span class="cx"> function delete_site_option( $key ) {
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><span class="lines">@@ -3423,7 +3449,15 @@
</span><span class="cx">         return $result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// expects $key, $value not to be SQL escaped
</del><ins>+/**
+ * {@internal Missing Short Description}}
+ *
+ * @since 2.8.0
+ *
+ * @param unknown_type $key not to be SQL escaped
+ * @param unknown_type $value not to be SQL escaped
+ * @return unknown
+ */
</ins><span class="cx"> function update_site_option( $key, $value ) {
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><span class="lines">@@ -3455,7 +3489,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Delete a site transient
</span><span class="cx">  *
</span><del>- * @since 2.890
</del><ins>+ * @since 2.9.0
</ins><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Transient
</span><span class="cx">  *
</span><span class="lines">@@ -3577,6 +3611,10 @@
</span><span class="cx">  * gmt_offset modification for smart timezone handling
</span><span class="cx">  *
</span><span class="cx">  * Overrides the gmt_offset option if we have a timezone_string available
</span><ins>+ *
+ * @since 2.8
+ *
+ * @return unknown
</ins><span class="cx">  */
</span><span class="cx"> function wp_timezone_override_offset() {
</span><span class="cx">         if ( !wp_timezone_supported() ) {
</span><span class="lines">@@ -3596,6 +3634,10 @@
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Check for PHP timezone support
</span><ins>+ *
+ * @since 2.9
+ *
+ * @return unknown
</ins><span class="cx">  */
</span><span class="cx"> function wp_timezone_supported() {
</span><span class="cx">         $support = false;
</span><span class="lines">@@ -3610,6 +3652,15 @@
</span><span class="cx">         return apply_filters( 'timezone_support', $support );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * {@internal Missing Short Description}}
+ *
+ * @since 2.9
+ *
+ * @param unknown_type $a
+ * @param unknown_type $b
+ * @return unknown
+ */
</ins><span class="cx"> function _wp_timezone_choice_usort_callback( $a, $b ) {
</span><span class="cx">         // Don't use translated versions of Etc
</span><span class="cx">         if ( 'Etc' === $a['continent'] &amp;&amp; 'Etc' === $b['continent'] ) {
</span><span class="lines">@@ -3651,8 +3702,10 @@
</span><span class="cx"> /**
</span><span class="cx">  * Gives a nicely formatted list of timezone strings // temporary! Not in final
</span><span class="cx">  *
</span><del>- * @param $selected_zone string Selected Zone
</del><ins>+ * @since 2.9
</ins><span class="cx">  *
</span><ins>+ * @param string $selected_zone Selected Zone
+ * @return string
</ins><span class="cx">  */
</span><span class="cx"> function wp_timezone_choice( $selected_zone ) {
</span><span class="cx">         static $mo_loaded = false;
</span></span></pre>
</div>
</div>

</body>
</html>