<!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>[48197] trunk/src: Docs: Improve documentation for optional parameters per the documentation standards.</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/48197">48197</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/48197","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-06-28 11:47:45 +0000 (Sun, 28 Jun 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: Improve documentation for optional parameters per the documentation standards.
See <a href="https://core.trac.wordpress.org/ticket/49572">#49572</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesmsphp">trunk/src/wp-admin/includes/ms.php</a></li>
<li><a href="#trunksrcwpincludesbookmarkphp">trunk/src/wp-includes/bookmark.php</a></li>
<li><a href="#trunksrcwpincludescategorytemplatephp">trunk/src/wp-includes/category-template.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizesettingphp">trunk/src/wp-includes/class-wp-customize-setting.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpencodingphp">trunk/src/wp-includes/class-wp-http-encoding.php</a></li>
<li><a href="#trunksrcwpincludesclasswprewritephp">trunk/src/wp-includes/class-wp-rewrite.php</a></li>
<li><a href="#trunksrcwpincludesclasswprolesphp">trunk/src/wp-includes/class-wp-roles.php</a></li>
<li><a href="#trunksrcwpincludesdeprecatedphp">trunk/src/wp-includes/deprecated.php</a></li>
<li><a href="#trunksrcwpincludesgeneraltemplatephp">trunk/src/wp-includes/general-template.php</a></li>
<li><a href="#trunksrcwpincludeslinktemplatephp">trunk/src/wp-includes/link-template.php</a></li>
<li><a href="#trunksrcwpincludespostformatsphp">trunk/src/wp-includes/post-formats.php</a></li>
<li><a href="#trunksrcwpincludesposttemplatephp">trunk/src/wp-includes/post-template.php</a></li>
<li><a href="#trunksrcwpincludestaxonomyphp">trunk/src/wp-includes/taxonomy.php</a></li>
<li><a href="#trunksrcwpincludeswidgetsphp">trunk/src/wp-includes/widgets.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesmsphp"></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/ms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/ms.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-admin/includes/ms.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,7 +61,7 @@
</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><span class="cx" style="display: block; padding: 0 10px"> * @param int $blog_id Site ID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $drop True if site's database tables should be dropped. Default is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $drop True if site's database tables should be dropped. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wpmu_delete_blog( $blog_id, $drop = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span></span></pre></div>
<a id="trunksrcwpincludesbookmarkphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/bookmark.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/bookmark.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,7 +16,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|stdClass $bookmark
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
</span><span class="cx" style="display: block; padding: 0 10px"> * an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $filter Optional, default is 'raw'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $filter Optional. How to sanitize bookmark fields. Default 'raw'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|object|null Type returned depends on $output value.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/category-template.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $id Optional, default to current post ID. The post ID.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Optional. The post ID. Defaults to current post ID.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return WP_Term[] Array of WP_Term objects, one for each category assigned to the post.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_category( $id = false ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/class-wp-customize-setting.php 2020-06-28 11:47:45 UTC (rev 48197)
</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 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">- * @param mixed $default A default value which is used as a fallback. Default is null.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param mixed $default A default value which is used as a fallback. Default null.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return mixed The default value on failure, otherwise the sanitized and validated value.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> final public function post_value( $default = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -848,7 +848,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param $root
</span><span class="cx" style="display: block; padding: 0 10px"> * @param $keys
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $create Default is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $create Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|void Keys are 'root', 'node', and 'key'.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> final protected function multidimensional( &$root, $keys, $create = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -929,7 +929,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param $root
</span><span class="cx" style="display: block; padding: 0 10px"> * @param $keys
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param mixed $default A default value which is used as a fallback. Default is null.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param mixed $default A default value which is used as a fallback. Default null.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return mixed The requested value or the default value.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> final protected function multidimensional_get( $root, $keys, $default = null ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswphttpencodingphp"></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-http-encoding.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-http-encoding.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/class-wp-http-encoding.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,9 +23,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $raw String to compress.
- * @param int $level Optional, default is 9. Compression level, 9 is highest.
- * @param string $supports Optional, not used. When implemented it will choose the right compression based on what the server supports.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $raw String to compress.
+ * @param int $level Optional. Compression level, 9 is highest. Default 9.
+ * @param string $supports Optional, not used. When implemented it will choose
+ * the right compression based on what the server supports.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false 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 compress( $raw, $level = 9, $supports = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,7 +44,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $compressed String to decompress.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $length The optional length of the compressed data.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $length The optional length of the compressed data.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|bool 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 decompress( $compressed, $length = null ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/class-wp-rewrite.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1228,7 +1228,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Rewrite::generate_rewrite_rules() See for long description and rest of parameters.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $permalink_structure The permalink structure to generate rules.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $walk_dirs Optional, default is false. Whether to create list of directories to walk over.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $walk_dirs Optional. Whether to create list of directories to walk over.
+ * Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function generate_rewrite_rule( $permalink_structure, $walk_dirs = false ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswprolesphp"></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-roles.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-roles.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/class-wp-roles.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -201,8 +201,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $role Role name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $cap Capability name.
- * @param bool $grant Optional, default is true. Whether role is capable of performing capability.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $cap Capability name.
+ * @param bool $grant Optional. Whether role is capable of performing capability.
+ * Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function add_cap( $role, $cap, $grant = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $this->roles[ $role ] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -221,7 +222,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $role Role name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $cap Capability name.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $cap Capability name.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function remove_cap( $role, $cap ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $this->roles[ $role ] ) ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/deprecated.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1242,10 +1242,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 2.8.0 Use get_term_children()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see get_term_children()
</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 Category ID to retrieve children.
- * @param string $before Optional. Prepend before category term ID.
- * @param string $after Optional, default is empty string. Append after category term ID.
- * @param array $visited Optional. Category Term IDs that have already been added.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Category ID to retrieve children.
+ * @param string $before Optional. Prepend before category term ID. Default '/'.
+ * @param string $after Optional. Append after category term ID. Default empty string.
+ * @param array $visited Optional. Category Term IDs that have already been added.
+ * Default empty array.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_category_children( $id, $before = '/', $after = '', $visited = array() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1834,10 +1835,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 2.5.0 Use wp_get_attachment_link()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_get_attachment_link()
</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 Optional. Post ID.
- * @param bool $fullsize Optional, default is false. Whether to use full size image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Optional. Post ID.
+ * @param bool $fullsize Optional. Whether to use full size image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $max_dims Optional. Max image dimensions.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $permalink Optional, default is false. Whether to include permalink to image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $permalink Optional. Whether to include permalink to image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1864,8 +1865,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 2.5.0 Use wp_get_attachment_image_src()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_get_attachment_image_src()
</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 Optional. Post ID.
- * @param bool $fullsize Optional, default to false. Whether to have full image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Optional. Post ID.
+ * @param bool $fullsize Optional. Whether to have full image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array Icon URL and full path to file, respectively.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_attachment_icon_src( $id = 0, $fullsize = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1905,8 +1906,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 2.5.0 Use wp_get_attachment_image()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_get_attachment_image()
</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 Optional. Post ID.
- * @param bool $fullsize Optional, default to false. Whether to have full size image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Optional. Post ID.
+ * @param bool $fullsize Optional. Whether to have full size image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $max_dims Optional. Dimensions of image.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string|false HTML content.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1961,8 +1962,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 2.5.0 Use wp_get_attachment_image()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_get_attachment_image()
</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 Optional. Post ID.
- * @param bool $fullsize Optional, default to false. Whether to have full size image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $id Optional. Post ID.
+ * @param bool $fullsize Optional. Whether to have full size image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $max_dims Optional. Dimensions of image.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string|false
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2386,7 +2387,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 3.0.0 Use add_theme_support()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see add_theme_support()
</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 $add Optional, default is true. Add or remove links. Defaults to true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $add Optional. Add or remove links. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function automatic_feed_links( $add = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2405,7 +2406,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see get_the_author_meta()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $field User meta field.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param false|int $user Optional. User ID to retrieve the field for. Default false (current user).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param false|int $user Optional. User ID to retrieve the field for. Default false (current user).
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string The author's field from the current author's DB object.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_profile( $field, $user = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2623,9 +2624,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 3.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 object|array $user The User Object or Array
- * @param string $context Optional, default is 'display'. How to sanitize user fields.
- * @return object|array The now sanitized User Object or Array (will be the same type as $user)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param object|array $user The user object or array.
+ * @param string $context Optional. How to sanitize user fields. Default 'display'.
+ * @return object|array The now sanitized user object or array (will be the same type as $user).
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function sanitize_user_object($user, $context = 'display') {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __FUNCTION__, '3.3.0' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2660,10 +2661,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 3.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 $title Optional. Link title format.
- * @param bool $in_same_cat Optional. Whether link should be in a same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
- * @param bool $start Optional, default is true. Whether to display link to first or last post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $title Optional. Link title format. Default '%title'.
+ * @param bool $in_same_cat Optional. Whether link should be in a same category.
+ * Default false.
+ * @param string $excluded_categories Optional. Excluded categories IDs. Default empty.
+ * @param bool $start Optional. Whether to display link to first or last post.
+ * Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3215,13 +3218,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 3.5.0 Use wp_get_image_editor()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_get_image_editor()
</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 $file Image file path.
- * @param int $max_w Maximum width to resize to.
- * @param int $max_h Maximum height to resize to.
- * @param bool $crop Optional. Whether to crop image or resize.
- * @param string $suffix Optional. File suffix.
- * @param string $dest_path Optional. New image file path.
- * @param int $jpeg_quality Optional, default is 90. Image quality percentage.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $file Image file path.
+ * @param int $max_w Maximum width to resize to.
+ * @param int $max_h Maximum height to resize to.
+ * @param bool $crop Optional. Whether to crop image or resize. Default false.
+ * @param string $suffix Optional. File suffix. Default null.
+ * @param string $dest_path Optional. New image file path. Default null.
+ * @param int $jpeg_quality Optional. Image quality percentage. Default 90.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return mixed WP_Error on failure. String with new destination path.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/general-template.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1202,9 +1202,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Locale $wp_locale WordPress date and time locale 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">- * @param string $sep Optional, default is '»'. How to separate the various items
- * within the page title.
- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $sep Optional. How to separate the various items within the page title.
+ * Default '»'.
+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $seplocation Optional. Location of the separator ('left' or 'right').
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string|null String on retrieve, null when displaying.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1348,7 +1348,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function single_post_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1383,7 +1383,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 $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving, null when displaying or failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function post_type_archive_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1425,7 +1425,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function single_cat_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1442,7 +1442,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"> * @param string $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function single_tag_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1459,7 +1459,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 $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function single_term_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1524,7 +1524,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Locale $wp_locale WordPress date and time locale object.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $prefix Optional. What to display before the title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $display Optional, default is true. Whether to display or retrieve title.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $display Optional. Whether to display or retrieve title. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void Title when retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function single_month_title( $prefix = '', $display = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1752,7 +1752,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 archive.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $text Archive text description.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $format Optional, default is 'html'. Can be 'link', 'option', 'html', or custom.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. Can be 'link', 'option', 'html', or custom. Default 'html'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $before Optional. Content to prepend to the description. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $after Optional. Content to append to the description. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $selected Optional. Set to true if the current page is the selected archive page.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2080,8 +2080,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Locale $wp_locale WordPress date and time locale object.
</span><span class="cx" style="display: block; padding: 0 10px"> * @global array $posts
</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 $initial Optional, default is true. Use initial calendar names.
- * @param bool $echo Optional, default is true. Set to false for return.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $initial Optional. Whether to use initial calendar names. Default true.
+ * @param bool $display Optional. Whether to display or return the calendar. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return void|string Void if `$echo` argument is true, calendar HTML if `$echo` is false.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_calendar( $initial = true, $echo = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2374,7 +2374,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $format Optional. PHP date format defaults to the date_format option if not specified.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $before Optional. Output before the date.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $after Optional. Output after the date.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $echo Optional, default is display. Whether to echo the date or return it.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $echo Optional. Whether to echo the date or return it. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void String if retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_date( $format = '', $before = '', $after = '', $echo = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2453,7 +2453,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $format Optional. PHP date format defaults to the date_format option if not specified.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $before Optional. Output before the date.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $after Optional. Output after the date.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $echo Optional, default is display. Whether to echo the date or return it.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $echo Optional. Whether to echo the date or return it. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|void String if retrieving.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_modified_date( $format = '', $before = '', $after = '', $echo = true ) {
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/link-template.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -257,8 +257,8 @@
</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 int|WP_Post $id Optional. Post ID or post object. Default is the global `$post`.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $leavename Optional, defaults to false. Whether to keep post name. Default false.
- * @param bool $sample Optional, defaults to false. Is it a sample permalink. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $leavename Optional. Whether to keep post name. Default false.
+ * @param bool $sample Optional. Is it a sample permalink. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|WP_Error The post permalink.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
</span></span></pre></div>
<a id="trunksrcwpincludespostformatsphp"></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-formats.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-formats.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/post-formats.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,7 +11,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int|object|null $post Post ID or post object. Optional, default is the current post from the loop.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|object|null $post Optional. Post ID or post object. Defaults to the current post in the loop.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false The format if successful. False otherwise.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_post_format( $post = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,8 +42,9 @@
</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|array $format Optional. The format or formats to check.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param WP_Post|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop.
- * @return bool True if the post has any of the given formats (or any format, if no format specified), false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Post|int|null $post Optional. The post to check. Defaults to the current post in the loop.
+ * @return bool True if the post has any of the given formats (or any format, if no format specified),
+ * false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function has_post_format( $format = array(), $post = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $prefixed = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +65,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|object $post The post for which to assign a format.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $format A format to assign. Use an empty string or array to remove all formats from the post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|WP_Error|false WP_Error on error. Array of affected term IDs on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|WP_Error|false Array of affected term IDs on success. WP_Error on error.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function set_post_format( $post, $format ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = get_post( $post );
</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-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/post-template.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $more_link_text Optional. Content for when there is more text.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_content( $more_link_text = null, $strip_teaser = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $content = get_the_content( $more_link_text, $strip_teaser );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -269,8 +269,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global int $multipage Boolean indicator for whether multiple pages are in play.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $more_link_text Optional. Content for when there is more text.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
- * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default is null.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false.
+ * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_the_content( $more_link_text = null, $strip_teaser = false, $post = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1566,9 +1566,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $id Optional. Post ID or post object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $fullsize Optional, default is false. Whether to use full size.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $fullsize Optional. Whether to use full size. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param bool $deprecated Deprecated. Not used.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $permalink Optional, default is false. Whether to include permalink.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $permalink Optional. Whether to include permalink. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $deprecated ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1592,7 +1592,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
</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">- * @param bool $permalink Optional, Whether to add permalink to image. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $permalink Optional. Whether to add permalink to image. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param bool $icon Optional. Whether the attachment is an icon. Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|false $text Optional. Link text to use. Activated by passing a string, false otherwise.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1804,7 +1804,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|object $revision Revision ID or revision object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $link Optional, default is true. Link to revisions's page?
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $link Optional. Whether to link to revision's page. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false i18n formatted datetimestamp or localized 'Current Revision'.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_post_revision_title( $revision, $link = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1845,7 +1845,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|object $revision Revision ID or revision object.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param bool $link Optional, default is true. Link to revisions's page?
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $link Optional. Whether to link to revision's page. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false gravatar, user, i18n formatted datetimestamp or localized 'Current Revision'.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_post_revision_title_expanded( $revision, $link = true ) {
</span></span></pre></div>
<a id="trunksrcwpincludestaxonomyphp"></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/taxonomy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/taxonomy.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/taxonomy.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -811,7 +811,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $taxonomy Optional. Taxonomy name that $term is part of.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
</span><span class="cx" style="display: block; padding: 0 10px"> * a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $filter Optional, default is raw or no WordPress defined filter will applied.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $filter Optional. How to sanitize term fields. Default 'raw'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return WP_Term|array|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
</span><span class="cx" style="display: block; padding: 0 10px"> * a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is
</span><span class="cx" style="display: block; padding: 0 10px"> * returned. Returns null for miscellaneous failure.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -922,7 +922,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $taxonomy Taxonomy name. Optional, if `$field` is 'term_taxonomy_id'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
</span><span class="cx" style="display: block; padding: 0 10px"> * a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $filter Optional, default is raw or no WordPress defined filter will applied.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $filter Optional. How to sanitize term fields. Default 'raw'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return WP_Term|array|false WP_Term instance (or array) on success. Will return false if `$taxonomy` does not exist
</span><span class="cx" style="display: block; padding: 0 10px"> * or `$term` was not found.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1044,7 +1044,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $field Term field to fetch.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Term $term Term ID or object.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $taxonomy Optional. Taxonomy Name. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $context Optional, default is display. Look at sanitize_term_field() for available options.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $context Optional. How to sanitize term fields. Look at sanitize_term_field() for available options.
+ * Default 'display'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|int|null|WP_Error Will return an empty string if $term is not an object or if $field is not set in $term.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_term_field( $field, $term, $taxonomy = '', $context = 'display' ) {
</span></span></pre></div>
<a id="trunksrcwpincludeswidgetsphp"></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/widgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/widgets.php 2020-06-28 07:49:29 UTC (rev 48196)
+++ trunk/src/wp-includes/widgets.php 2020-06-28 11:47:45 UTC (rev 48197)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -663,7 +663,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global array $wp_registered_sidebars Registered sidebars.
</span><span class="cx" style="display: block; padding: 0 10px"> * @global array $wp_registered_widgets Registered widgets.
</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|string $index Optional, default is 1. Index, name or ID of dynamic sidebar.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|string $index Optional. Index, name or ID of dynamic sidebar. Default 1.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool True, if widget sidebar was found and called. False if not found or not called.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function dynamic_sidebar( $index = 1 ) {
</span></span></pre>
</div>
</div>
</body>
</html>