<!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>[48929] trunk/src/wp-includes: Docs: Synchronize the description of the `$format` parameter in various date/time functions for posts and comments.</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/48929">48929</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/48929","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-09-01 00:41:19 +0000 (Tue, 01 Sep 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: Synchronize the description of the `$format` parameter in various date/time functions for posts and comments.

See <a href="https://core.trac.wordpress.org/ticket/50768">#50768</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludesgeneraltemplatephp">trunk/src/wp-includes/general-template.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<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-08-31 23:45:24 UTC (rev 48928)
+++ trunk/src/wp-includes/comment-template.php  2020-09-01 00:41:19 UTC (rev 48929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -544,7 +544,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment 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         $format     Optional. The format of the date. Default user's setting.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string         $format     Optional. PHP date format. Defaults to the 'date_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date.
</span><span class="cx" style="display: block; padding: 0 10px">  *                                   Default current comment.
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The comment's date.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -562,7 +562,7 @@
</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|int $date    Formatted date string or Unix timestamp.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string     $format  The format of the date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string     $format  PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param WP_Comment $comment The comment object.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'get_comment_date', $date, $format, $comment );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -574,7 +574,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 0.71
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment 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         $format     Optional. The format of the date. Default user's settings.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string         $format     Optional. PHP date format. Defaults to the 'date_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date.
</span><span class="cx" style="display: block; padding: 0 10px">  *                                   Default current comment.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1033,7 +1033,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">- * @param string $format    Optional. The format of the time. Default user's settings.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format    Optional. PHP date format. Defaults to the 'time_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param bool   $gmt       Optional. Whether to use the GMT date. Default false.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param bool   $translate Optional. Whether to translate the time (for use in feeds).
</span><span class="cx" style="display: block; padding: 0 10px">  *                          Default true.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1054,7 +1054,7 @@
</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|int $date      The comment time, formatted as a date string or Unix timestamp.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string     $format    Date format.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string     $format    PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param bool       $gmt       Whether the GMT date is in use.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param bool       $translate Whether the time is translated.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param WP_Comment $comment   The comment object.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1067,7 +1067,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 string $format Optional. The format of the time. Default user's settings.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. PHP date format. Defaults to the 'time_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function comment_time( $format = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px">        echo get_comment_time( $format );
</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-08-31 23:45:24 UTC (rev 48928)
+++ trunk/src/wp-includes/general-template.php  2020-09-01 00:41:19 UTC (rev 48929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2470,9 +2470,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @global string $currentday  The day of the current post in the loop.
</span><span class="cx" style="display: block; padding: 0 10px">  * @global string $previousday The day of the previous post in the loop.
</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 $format Optional. PHP date format defaults to the date_format option if not specified.
- * @param string $before Optional. Output before the date.
- * @param string $after  Optional. Output after the date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. PHP date format. Defaults to the 'date_format' option.
+ * @param string $before Optional. Output before the date. Default empty.
+ * @param string $after  Optional. Output after the date. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param bool   $echo   Optional. Whether to echo the date or return it. Default true.
</span><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="lines" style="display: block; padding: 0 10px; color: #888">@@ -2492,8 +2492,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 $the_date The formatted date string.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $format   PHP date format. Defaults to 'date_format' option
-        *                         if not specified.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $format   PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param string $before   HTML output before the date.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $after    HTML output after the date.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2514,7 +2513,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string      $format Optional. PHP date format defaults to the date_format option if not specified.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string      $format Optional. PHP date format. Defaults to the 'date_format' option.
</ins><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><span class="cx" style="display: block; padding: 0 10px">  * @return string|false Date the current post was written. 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">@@ -2535,8 +2534,7 @@
</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      $the_date The formatted date.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string      $format   PHP date format. Defaults to 'date_format' option
-        *                              if not specified.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string      $format   PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param int|WP_Post $post     The post object or ID.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'get_the_date', $the_date, $format, $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2547,9 +2545,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $format Optional. PHP date format defaults to the date_format option if not specified.
- * @param string $before Optional. Output before the date.
- * @param string $after  Optional. Output after the date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. PHP date format. Defaults to the 'date_format' option.
+ * @param string $before Optional. Output before the date. Default empty.
+ * @param string $after  Optional. Output after the date. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param bool   $echo   Optional. Whether to echo the date or return it. Default true.
</span><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="lines" style="display: block; padding: 0 10px; color: #888">@@ -2561,11 +2559,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $the_modified_date The last modified date.
-        * @param string $format            PHP date format. Defaults to 'date_format' option
-        *                                  if not specified.
-        * @param string $before            HTML output before the date.
-        * @param string $after             HTML output after the date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|false $the_modified_date The last modified date or false if no post is found.
+        * @param string       $format            PHP date format.
+        * @param string       $before            HTML output before the date.
+        * @param string       $after             HTML output after the date.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        $the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2583,7 +2580,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">  * @since 4.6.0 Added the `$post` parameter.
</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      $format Optional. PHP date format defaults to the date_format option if not specified.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string      $format Optional. PHP date format. Defaults to the 'date_format' option.
</ins><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><span class="cx" style="display: block; padding: 0 10px">  * @return string|false Date the current post was modified. 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">@@ -2605,9 +2602,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.6.0 Added the `$post` parameter.
</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|bool  $the_time The formatted date or false if no post is found.
-        * @param string       $format   PHP date format. Defaults to value specified in
-        *                               'date_format' option.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|false $the_time The formatted date or false if no post is found.
+        * @param string       $format   PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param WP_Post|null $post     WP_Post object or null if no post is found.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'get_the_modified_date', $the_time, $format, $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2618,7 +2614,9 @@
</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 string $format Either 'G', 'U', or PHP date format.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. Format to use for retrieving the time the post
+ *                       was written. Accepts 'G', 'U', or PHP date format.
+ *                       Defaults to the 'time_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_time( $format = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2627,8 +2625,8 @@
</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 $get_the_time The formatted time.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $format       The time format. Accepts 'G', 'U',
-        *                             or PHP date format.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $format       Format to use for retrieving the time the post
+        *                             was written. Accepts 'G', 'U', or PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        echo apply_filters( 'the_time', get_the_time( $format ), $format );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2639,8 +2637,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      $format Optional. Format to use for retrieving the time the post
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *                            was written. Either 'G', 'U', or PHP date format defaults
- *                            to the value specified in the time_format option. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *                            was written. Accepts 'G', 'U', or PHP date format.
+ *                            Defaults to the 'time_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param int|WP_Post $post   WP_Post object or ID. Default is global `$post` object.
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
</span><span class="cx" style="display: block; padding: 0 10px">  *                          False on failure.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2662,9 +2660,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      $the_time The formatted time.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string      $format   Format to use for retrieving the time the post was written.
-        *                              Accepts 'G', 'U', or PHP date format value specified
-        *                              in 'time_format' option. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string      $format   Format to use for retrieving the time the post
+        *                              was written. Accepts 'G', 'U', or PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param int|WP_Post $post     WP_Post object or ID.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'get_the_time', $the_time, $format, $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2676,7 +2673,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      $format    Optional. Format to use for retrieving the time the post
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *                               was written. Either 'G', 'U', or PHP date format. Default 'U'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *                               was written. Accepts 'G', 'U', or PHP date format. Default 'U'.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param bool        $gmt       Optional. Whether to retrieve the GMT time. Default false.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param int|WP_Post $post      WP_Post object or ID. Default is global `$post` object.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param bool        $translate Whether to translate the time string. Default false.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2804,8 +2801,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $format Optional. Either 'G', 'U', or PHP date format defaults
- *                       to the value specified in the time_format option.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $format Optional. Format to use for retrieving the time the post
+ *                       was modified. Accepts 'G', 'U', or PHP date format.
+ *                       Defaults to the 'time_format' option.
</ins><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_modified_time( $format = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2813,10 +2811,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.0.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $get_the_modified_time The formatted time.
-        * @param string $format                The time format. Accepts 'G', 'U',
-        *                                      or PHP date format. Defaults to value
-        *                                      specified in 'time_format' option.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|false $get_the_modified_time The formatted time or false if no post is found.
+        * @param string       $format                Format to use for retrieving the time the post
+        *                                            was modified. Accepts 'G', 'U', or PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2828,8 +2825,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 4.6.0 Added the `$post` parameter.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @param string      $format Optional. Format to use for retrieving the time the post
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *                            was modified. Either 'G', 'U', or PHP date format defaults
- *                            to the value specified in the time_format option. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *                            was modified. Accepts 'G', 'U', or PHP date format.
+ *                            Defaults to the 'time_format' option.
</ins><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><span class="cx" style="display: block; padding: 0 10px">  * @return string|false Formatted date string or Unix timestamp. 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">@@ -2851,10 +2848,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">         * @since 4.6.0 Added the `$post` parameter.
</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|bool  $the_time The formatted time or false if no post is found.
-        * @param string       $format   Format to use for retrieving the time the post was
-        *                               written. Accepts 'G', 'U', or PHP date format. Defaults
-        *                               to value specified in 'time_format' option.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|false $the_time The formatted time or false if no post is found.
+        * @param string       $format   Format to use for retrieving the time the post
+        *                               was modified. Accepts 'G', 'U', or PHP date format.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param WP_Post|null $post     WP_Post object or null if no post is found.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'get_the_modified_time', $the_time, $format, $post );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2866,7 +2862,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      $format    Optional. Format to use for retrieving the time the post
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *                               was modified. Either 'G', 'U', or PHP date format. Default 'U'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *                               was modified. Accepts 'G', 'U', or PHP date format. Default 'U'.
</ins><span class="cx" style="display: block; padding: 0 10px">  * @param bool        $gmt       Optional. Whether to retrieve the GMT time. Default false.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param int|WP_Post $post      WP_Post object or ID. Default is global `$post` object.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param bool        $translate Whether to translate the time string. Default false.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2957,8 +2953,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @global string    $currentday      The day of the current post in the loop.
</span><span class="cx" style="display: block; padding: 0 10px">  * @global string    $previousweekday The day of the previous post in the loop.
</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 $before Optional. Output before the date.
- * @param string $after  Optional. Output after the date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $before Optional. Output before the date. Default empty.
+ * @param string $after  Optional. Output after the date. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function the_weekday_date( $before = '', $after = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px">        global $wp_locale, $currentday, $previousweekday;
</span></span></pre>
</div>
</div>

</body>
</html>