<!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>[47060] trunk/src: Docs: In various `@return` tags, list the expected type first, instead of `false`.</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 { white-space: pre-line; 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/47060">47060</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/47060","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-01-11 18:30:58 +0000 (Sat, 11 Jan 2020)</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'>Docs: In various `@return` tags, list the expected type first, instead of `false`.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/46696">[46696]</a>.
See <a href="https://core.trac.wordpress.org/ticket/48303">#48303</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasscoreupgraderphp">trunk/src/wp-admin/includes/class-core-upgrader.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpcommunityeventsphp">trunk/src/wp-admin/includes/class-wp-community-events.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpupgraderskinphp">trunk/src/wp-admin/includes/class-wp-upgrader-skin.php</a></li>
<li><a href="#trunksrcwpadminincludesfilephp">trunk/src/wp-admin/includes/file.php</a></li>
<li><a href="#trunksrcwpadminincludespluginphp">trunk/src/wp-admin/includes/plugin.php</a></li>
<li><a href="#trunksrcwpadminincludestemplatephp">trunk/src/wp-admin/includes/template.php</a></li>
<li><a href="#trunksrcwpadminincludesthemephp">trunk/src/wp-admin/includes/theme.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatecorephp">trunk/src/wp-admin/includes/update-core.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatephp">trunk/src/wp-admin/includes/update.php</a></li>
<li><a href="#trunksrcwpadminincludesupgradephp">trunk/src/wp-admin/includes/upgrade.php</a></li>
<li><a href="#trunksrcwpadmininstallhelperphp">trunk/src/wp-admin/install-helper.php</a></li>
<li><a href="#trunksrcwpincludesauthortemplatephp">trunk/src/wp-includes/author-template.php</a></li>
<li><a href="#trunksrcwpincludesbookmarktemplatephp">trunk/src/wp-includes/bookmark-template.php</a></li>
<li><a href="#trunksrcwpincludescachephp">trunk/src/wp-includes/cache.php</a></li>
<li><a href="#trunksrcwpincludescanonicalphp">trunk/src/wp-includes/canonical.php</a></li>
<li><a href="#trunksrcwpincludescategorytemplatephp">trunk/src/wp-includes/category-template.php</a></li>
<li><a href="#trunksrcwpincludesclasshttpphp">trunk/src/wp-includes/class-http.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizesettingphp">trunk/src/wp-includes/class-wp-customize-setting.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizewidgetsphp">trunk/src/wp-includes/class-wp-customize-widgets.php</a></li>
<li><a href="#trunksrcwpincludesclasswpeditorphp">trunk/src/wp-includes/class-wp-editor.php</a></li>
<li><a href="#trunksrcwpincludesclasswpembedphp">trunk/src/wp-includes/class-wp-embed.php</a></li>
<li><a href="#trunksrcwpincludesclasswpimageeditorphp">trunk/src/wp-includes/class-wp-image-editor.php</a></li>
<li><a href="#trunksrcwpincludesclasswpmetaqueryphp">trunk/src/wp-includes/class-wp-meta-query.php</a></li>
<li><a href="#trunksrcwpincludesclasswpoembedphp">trunk/src/wp-includes/class-wp-oembed.php</a></li>
<li><a href="#trunksrcwpincludesclasswprewritephp">trunk/src/wp-includes/class-wp-rewrite.php</a></li>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludescommentphp">trunk/src/wp-includes/comment.php</a></li>
<li><a href="#trunksrcwpincludescronphp">trunk/src/wp-includes/cron.php</a></li>
<li><a href="#trunksrcwpincludesdeprecatedphp">trunk/src/wp-includes/deprecated.php</a></li>
<li><a href="#trunksrcwpincludesembedphp">trunk/src/wp-includes/embed.php</a></li>
<li><a href="#trunksrcwpincludesfeedphp">trunk/src/wp-includes/feed.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesgeneraltemplatephp">trunk/src/wp-includes/general-template.php</a></li>
<li><a href="#trunksrcwpincludeshttpphp">trunk/src/wp-includes/http.php</a></li>
<li><a href="#trunksrcwpincludesl10nphp">trunk/src/wp-includes/l10n.php</a></li>
<li><a href="#trunksrcwpincludeslinktemplatephp">trunk/src/wp-includes/link-template.php</a></li>
<li><a href="#trunksrcwpincludesmediaphp">trunk/src/wp-includes/media.php</a></li>
<li><a href="#trunksrcwpincludesnavmenuphp">trunk/src/wp-includes/nav-menu.php</a></li>
<li><a href="#trunksrcwpincludespluggabledeprecatedphp">trunk/src/wp-includes/pluggable-deprecated.php</a></li>
<li><a href="#trunksrcwpincludespluggablephp">trunk/src/wp-includes/pluggable.php</a></li>
<li><a href="#trunksrcwpincludespomopophp">trunk/src/wp-includes/pomo/po.php</a></li>
<li><a href="#trunksrcwpincludesposttemplatephp">trunk/src/wp-includes/post-template.php</a></li>
<li><a href="#trunksrcwpincludesrestapiclasswprestserverphp">trunk/src/wp-includes/rest-api/class-wp-rest-server.php</a></li>
<li><a href="#trunksrcwpincludesrevisionphp">trunk/src/wp-includes/revision.php</a></li>
<li><a href="#trunksrcwpincludesuserphp">trunk/src/wp-includes/user.php</a></li>
<li><a href="#trunksrcwpincludeswpdbphp">trunk/src/wp-includes/wp-db.php</a></li>
<li><a href="#trunksrcwpsignupphp">trunk/src/wp-signup.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasscoreupgraderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-core-upgrader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-core-upgrader.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/class-core-upgrader.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $do_rollback Whether to perform this "upgrade" as a rollback.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 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 null|false|WP_Error False or WP_Error on failure, null on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|false|WP_Error Null on success, false or WP_Error on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function upgrade( $current, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_filesystem;
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpcommunityeventsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-community-events.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-community-events.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/class-wp-community-events.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -229,7 +229,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.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 false|string The anonymized address on success; the given address
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The anonymized address on success; the given address
</ins><span class="cx" style="display: block; padding: 0 10px"> * or false on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function get_unsafe_client_ip() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -341,8 +341,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.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 false|array false on failure; an array containing `location`
- * and `events` items on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false An array containing `location` and `events` items
+ * on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_cached_events() {
</span><span class="cx" style="display: block; padding: 0 10px"> $cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) );
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpupgraderskinphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-upgrader-skin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-upgrader-skin.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/class-wp-upgrader-skin.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $context Optional. Full path to the directory that is tested
</span><span class="cx" style="display: block; padding: 0 10px"> * for being writable. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False on failure, true on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $url = $this->options['url'];
</span></span></pre></div>
<a id="trunksrcwpadminincludesfilephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/file.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/file.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1189,8 +1189,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $filename The file to validate.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $signatures A Signature provided for the file.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $filename_for_errors A friendly filename for errors. Optional.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return bool|WP_Error true on success, false if verification not attempted, or WP_Error describing an error condition.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool|WP_Error True on success, false if verification not attempted,
+ * or WP_Error describing an error condition.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function verify_file_signature( $filename, $signatures, $filename_for_errors = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $filename_for_errors ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1964,12 +1964,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param mixed $output Form output to return instead. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $form_post The URL to post the form to.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $type Chosen type of filesystem.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool|WP_Error $error Optional. Whether the current request has failed to connect,
- * or an error object. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool|WP_Error $error Whether the current request has failed to connect,
+ * or an error object.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $context Full path to the directory that is tested for
</span><span class="cx" style="display: block; padding: 0 10px"> * being writable.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Default false.
</del><span class="cx" style="display: block; padding: 0 10px"> * @param array $extra_fields Extra POST fields.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2092,7 +2091,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string[] $types Types of connections.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $credentials Credentials to connect with.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $type Chosen filesystem method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool|WP_Error $error Error object or status.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool|WP_Error $error Whether the current request has failed to connect,
+ * or an error object.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $context Full path to the directory that is tested for being writable.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );
</span></span></pre></div>
<a id="trunksrcwpadminincludespluginphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/plugin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/plugin.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/plugin.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -613,7 +613,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $network_wide Optional. Whether to enable the plugin for all sites in the network
</span><span class="cx" style="display: block; padding: 0 10px"> * or just the current site. Multisite only. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $silent Optional. Whether to prevent calling activation hooks. Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return null|WP_Error WP_Error on invalid file or null on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|WP_Error Null on success, WP_Error on invalid file.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $plugin = plugin_basename( trim( $plugin ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1342,7 +1342,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to be compatible with sanitize_key().
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $submenu, $menu, $_wp_real_parent_file, $_wp_submenu_nopriv,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1454,7 +1454,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1478,7 +1478,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'options-general.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1502,7 +1502,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1526,7 +1526,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1550,7 +1550,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( current_user_can( 'edit_users' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1579,7 +1579,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'index.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1603,7 +1603,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'edit.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1627,7 +1627,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'upload.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1651,7 +1651,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'link-manager.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1675,7 +1675,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1699,7 +1699,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $function The function to be called to output the content for this page.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $position The position in the menu order this item should appear.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
</span></span></pre></div>
<a id="trunksrcwpadminincludestemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,6 +76,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $echo Whether to echo the generated markup. False to return the markup instead
</span><span class="cx" style="display: block; padding: 0 10px"> * of echoing it. Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string HTML list of input elements.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_terms_checklist( $post_id = 0, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span></span></pre></div>
<a id="trunksrcwpadminincludesthemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/theme.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/theme.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,7 +163,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @staticvar object $themes_update
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Theme $theme WP_Theme object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string HTML for the update link, or false if invalid info was passed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false HTML for the update link, or false if invalid info was passed.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_theme_update_available( $theme ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $themes_update = null;
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatecorephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/update-core.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update-core.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/update-core.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -880,7 +880,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $from New release unzipped path.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $to Path to old WordPress installation.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return null|WP_Error WP_Error on failure, null on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|WP_Error Null on success, WP_Error on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function update_core( $from, $to ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_filesystem, $_old_files, $_new_bundled_files, $wpdb;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1314,7 +1314,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $from Source directory.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $to Destination directory.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string[] $skip_list Array of files/folders to skip copying.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return true|WP_Error WP_Error on failure, true on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|WP_Error True on success, WP_Error on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function _copy_dir( $from, $to, $skip_list = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_filesystem;
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/update.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -276,7 +276,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @global string $pagenow
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function update_nag() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_multisite() && ! current_user_can( 'update_core' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -409,7 +409,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $file Plugin basename.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $plugin_data Plugin information.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_plugin_update_row( $file, $plugin_data ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $current = get_site_transient( 'update_plugins' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -611,7 +611,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $theme_key Theme stylesheet.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Theme $theme Theme object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_theme_update_row( $theme_key, $theme ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $current = get_site_transient( 'update_themes' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -720,7 +720,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @global int $upgrading
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function maintenance_nag() {
</span><span class="cx" style="display: block; padding: 0 10px"> include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
</span></span></pre></div>
<a id="trunksrcwpadminincludesupgradephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/upgrade.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/upgrade.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/includes/upgrade.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3061,7 +3061,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $theme_name The name of the theme.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $template The directory name of the theme.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function make_site_theme_from_default( $theme_name, $template ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $site_dir = WP_CONTENT_DIR . "/themes/$template";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3136,7 +3136,7 @@
</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">- * @return false|string
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function make_site_theme() {
</span><span class="cx" style="display: block; padding: 0 10px"> // Name the theme after the blog.
</span></span></pre></div>
<a id="trunksrcwpadmininstallhelperphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/install-helper.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/install-helper.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-admin/install-helper.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,7 +114,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $table_name Table name
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Column name
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $drop_ddl SQL statement to drop column.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False on failure, true on success or doesn't exist.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success or if the column doesn't exist, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function maybe_drop_column( $table_name, $column_name, $drop_ddl ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span></span></pre></div>
<a id="trunksrcwpincludesauthortemplatephp"></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/author-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/author-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/author-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -407,7 +407,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array|string $exclude Array or comma/space-separated list of author IDs to exclude. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array|string $include Array or comma/space-separated list of author IDs to include. Default empty.
</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 string|void The output, if echo is set to false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_authors( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -518,10 +518,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $return = rtrim( $return, ', ' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! $args['echo'] ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $args['echo'] ) {
+ echo $return;
+ } else {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- echo $return;
</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></pre></div>
<a id="trunksrcwpincludesbookmarktemplatephp"></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/bookmark-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/bookmark-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/bookmark-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -202,7 +202,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * $categorize is true. Accepts 'ASC' (ascending) or 'DESC' (descending).
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'ASC'.
</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 string|void Will only return if echo option is set to not echo. Default is not return anything.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, HTML list of bookmarks if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_bookmarks( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -316,8 +316,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $html = apply_filters( 'wp_list_bookmarks', $output );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! $parsed_args['echo'] ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $parsed_args['echo'] ) {
+ echo $html;
+ } else {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $html;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- echo $html;
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludescachephp"></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/cache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/cache.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/cache.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +22,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to be used across groups. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $expire Optional. When the cache data should expire, in seconds.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 0 (no expiration).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False if cache key and group already exist, true on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success, false if cache key and group already exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_add( $key, $data, $group = '', $expire = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,7 +58,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $key The cache key to decrement.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $offset Optional. The amount by which to decrement the item's value. Default 1.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $group Optional. The group the key is in. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False on failure, the item's new value on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false The item's new value on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_decr( $key, $offset = 1, $group = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +92,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Object_Cache::flush()
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Object_Cache $wp_object_cache Object cache global instance.
</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 on failure, true on success
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_flush() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,7 +134,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $key The key for the cache contents that should be incremented.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $offset Optional. The amount by which to increment the item's value. Default 1.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $group Optional. The group the key is in. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False on failure, the item's new value on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false The item's new value on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_incr( $key, $offset = 1, $group = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,7 +191,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to be used across groups. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $expire Optional. When to expire the cache contents, in seconds.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 0 (no expiration).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False on failure, true on success
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_set( $key, $data, $group = '', $expire = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -396,7 +396,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param mixed $data The contents to store in the cache.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $group Optional. Where to group the cache contents. Default 'default'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $expire Optional. When to expire the cache contents. Default 0 (no expiration).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False if cache key and group already exist, true on success
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on success, false if cache key and group already exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function add( $key, $data, $group = 'default', $expire = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( wp_suspend_cache_addition() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -441,7 +441,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $key The cache key to decrement.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $offset Optional. The amount by which to decrement the item's value. Default 1.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $group Optional. The group the key is in. Default 'default'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False on failure, the item's new value on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false The item's new value on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function decr( $key, $offset = 1, $group = 'default' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $group ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -530,7 +530,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * cache. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $found Optional. Whether the key was found in the cache (passed by reference).
</span><span class="cx" style="display: block; padding: 0 10px"> * Disambiguates a return of false, a storable value. Default null.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|mixed False on failure to retrieve contents or the cache contents on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return mixed|false The cache contents on success, false on failure to retrieve contents.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get( $key, $group = 'default', $force = false, &$found = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $group ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -564,7 +564,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $key The cache key to increment
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $offset Optional. The amount by which to increment the item's value. Default 1.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $group Optional. The group the key is in. Default 'default'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False on failure, the item's new value on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false The item's new value on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function incr( $key, $offset = 1, $group = 'default' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $group ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludescanonicalphp"></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/canonical.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/canonical.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/canonical.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -679,7 +679,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global wpdb $wpdb WordPress database abstraction object.
</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 false|string The correct URL if one is found. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The correct URL if one is found. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function redirect_guess_404_permalink() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span></span></pre></div>
<a id="trunksrcwpincludescategorytemplatephp"></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/category-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/category-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/category-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -478,7 +478,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int|array $current_category ID of category, or array of IDs of categories, that should get the
</span><span class="cx" style="display: block; padding: 0 10px"> * 'current-cat' class. Default 0.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $depth Category depth. Used for tab indentation. Default 0.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type bool|int $echo True to echo markup, false to return it. Default 1.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type bool|int $echo Whether to echo or return the generated markup. Accepts 0, 1, or their
+ * bool equivalents. Default 1.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type array|string $exclude Array or comma/space-separated string of term IDs to exclude.
</span><span class="cx" style="display: block; padding: 0 10px"> * If `$hierarchical` is true, descendants of `$exclude` terms will also
</span><span class="cx" style="display: block; padding: 0 10px"> * be excluded; see `$exclude_tree`. See get_terms().
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -493,7 +494,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $hide_title_if_empty Whether to hide the `$title_li` element if there are no terms in
</span><span class="cx" style="display: block; padding: 0 10px"> * the list. Default false (title will always be shown).
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $separator Separator between links. Default '<br />'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type bool|int $show_count Whether to show how many posts are in the category. Default 0.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type bool|int $show_count Whether to include post counts. Accepts 0, 1, or their bool equivalents.
+ * Default 0.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $show_option_all Text to display for showing all categories. Default empty string.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $show_option_none Text to display for the 'no categories' option.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'No categories'.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -503,9 +505,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $title_li Text to use for the list title `<li>` element. Pass an empty string
</span><span class="cx" style="display: block; padding: 0 10px"> * to disable. Default 'Categories'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool|int $use_desc_for_title Whether to use the category description as the title attribute.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Default 1.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts 0, 1, or their bool equivalents. Default 1.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string HTML list of categories only if 'echo' argument is 0.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string|false Void if 'echo' argument is true, HTML list of categories if 'echo' is false.
+ * False if the taxonomy does not exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_categories( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -671,8 +674,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * associated with the taxonomy.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $echo Whether or not to echo the return value. Default 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 void|array Generated tag cloud, only if no failures and 'array' is set for the 'format' argument.
- * Otherwise, this function outputs the tag cloud.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string|array Void if 'echo' argument is true, or on failure. Otherwise, tag cloud
+ * as a string or an array, depending on 'format' argument.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_tag_cloud( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -692,8 +695,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'echo' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'show_count' => 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">- $args = wp_parse_args( $args, $defaults );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args = wp_parse_args( $args, $defaults );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $tags = get_terms(
</span><span class="cx" style="display: block; padding: 0 10px"> array_merge(
</span><span class="cx" style="display: block; padding: 0 10px"> $args,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -714,6 +718,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> $link = get_term_link( intval( $tag->term_id ), $tag->taxonomy );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( is_wp_error( $link ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -729,8 +734,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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $return HTML output of the tag cloud.
- * @param array $args An array of tag cloud arguments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|array $return Tag cloud as a string or an array, depending on 'format' argument.
+ * @param array $args An array of tag cloud arguments.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $return = apply_filters( 'wp_tag_cloud', $return, $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1265,11 +1270,11 @@
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $id Post ID.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Post ID.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $taxonomy Taxonomy name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $before Optional. Before list.
- * @param string $sep Optional. Separate items using this.
- * @param string $after Optional. After list.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $before Optional. Before list.
+ * @param string $sep Optional. Separate items using this.
+ * @param string $after Optional. After list.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false|WP_Error A list of terms on success, false if there are no terms, WP_Error on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1378,12 +1383,12 @@
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $id Post ID.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Post ID.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $taxonomy Taxonomy name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $before Optional. Before list.
- * @param string $sep Optional. Separate items using this.
- * @param string $after Optional. After list.
- * @return false|void False on WordPress error.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $before Optional. Before list.
+ * @param string $sep Optional. Separate items using this.
+ * @param string $after Optional. After list.
+ * @return void|false False on WordPress error.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1412,7 +1417,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|int|array $category Optional. The category name/term_id/slug or array of them to check for.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int|object $post Optional. Post to check instead of the current post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|object $post Optional. Post to check instead of the current post.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if the current post has any of the given categories (or any category, if no category specified).
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function has_category( $category = '', $post = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1436,8 +1441,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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|int|array $tag Optional. The tag name/term_id/slug or array of them to check for.
- * @param int|object $post Optional. Post to check instead of the current post. (since 2.7.0)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|int|array $tag Optional. The tag name/term_id/slug or array of them to check for.
+ * @param int|object $post Optional. Post to check instead of the current post. (since 2.7.0)
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if the current post has any of the given tags (or any tag, if no tag specified).
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function has_tag( $tag = '', $post = null ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasshttpphp"></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/class-http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-http.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-http.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1004,8 +1004,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL which was requested.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args The arguments which were used to make the request.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $response The response of the HTTP request.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|WP_Error|array False if no redirect is present, a WP_Error object if there's an error, or an HTTP
- * API response array if the redirect is successfully followed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false|WP_Error An HTTP API response array if the redirect is successfully followed,
+ * false if no redirect is present, or a WP_Error object if there's an error.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function handle_redirects( $url, $args, $response ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // If no redirects are present, or, redirects were not requested, perform no action.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizesettingphp"></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/class-wp-customize-setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-setting.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-customize-setting.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -497,7 +497,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.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 false|void False if cap check fails or value isn't set or is invalid.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|false False if cap check fails or value isn't set or is invalid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> final public function save() {
</span><span class="cx" style="display: block; padding: 0 10px"> $value = $this->post_value();
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizewidgetsphp"></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/class-wp-customize-widgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-widgets.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-customize-widgets.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -225,7 +225,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param false|array $args The arguments to the WP_Customize_Setting constructor.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array Setting arguments, false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Setting arguments, false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function filter_customize_dynamic_setting_args( $args, $setting_id ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $this->get_setting_type( $setting_id ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpeditorphp"></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/class-wp-editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-editor.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-editor.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1738,7 +1738,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Accepts 'pagenum' and 's' (search) arguments.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array Results.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Results.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function wp_link_query( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pts = get_post_types( array( 'public' => true ), 'objects' );
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpembedphp"></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/class-wp-embed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-embed.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-embed.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -435,7 +435,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Conditionally makes a hyperlink based on an internal class variable.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url URL to potentially be linked.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string Linked URL or the original URL. False if 'return_false_on_fail' is true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Linked URL or the original URL. False if 'return_false_on_fail' is true.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function maybe_make_link( $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $this->return_false_on_fail ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpimageeditorphp"></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/class-wp-image-editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-image-editor.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-image-editor.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -379,7 +379,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.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">- * @return false|string suffix
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false suffix
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_suffix() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->get_size() ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpmetaqueryphp"></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/class-wp-meta-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-meta-query.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-meta-query.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -311,7 +311,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $primary_table Database table where the object being filtered is stored (eg wp_users).
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $primary_id_column ID column for the filtered object in $primary_table.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param object $context Optional. The main query object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false {
</ins><span class="cx" style="display: block; padding: 0 10px"> * Array containing JOIN and WHERE SQL clauses to append to the main query.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $join SQL fragment to append to the main JOIN clause.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpoembedphp"></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/class-wp-oembed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-oembed.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-oembed.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -248,7 +248,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL to the content.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Optional provider arguments.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string False on failure, otherwise the oEmbed provider URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The oEmbed provider URL on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_provider( $url, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args = wp_parse_args( $args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -339,7 +339,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL to the content that should be attempted to be embedded.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|object False on failure, otherwise the result in the form of an object.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return object|false The result in the form of an object on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_data( $url, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args = wp_parse_args( $args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -369,7 +369,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL to the content that should be attempted to be embedded.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The UNSANITIZED (and potentially unsafe) HTML that should be used to embed on success,
+ * false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_html( $url, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -417,7 +418,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL that should be inspected for discovery `<link>` tags.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string False on failure, otherwise the oEmbed provider URL.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The oEmbed provider URL on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function discover( $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $providers = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,7 +510,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $provider The URL to the oEmbed provider.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL to the content that is desired to be embedded.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|object False on failure, otherwise the result in the form of an object.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return object|false The result in the form of an object on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function fetch( $provider, $url, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args = wp_parse_args( $args, wp_embed_defaults( $url ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -547,8 +548,8 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.)
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $format Format to use
- * @return false|object|WP_Error False on failure, otherwise the result in the form of an object.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Format to use.
+ * @return object|false|WP_Error The result in the form of an object on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function _fetch_with_format( $provider_url_with_args, $format ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -653,8 +654,8 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param object $data A data object result from an oEmbed provider.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $url The URL to the content that is desired to be embedded.
- * @return false|string False on error, otherwise the HTML needed to embed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $url The URL to the content that is desired to be embedded.
+ * @return string|false The HTML needed to embed on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function data2html( $data, $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_object( $data ) || empty( $data->type ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswprewritephp"></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/class-wp-rewrite.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-rewrite.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/class-wp-rewrite.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -489,7 +489,7 @@
</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">- * @return string|false False on no permalink structure. Date permalink structure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Date permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_date_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->date_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -546,7 +546,7 @@
</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">- * @return false|string False on failure. Year structure on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Year permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_year_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> $structure = $this->get_date_permastruct();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -570,7 +570,7 @@
</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">- * @return false|string False on failure. Year/Month structure on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Year/Month permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_month_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> $structure = $this->get_date_permastruct();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -592,7 +592,7 @@
</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">- * @return string|false False on failure. Year/Month/Day structure on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Year/Month/Day permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_day_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->get_date_permastruct();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -608,7 +608,7 @@
</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">- * @return string|false False on failure. Category permalink structure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Category permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_category_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->get_extra_permastruct( 'category' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -624,7 +624,7 @@
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|false False on failure. Tag permalink structure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Tag permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_tag_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->get_extra_permastruct( 'post_tag' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -636,7 +636,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 $name Permalink structure name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Permalink structure string on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_extra_permastruct( $name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $this->permalink_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -659,7 +659,7 @@
</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">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Author permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_author_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->author_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -685,7 +685,7 @@
</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">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Search permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_search_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->search_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -711,7 +711,7 @@
</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">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Page permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_page_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->page_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -737,7 +737,7 @@
</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">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Feed permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_feed_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->feed_structure ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -763,7 +763,7 @@
</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">- * @return string|false False if not found. Permalink structure string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Comment feed permalink structure on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_comment_feed_permastruct() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $this->comment_feed_structure ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludescommenttemplatephp"></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/comment-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/comment-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -427,11 +427,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $echo Optional. Whether to echo or return the output.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string If `$echo` is false, the class will be returned. Void otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if `$echo` argument is true, comment classes if `$echo` is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function comment_class( $class = '', $comment = null, $post_id = null, $echo = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Separates classes with a single space, collates classes for comment DIV
</span><span class="cx" style="display: block; padding: 0 10px"> $class = 'class="' . join( ' ', get_comment_class( $class, $comment, $post_id ) ) . '"';
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $echo ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo $class;
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1992,6 +1993,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $echo Whether to echo the output or return it. Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Comment[] $comments Optional. Array of WP_Comment objects.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, or no comments to list.
+ * Otherwise, HTML list of comments.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_comments( $args = array(), $comments = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;
</span></span></pre></div>
<a id="trunksrcwpincludescommentphp"></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/comment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/comment.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1645,7 +1645,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Comment $comment_id Comment ID or WP_Comment object
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_comment_status( $comment_id ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $comment = get_comment( $comment_id );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2569,7 +2569,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url URL to ping.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $deprecated Not Used.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string False on failure, string containing URI on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false String containing URI on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function discover_pingback_server_uri( $url, $deprecated = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $deprecated ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludescronphp"></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/cron.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/cron.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/cron.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -393,7 +393,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $hook Action hook, the execution of which will be unscheduled.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Arguments that were to be passed to the hook's callback function.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int On success an integer indicating number of events unscheduled (0 indicates no
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false On success an integer indicating number of events unscheduled (0 indicates no
</ins><span class="cx" style="display: block; padding: 0 10px"> * events were registered with the hook and arguments combination), false if
</span><span class="cx" style="display: block; padding: 0 10px"> * unscheduling one or more events fail.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -461,7 +461,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.1.0 Return value added to indicate success or failure.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $hook Action hook, the execution of which will be unscheduled.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int On success an integer indicating number of events unscheduled (0 indicates no
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false On success an integer indicating number of events unscheduled (0 indicates no
</ins><span class="cx" style="display: block; padding: 0 10px"> * events were registered on the hook), false if unscheduling fails.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_unschedule_hook( $hook ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -528,7 +528,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Although not passed to a callback, these arguments are used to uniquely identify the
</span><span class="cx" style="display: block; padding: 0 10px"> * event, so they should be the same as those used when originally scheduling the event.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|null $timestamp Optional. Unix timestamp (UTC) of the event. If not specified, the next scheduled event is returned.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|object The event object. False if the event does not exist.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return object|false The event object. False if the event does not exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -606,7 +606,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function.
</span><span class="cx" style="display: block; padding: 0 10px"> * Although not passed to a callback, these arguments are used to uniquely identify the
</span><span class="cx" style="display: block; padding: 0 10px"> * event, so they should be the same as those used when originally scheduling the event.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int The Unix timestamp of the next time the event will occur. False if the event doesn't exist.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false The Unix timestamp of the next time the event will occur. False if the event doesn't exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_next_scheduled( $hook, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $next_event = wp_get_scheduled_event( $hook, $args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -926,7 +926,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access private
</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 false|array CRON info array.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false CRON info array.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function _get_cron_array() {
</span><span class="cx" style="display: block; padding: 0 10px"> $cron = get_option( 'cron' );
</span></span></pre></div>
<a id="trunksrcwpincludesdeprecatedphp"></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/deprecated.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/deprecated.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/deprecated.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -610,7 +610,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $feed_image
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $exclude
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $hierarchical
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|null
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
</span><span class="cx" style="display: block; padding: 0 10px"> $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -630,7 +630,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_list_categories()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|null|string
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|string|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_cats($args = '') {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1908,7 +1908,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $id Optional. Post ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $fullsize Optional, default to false. Whether to have full size image.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $max_dims Optional. Dimensions of image.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string HTML content.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false HTML content.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1964,7 +1964,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $id Optional. Post ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $fullsize Optional, default to false. Whether to have full size image.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $max_dims Optional. Dimensions of image.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
</span></span></pre></div>
<a id="trunksrcwpincludesembedphp"></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/embed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/embed.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/embed.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -102,7 +102,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url The URL that should be embedded.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Additional arguments and parameters for retrieving embed HTML.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string False on failure or the embed HTML on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The embed HTML on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_oembed_get( $url, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $oembed = _wp_oembed_get_object();
</span></span></pre></div>
<a id="trunksrcwpincludesfeedphp"></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/feed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/feed.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/feed.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -280,7 +280,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 int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string false on failure or guid for comment on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false GUID for comment on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_comment_guid( $comment_id = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $comment = get_comment( $comment_id );
</span></span></pre></div>
<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 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/functions.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1219,7 +1219,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_safe_remote_get()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $uri URI/URL of web page to retrieve.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string HTTP content. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false HTTP content. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_remote_fopen( $uri ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $parsed_url = @parse_url( $uri );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1858,7 +1858,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.0.4
</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 false|string False on failure. Referer URL on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Referer URL on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_referer() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'wp_validate_redirect' ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesgeneraltemplatephp"></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/general-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/general-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/general-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -196,7 +196,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * multiple search forms on the same page and improve
</span><span class="cx" style="display: block; padding: 0 10px"> * accessibility. Default empty.
</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 string|void String when the $echo param is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, search form HTML if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_search_form( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -300,7 +300,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $result = $form;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( isset( $args['echo'] ) && $args['echo'] ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $args['echo'] ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> echo $result;
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> return $result;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -426,7 +426,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Provides a simple login form for use anywhere within WordPress.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * The login format HTML is echoed by default. Pass a false value for `$echo` to return it instead.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The login form HTML is echoed by default. Pass a false value for `$echo` to return it instead.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -452,7 +452,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false (unchecked).
</span><span class="cx" style="display: block; padding: 0 10px"> *
</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 string|void String when retrieving.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, login form HTML if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_login_form( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1806,7 +1806,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $day Day. Default current day.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $w Week. Default current week.
</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 string|void String when retrieving.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, archive links if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_archives( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb, $wp_locale;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2019,6 +2019,7 @@
</span><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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $parsed_args['echo'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo $output;
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2389,7 +2390,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $d Optional. PHP date format defaults to the date_format option if not specified.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string Date the current post was written. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Date the current post was written. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_date( $d = '', $post = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = get_post( $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2460,7 +2461,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $d Optional. PHP date format defaults to the date_format option if not specified.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string Date the current post was modified. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Date the current post was modified. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_modified_date( $d = '', $post = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = get_post( $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2705,7 +2706,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * was modified. Either 'G', 'U', or php date format defaults
</span><span class="cx" style="display: block; padding: 0 10px"> * to the value specified in the time_format option. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string Formatted date string or Unix timestamp. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Formatted date string or Unix timestamp. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_modified_time( $d = '', $post = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = get_post( $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4070,7 +4071,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $before_page_number A string to appear before the page number. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $after_page_number A string to append after the page number. Default empty.
</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 string|array|void String of page links or array of page links.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|array|void String of page links or array of page links, depending on 'type' argument.
+ * Void if total number of pages is less than 2.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function paginate_links( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_query, $wp_rewrite;
</span></span></pre></div>
<a id="trunksrcwpincludeshttpphp"></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/http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/http.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/http.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -513,7 +513,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.5.2
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url Request URL.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string URL or false on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false URL or false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_http_validate_url( $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $original_url = $url;
</span></span></pre></div>
<a id="trunksrcwpincludesl10nphp"></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/l10n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/l10n.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -927,7 +927,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $domain Optional. Text domain. Default 'default'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $path Optional. The full file path to the directory containing translation files.
</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 false|string False if the script textdomain could not be loaded, the translated strings
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false False if the script textdomain could not be loaded, the translated strings
</ins><span class="cx" style="display: block; padding: 0 10px"> * in JSON encoding otherwise.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function load_script_textdomain( $handle, $domain = 'default', $path = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1432,7 +1432,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $show_option_site_default Whether to show an option to fall back to the site's locale. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $show_option_en_us Whether to show an option for English (United States). Default 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 string HTML content
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string HTML dropdown list of languages.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_dropdown_languages( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludeslinktemplatephp"></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/link-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/link-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/link-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -467,7 +467,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
</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 int|bool $year False for current year or year for permalink.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|false $year Integer of year. False for current year.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string The permalink for the specified year archive.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_year_link( $year ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -501,8 +501,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
</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 bool|int $year False for current year. Integer of year.
- * @param bool|int $month False for current month. Integer of month.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|false $year Integer of year. False for current year.
+ * @param int|false $month Integer of month. False for current month.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string The permalink for the specified month and year archive.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_month_link( $year, $month ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -541,9 +541,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
</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 bool|int $year False for current year. Integer of year.
- * @param bool|int $month False for current month. Integer of month.
- * @param bool|int $day False for current day. Integer of day.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|false $year Integer of year. False for current year.
+ * @param int|false $month Integer of month. False for current month.
+ * @param int|false $day Integer of day. False for current day.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string The permalink for the specified day, month, and year archive.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_day_link( $year, $month, $day ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2968,7 +2968,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Optional args. See paginate_links(). Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|array|void Markup for comment page links or array of comment page links.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string|array Void if 'echo' argument is true and 'type' is not an array,
+ * or if the query is not for an existing single post of any post type.
+ * Otherwise, markup for comment page links or array of comment page links,
+ * depending on 'type' argument.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function paginate_comments_links( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_rewrite;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4011,7 +4014,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $processed_args When the function returns, the value will be the processed/sanitized $args
</span><span class="cx" style="display: block; padding: 0 10px"> * plus a "found_avatar" guess. Pass as a reference. Default null.
</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 false|string The URL of the avatar we found, or false if we couldn't find an avatar.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false The URL of the avatar on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_avatar_url( $id_or_email, $args = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args = get_avatar_data( $id_or_email, $args );
</span></span></pre></div>
<a id="trunksrcwpincludesmediaphp"></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/media.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/media.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/media.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -185,7 +185,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $size Optional. Image size to scale to. Accepts any valid image size,
</span><span class="cx" style="display: block; padding: 0 10px"> * or an array of width and height values in pixels (in that order).
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'medium'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array Array containing the image URL, width, height, and boolean for whether
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Array containing the image URL, width, height, and boolean for whether
</ins><span class="cx" style="display: block; padding: 0 10px"> * the image is an intermediate size. False on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function image_downsize( $id, $size = 'medium' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -521,7 +521,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $dest_h New height in pixels.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool|array $crop Optional. Whether to crop image to specified width and height or resize.
</span><span class="cx" style="display: block; padding: 0 10px"> * An array can specify positioning of the crop area. Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array False on failure. Returned array matches parameters for `imagecopyresampled()`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Returned array matches parameters for `imagecopyresampled()`. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = false ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -665,7 +665,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $height Image height.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $crop Optional. Whether to crop image to specified width and height or resize.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array False, if no image was created. Metadata array on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Metadata array on success. False if no image was created.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function image_make_intermediate_size( $file, $width, $height, $crop = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $width || $height ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -740,7 +740,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $size Optional. Image size. Accepts any valid image size, or an array
</span><span class="cx" style="display: block; padding: 0 10px"> * of width and height values in pixels (in that order).
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'thumbnail'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array $data {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false $data {
</ins><span class="cx" style="display: block; padding: 0 10px"> * Array of file relative path, width, and height on success. Additionally includes absolute
</span><span class="cx" style="display: block; padding: 0 10px"> * path and URL if registered size is passed to $size parameter. False on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -941,7 +941,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $size Optional. Image size. Accepts any valid image size, or an array of width
</span><span class="cx" style="display: block; padding: 0 10px"> * and height values in pixels (in that order). Default 'thumbnail'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $icon Optional. Whether the image should be treated as an icon. Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false Returns an array (url, width, height, is_intermediate), or false if no image is available.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // get a thumbnail or intermediate image if there is one
</span></span></pre></div>
<a id="trunksrcwpincludesnavmenuphp"></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/nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/nav-menu.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/nav-menu.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -667,7 +667,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * processed in this function. Default 'menu_order'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $nopaging Whether to retrieve all menu items (true) or paginate (false). Default 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 false|array $items Array of menu items, otherwise false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|false $items Array of menu items, otherwise false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_nav_menu_items( $menu, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $menu = wp_get_nav_menu_object( $menu );
</span></span></pre></div>
<a id="trunksrcwpincludespluggabledeprecatedphp"></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/pluggable-deprecated.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/pluggable-deprecated.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/pluggable-deprecated.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -166,7 +166,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $username User's username
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $password User's password
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $deprecated Not used
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool False on login failure, true on successful check
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True on successful check, false on login failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_login($username, $password, $deprecated = '') {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' );
</span></span></pre></div>
<a id="trunksrcwpincludespluggablephp"></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/pluggable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/pluggable.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/pluggable.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -600,7 +600,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $cookie Optional. If used, will validate contents instead of cookie's.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if invalid cookie, user ID if valid.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false User ID if valid cookie, false if invalid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_validate_auth_cookie( $cookie = '', $scheme = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $cookie_elements = wp_parse_auth_cookie( $cookie, $scheme );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1111,8 +1111,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $action The nonce action.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $query_arg Optional. Key to check for nonce in `$_REQUEST`. Default '_wpnonce'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
- * 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
+ * 2 if the nonce is valid and generated between 12-24 hours ago.
+ * False if the nonce is invalid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( -1 === $action ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1155,8 +1156,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * (in that order). Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $die Optional. Whether to die early when the nonce cannot be verified.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
- * 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
+ * 2 if the nonce is valid and generated between 12-24 hours ago.
+ * False if the nonce is invalid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( -1 == $action ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2092,8 +2094,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $nonce Nonce value that was used for verification, usually via a form field.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|int $action Should give context to what is taking place and be the same when nonce was created.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
- * 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
+ * 2 if the nonce is valid and generated between 12-24 hours ago.
+ * False if the nonce is invalid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_verify_nonce( $nonce, $action = -1 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $nonce = (string) $nonce;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2580,7 +2583,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $extra_attr HTML attributes to insert in the IMG element. Is not sanitized. Default empty.
</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 false|string `<img>` tag for the user's avatar. False on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false `<img>` tag for the user's avatar. False on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span></span></pre></div>
<a id="trunksrcwpincludespomopophp"></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/pomo/po.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/pomo/po.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/pomo/po.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -209,7 +209,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Builds a string from the entry for inclusion in PO file
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param Translation_Entry $entry the entry to convert to po string (passed by reference).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string PO-style formatted string for the entry or
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false PO-style formatted string for the entry or
</ins><span class="cx" style="display: block; padding: 0 10px"> * false if the entry is empty
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function export_entry( &$entry ) {
</span></span></pre></div>
<a id="trunksrcwpincludesposttemplatephp"></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/post-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-template.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/post-template.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,7 +37,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $before Optional. Markup to prepend to the title. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $after Optional. Markup to append to the title. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $echo Optional. Whether to echo or return the title. Default true for echo.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|void Current post title if $echo is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if `$echo` argument is true, current post title if `$echo` is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_title( $before = '', $after = '', $echo = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $title = get_the_title();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,7 +75,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $echo Whether to echo or return the title. Default true for echo.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type WP_Post $post Current post object to retrieve the title for.
</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 string|void String when echo is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, the title attribute if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_title_attribute( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1062,7 +1062,8 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param string $key Meta data key name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|string|array Array of values or single value, if only one element exists. False will be returned if key does not exist.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|string|false Array of values, or single value if only one element exists.
+ * False if the key does not exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function post_custom( $key = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $custom = get_post_custom();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1153,7 +1154,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $value_field Post field used to populate the 'value' attribute of the option
</span><span class="cx" style="display: block; padding: 0 10px"> * elements. Accepts any valid post field. Default 'ID'.
</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 string HTML content, if not displaying.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string HTML dropdown list of pages.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_dropdown_pages( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1211,6 +1212,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $parsed_args['echo'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo $html;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> return $html;
</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">@@ -1252,7 +1254,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'preserve'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page).
</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 string|void HTML list of pages.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, HTML list of pages if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_list_pages( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1373,7 +1375,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * or 'discard'. Default 'discard'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page).
</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 string|void HTML menu
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string Void if 'echo' argument is true, HTML menu if 'echo' is false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_page_menu( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1488,6 +1490,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args An array of arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $menu = apply_filters( 'wp_page_menu', $menu, $args );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $args['echo'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo $menu;
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiclasswprestserverphp"></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/rest-api/class-wp-rest-server.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/class-wp-rest-server.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/rest-api/class-wp-rest-server.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -217,7 +217,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default null.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|null Null if not served and a HEAD request, false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return null|false Null if not served and a HEAD request, false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function serve_request( $path = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $content_type = isset( $_GET['_jsonp'] ) ? 'application/javascript' : 'application/json';
</span></span></pre></div>
<a id="trunksrcwpincludesrevisionphp"></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/revision.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/revision.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/revision.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -253,7 +253,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Post ID or post object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if not a revision, ID of revision's parent otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false ID of revision's parent on success, false if not a revision.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_is_post_revision( $post ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = wp_get_post_revision( $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -270,7 +270,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Post ID or post object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return false|int False if not a revision, ID of autosave's parent otherwise
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|false ID of autosave's parent on success, false if not a revision.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_is_post_autosave( $post ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = wp_get_post_revision( $post );
</span></span></pre></div>
<a id="trunksrcwpincludesuserphp"></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/user.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/user.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/user.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -334,8 +334,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.9.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 int|bool $user_id The user ID (or false) as received from the
- * determine_current_user filter.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|bool $user_id The user ID (or false) as received from
+ * the `determine_current_user` filter.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|false User ID if validated, false otherwise. If a user ID from
</span><span class="cx" style="display: block; padding: 0 10px"> * an earlier filter callback is received, that value is returned.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1093,7 +1093,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $role__not_in An array of role names to exclude. Users matching one or more of
</span><span class="cx" style="display: block; padding: 0 10px"> * these roles will not be included in results. Default empty array.
</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 string String of HTML content.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string HTML dropdown list of users.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_dropdown_users( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3637,7 +3637,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $request_id ID of the request being confirmed.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $key Provided key to validate.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|WP_Error WP_Error on failure, true on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool|WP_Error True on success, WP_Error on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_validate_user_request_key( $request_id, $key ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_hasher;
</span></span></pre></div>
<a id="trunksrcwpincludeswpdbphp"></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/wp-db.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/wp-db.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-includes/wp-db.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1435,10 +1435,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Print SQL/DB error.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @global array $EZSQL_ERROR Stores error information of query and error string
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global array $EZSQL_ERROR Stores error information of query and error string.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $str The error to display
- * @return false|void False if the showing of errors is disabled.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $str The error to display.
+ * @return void|false Void if the showing of errors is enabled, false if disabled.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function print_error( $str = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $EZSQL_ERROR;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3411,7 +3411,7 @@
</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">- * @return float Total time spent on the query, in seconds
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return float Total time spent on the query, in seconds.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function timer_stop() {
</span><span class="cx" style="display: block; padding: 0 10px"> return ( microtime( true ) - $this->time_start );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3424,9 +3424,9 @@
</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">- * @param string $message The Error message
- * @param string $error_code Optional. A Computer readable string to identify the error.
- * @return false|void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $message The error message.
+ * @param string $error_code Optional. A computer-readable string to identify the error.
+ * @return void|false Void if the showing of errors is enabled, false if disabled.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function bail( $message, $error_code = '500' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $this->show_errors ) {
</span></span></pre></div>
<a id="trunksrcwpsignupphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-signup.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-signup.php 2020-01-11 17:56:15 UTC (rev 47059)
+++ trunk/src/wp-signup.php 2020-01-11 18:30:58 UTC (rev 47060)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -95,7 +95,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blogname The new site name.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blog_title The new site title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_wp_error( $errors ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,7 +246,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $user_name The entered username.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $user_email The entered email address.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function show_user_form( $user_name = '', $user_email = '', $errors = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_wp_error( $errors ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -304,7 +304,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blogname The new site name
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blog_title The new site title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $current_user = wp_get_current_user();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -553,7 +553,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $user_name The username.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $user_email The user's email.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function signup_user( $user_name = '', $user_email = '', $errors = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $active_signup;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -691,7 +691,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $user_email The user's email address.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blogname The site name.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $blog_title The site title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_title = '', $errors = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_wp_error( $errors ) ) {
</span></span></pre>
</div>
</div>
</body>
</html>