<!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" />
<title>[32595] trunk/src/wp-includes/functions.php: Add missing doc blocks to `wp-includes/functions.php`.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/32595">32595</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/32595","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-05-25 16:10:59 +0000 (Mon, 25 May 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Add missing doc blocks to `wp-includes/functions.php`.
See <a href="https://core.trac.wordpress.org/ticket/32444">#32444</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2015-05-25 13:05:21 UTC (rev 32594)
+++ trunk/src/wp-includes/functions.php 2015-05-25 16:10:59 UTC (rev 32595)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,6 +78,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global WP_Locale $wp_locale
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $dateformatstring Format to display the date.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool|int $unixtimestamp Optional. Unix timestamp. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $gmt Optional. Whether to use GMT timezone. Default false.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -161,6 +163,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global WP_Locale $wp_locale
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $number The number to convert based on locale.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $decimals Optional. Precision of the number of decimal places. Default 0.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Converted number in string format.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -491,10 +495,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @see $wpdb
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $content Post Content.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $post_ID Post ID.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $post_ID Post ID.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function do_enclose( $content, $post_ID ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -871,6 +875,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global WP $wp_locale
+ * @global WP_Query $wp_query
+ * @global WP_Query $wp_the_query
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $query_vars Default WP_Query arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp( $query_vars = '' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -886,6 +894,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global array $wp_header_to_desc
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $code HTTP status code.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Empty string if not found, or description if found.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1125,7 +1135,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @uses $wp_query Used to tell if the use a comment feed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global WP_Query $wp_query Used to tell if the use a comment feed.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function do_feed() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_query;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1606,6 +1616,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar string $temp
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string Writable temporary directory.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_temp_dir() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1630,8 +1642,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_dir( $temp ) && wp_is_writable( $temp ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $temp;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $temp = '/tmp/';
- return $temp;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return '/tmp/';
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2001,8 +2012,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $ext The extension to search.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|null The file type, example: audio, video, document, spreadsheet, etc.
- * Null if not found.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|void The file type, example: audio, video, document, spreadsheet, etc.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_ext2type( $ext ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $ext = strtolower( $ext );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2032,8 +2042,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $ext2type as $type => $exts )
</span><span class="cx" style="display: block; padding: 0 10px"> if ( in_array( $ext, $exts ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $type;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- return null;
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2085,7 +2093,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * if original $filename is valid.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> $proper_filename = false;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Do basic extension validation and MIME mapping
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2594,6 +2601,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wp_xmlrpc_server $wp_xmlrpc_server
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $message Error message.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $title Optional. Error title. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Optional. Arguments to control behavior. Default empty array.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2652,7 +2661,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $options Optional. Options to be passed to json_encode(). Default 0.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $depth Optional. Maximum depth to walk through $data. Must be
</span><span class="cx" style="display: block; padding: 0 10px"> * greater than 0. Default 512.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|string The JSON encoded string, or false if it cannot be encoded.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The JSON encoded string, or false if it cannot be encoded.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_json_encode( $data, $options = 0, $depth = 512 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2758,6 +2767,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see _wp_json_sanity_check()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar bool $use_mb
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $string The string which is to be converted.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string The checked string.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3260,6 +3271,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Append the Widgets menu to the themes main menu.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @global array $submenu
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_widgets_add_menu() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $submenu;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3586,6 +3599,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global bool $is_apache
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $mod The module, e.g. mod_rewrite.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $default Optional. The default return value if the module is not found. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool Whether the specified module is loaded.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3615,6 +3630,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global bool $is_iis7
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool Whether IIS7 supports permalinks.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function iis7_supports_permalinks() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3655,7 +3672,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $file File path.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $allowed_files List of allowed files.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $allowed_files List of allowed files.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int 0 means nothing is wrong, greater than 0 means something was wrong.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function validate_file( $file, $allowed_files = '' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3712,6 +3729,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar bool $forced
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if forced, false if not forced.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3788,6 +3807,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar bool $_suspend
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param bool $suspend Optional. Suspends additions if true, re-enables them if false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool The current suspend setting
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3809,6 +3830,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global bool $_wp_suspend_cache_invalidation
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param bool $suspend Optional. Whether to suspend or enable cache invalidation. Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool The current suspend setting.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3825,6 +3848,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global object $current_site
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $site_id Optional. Site ID to test. Defaults to current site.
</span><span class="cx" style="display: block; padding: 0 10px"> * Defaults to current site.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if $site_id is the main site of the network, or if not
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3848,6 +3873,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $network_id Optional. Network ID to test. Defaults to current network.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if $network_id is the main network, or if not running Multisite.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3885,6 +3912,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar bool $global_terms
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if multisite and global terms enabled.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function global_terms_enabled() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3920,7 +3949,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return float|bool Timezone GMT offset, false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return float|false Timezone GMT offset, false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_timezone_override_offset() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$timezone_string = get_option( 'timezone_string' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3988,6 +4017,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.9.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar bool $mo_loaded
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $selected_zone Selected timezone.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4134,6 +4165,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * The default value of `EMPTY_TRASH_DAYS` is 30 (days).
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.9.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @global wpdb $wpdb
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_scheduled_delete() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4244,7 +4277,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see __return_false()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool True.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true True.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function __return_true() {
</span><span class="cx" style="display: block; padding: 0 10px"> return true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4259,7 +4292,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see __return_true()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return false False.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function __return_false() {
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4445,6 +4478,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_kses()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see esc_url()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar array $protocols
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array Array of allowed protocols.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_allowed_protocols() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4695,9 +4730,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array|object $response The Heartbeat response object or array.
- * @return array|object $response The Heartbeat response object or array with 'wp-auth-check'
- * value set.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global int $login_grace_period
+ *
+ * @param array $response The Heartbeat response.
+ * @return array $response The Heartbeat response with 'wp-auth-check' value set.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_auth_check( $response ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4770,6 +4806,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see reset_mbstring_encoding()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar array $encodings
+ * @staticvar bool $overloaded
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre>
</div>
</div>
</body>
</html>