<!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>[5432] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc: developer.wordpress.org: Trim trailing whitespace.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/5432">5432</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/5432","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ocean90</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2017-04-29 14:52:50 +0000 (Sat, 29 Apr 2017)</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'>developer.wordpress.org: Trim trailing whitespace.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincautocompletephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/autocomplete.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincbreadcrumbtrailphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincextrasphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinclooppaginationphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/loop-pagination.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincsearchphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/search.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinctemplatetagsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincusercontentvotingphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincautocompletephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/autocomplete.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/autocomplete.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/autocomplete.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,7 +10,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class DevHub_Search_Form_Autocomplete {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> public function __construct() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->init();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincbreadcrumbtrailphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,16 +2,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Breadcrumb Trail - A breadcrumb menu script for WordPress.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page. It tries to
- * anticipate any type of structure and display the best possible trail that matches your site's
- * permalink structure. While not perfect, it attempts to fill in the gaps left by many other
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page. It tries to
+ * anticipate any type of structure and display the best possible trail that matches your site's
+ * permalink structure. While not perfect, it attempts to fill in the gaps left by many other
</ins><span class="cx" style="display: block; padding: 0 10px"> * breadcrumb scripts.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
- * General Public License as published by the Free Software Foundation; either version 2 of the License,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software Foundation; either version 2 of the License,
</ins><span class="cx" style="display: block; padding: 0 10px"> * or (at your option) any later version.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
</ins><span class="cx" style="display: block; padding: 0 10px"> * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @package BreadcrumbTrail
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,7 +23,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class,
</ins><span class="cx" style="display: block; padding: 0 10px"> * which should be used in theme templates.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.1.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -206,7 +206,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Runs through the various WordPress conditional tags to check the current page being viewed. Once
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Runs through the various WordPress conditional tags to check the current page being viewed. Once
</ins><span class="cx" style="display: block; padding: 0 10px"> * a condition is met, a specific method is launched to add items to the $items array.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -494,7 +494,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Adds a specific post's hierarchy to the items array. The hierarchy is determined by post type's
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Adds a specific post's hierarchy to the items array. The hierarchy is determined by post type's
</ins><span class="cx" style="display: block; padding: 0 10px"> * rewrite arguments and whether it has an archive page.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -541,7 +541,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Gets post types by slug. This is needed because the get_post_types() function doesn't exactly
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Gets post types by slug. This is needed because the get_post_types() function doesn't exactly
</ins><span class="cx" style="display: block; padding: 0 10px"> * match the 'has_archive' argument when it's set as a string instead of a boolean.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -595,7 +595,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $slug = trim( $taxonomy->rewrite['slug'], '/' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Deals with the situation if the slug has a '/' between multiple strings. For
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Deals with the situation if the slug has a '/' between multiple strings. For
</ins><span class="cx" style="display: block; padding: 0 10px"> * example, "movies/genres" where "movies" is the post type archive.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $matches = explode( '/', $slug );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -910,8 +910,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Get parent posts by path. Currently, this method only supports getting parents of the 'page'
- * post type. The goal of this function is to create a clear path back to home given what would
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Get parent posts by path. Currently, this method only supports getting parents of the 'page'
+ * post type. The goal of this function is to create a clear path back to home given what would
</ins><span class="cx" style="display: block; padding: 0 10px"> * normally be a "ghost" directory. If any page matches the given path, it'll be added.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -969,7 +969,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Searches for term parents of hierarchical taxonomies. This function is similar to the WordPress
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Searches for term parents of hierarchical taxonomies. This function is similar to the WordPress
</ins><span class="cx" style="display: block; padding: 0 10px"> * function get_category_parents() but handles any type of taxonomy.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1002,7 +1002,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Turns %tag% from permalink structures into usable links for the breadcrumb trail. This feels kind of
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post'
</ins><span class="cx" style="display: block; padding: 0 10px"> * post type. In the future, maybe it'll handle a wider variety of possibilities, especially for custom post
</span><span class="cx" style="display: block; padding: 0 10px"> * types.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1083,7 +1083,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Extends the Breadcrumb_Trail class for bbPress. Only use this if bbPress is in use. This should
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Extends the Breadcrumb_Trail class for bbPress. Only use this if bbPress is in use. This should
</ins><span class="cx" style="display: block; padding: 0 10px"> * serve as an example for other plugin developers to build custom breadcrumb items.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1092,7 +1092,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class bbPress_Breadcrumb_Trail extends Breadcrumb_Trail {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Runs through the various bbPress conditional tags to check the current page being viewed. Once
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Runs through the various bbPress conditional tags to check the current page being viewed. Once
</ins><span class="cx" style="display: block; padding: 0 10px"> * a condition is met, add items to the $items array.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.6.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1233,4 +1233,4 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-?>
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincextrasphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -155,7 +155,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $wp_rewrite->using_permalinks() && ! is_search() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pagenum = trailingslashit( preg_replace( '/\?.*/', '', get_pagenum_link() ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $pagination_base = $wp_rewrite->pagination_base;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> $args['base'] = user_trailingslashit( $pagenum . "{$pagination_base}/%#%" );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,7 +165,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Removes 'page/1' from pagination links with a query string.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $page_links Page links HTML.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Page links HTML.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -179,7 +179,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $query_string[1] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $query_string = preg_quote( $query_string[1], '#' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Remove 'page/1' from the entire output since it's not needed.
</span><span class="cx" style="display: block; padding: 0 10px"> $page_links = preg_replace(
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinclooppaginationphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/loop-pagination.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/loop-pagination.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/loop-pagination.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,15 +2,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Loop Pagination - A WordPress script for creating paginated links on archive-type pages.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * The Loop Pagination script was designed to give theme authors a quick way to paginate archive-type
- * (archive, search, and blog) pages without having to worry about which of the many plugins a user might
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The Loop Pagination script was designed to give theme authors a quick way to paginate archive-type
+ * (archive, search, and blog) pages without having to worry about which of the many plugins a user might
</ins><span class="cx" style="display: block; padding: 0 10px"> * possibly be using. Instead, they can simply build pagination right into their themes.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
- * General Public License as published by the Free Software Foundation; either version 2 of the License,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software Foundation; either version 2 of the License,
</ins><span class="cx" style="display: block; padding: 0 10px"> * or (at your option) any later version.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
</ins><span class="cx" style="display: block; padding: 0 10px"> * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @package LoopPagination
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +22,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Loop pagination function for paginating loops with multiple posts. This should be used on archive, blog, and
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Loop pagination function for paginating loops with multiple posts. This should be used on archive, blog, and
</ins><span class="cx" style="display: block; padding: 0 10px"> * search pages. It is not for singular views.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 0.1.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -86,15 +86,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $page_links = paginate_links( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Remove 'page/1' from the entire output since it's not needed. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $page_links = preg_replace(
- array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $page_links = preg_replace(
+ array(
</ins><span class="cx" style="display: block; padding: 0 10px"> "#(href=['\"].*?){$pagination_base}/1(['\"])#", // 'page/1'
</span><span class="cx" style="display: block; padding: 0 10px"> "#(href=['\"].*?){$pagination_base}/1/(['\"])#", // 'page/1/'
</span><span class="cx" style="display: block; padding: 0 10px"> "#(href=['\"].*?)\?paged=1(['\"])#", // '?paged=1'
</span><span class="cx" style="display: block; padding: 0 10px"> "#(href=['\"].*?)&\#038;paged=1(['\"])#" // '&paged=1'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ),
- '$1$2',
- $page_links
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ),
+ '$1$2',
+ $page_links
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Wrap the paginated links with the $before and $after elements. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -110,4 +110,4 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $page_links;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-?>
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincsearchphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/search.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/search.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/search.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -87,7 +87,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Not a handbook page, or exact search, or filters used.
</span><span class="cx" style="display: block; padding: 0 10px"> // Fallback to parsed post types.
</span><span class="cx" style="display: block; padding: 0 10px"> $query->set( 'post_type', DevHub\get_parsed_post_types() );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinctemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,9 +75,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'wporg_developer_get_ordered_notes' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Get contibuted notes ordered by vote
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * By default only top level comments are returned.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * If child notes are included use wp_list_comments() or a custom walker for display.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * If child notes are included use wp_list_comments() or a custom walker for display.
</ins><span class="cx" style="display: block; padding: 0 10px"> * unapproved notes for the current user are included.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param integer $post_id Optional. Post id to get comments for
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,10 +105,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults['status'] = 'all';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $args = wp_parse_args( $args, $defaults );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args = wp_parse_args( $args, $defaults );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $comments = get_comments( $args );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! $comments ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,7 +144,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <li id="comment-<?php comment_ID(); ?>" <?php comment_class( implode( ' ', $comment_class ) ); ?>>
</span><span class="cx" style="display: block; padding: 0 10px"> <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <a href="#comment-content-<?php echo $comment->comment_ID; ?>" class="screen-reader-text"><?php _e( 'Skip to note content', 'wporg' ); ?></a>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <a href="#comment-content-<?php echo $comment->comment_ID; ?>" class="screen-reader-text"><?php _e( 'Skip to note content', 'wporg' ); ?></a>
</ins><span class="cx" style="display: block; padding: 0 10px"> <header class="comment-meta">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php DevHub_User_Contributed_Notes_Voting::show_voting(); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="comment-author vcard">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,7 +180,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> —
</span><span class="cx" style="display: block; padding: 0 10px"> <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <time datetime="<?php comment_time( 'c' ); ?>">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php
</ins><span class="cx" style="display: block; padding: 0 10px"> printf( _x( '%1$s ago', '%1$s = human-readable time difference', 'wporg' ),
</span><span class="cx" style="display: block; padding: 0 10px"> human_time_diff( get_comment_time( 'U' ),
</span><span class="cx" style="display: block; padding: 0 10px"> current_time( 'timestamp' ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1293,7 +1293,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * The (long) description is stored in the 'post_content' get_post_field.
</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 null|WP_Post Optiona. The post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param null|WP_Post Optional. The post.
</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_description( $post = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1449,8 +1449,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Displays a post type filter dropdown on taxonomy pages.
- *
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Displays a post type filter dropdown on taxonomy pages.
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string HTML filter form.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function taxonomy_archive_filter() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1482,7 +1482,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Add taxonomy and term when not using permalinks.
</span><span class="cx" style="display: block; padding: 0 10px"> $form .= "<input type='hidden' name='" . esc_attr( $taxonomy ) . "' value='" . esc_attr( $term ) . "'>";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> $form .= "<label for='archive-filter'>";
</span><span class="cx" style="display: block; padding: 0 10px"> $form .= __( 'Filter by type:', 'wporg' ) . ' ';
</span><span class="cx" style="display: block; padding: 0 10px"> $form .= '<select name="post_type[]" id="archive-filter">';
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincusercontentvotingphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php 2017-04-29 14:42:35 UTC (rev 5431)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php 2017-04-29 14:52:50 UTC (rev 5432)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,7 +298,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $comment_link = get_comment_link( $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> $nonce = wp_create_nonce( 'user-note-vote-' . $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> $disabled_str = __( 'Voting for this note is disabled', 'wporg' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $cancel_str = __( 'Click to cancel your vote', 'wporg' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $cancel_str = __( 'Click to cancel your vote', 'wporg' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $log_in_str = __( 'You must log in to vote on the helpfulness of this note', 'wporg' );
</span><span class="cx" style="display: block; padding: 0 10px"> $log_in_url = add_query_arg( 'redirect_to', urlencode( $comment_link ), 'https://login.wordpress.org' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -311,7 +311,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Up vote link
</span><span class="cx" style="display: block; padding: 0 10px"> $user_upvoted = self::has_user_upvoted_comment( $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $can_vote ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $cancel = $user_upvoted ? '. ' . $cancel_str . '.' : '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $cancel = $user_upvoted ? '. ' . $cancel_str . '.' : '';
</ins><span class="cx" style="display: block; padding: 0 10px"> $title = $user_upvoted ?
</span><span class="cx" style="display: block; padding: 0 10px"> __( 'You have voted to indicate this note was helpful', 'wporg' ) . $cancel :
</span><span class="cx" style="display: block; padding: 0 10px"> __( 'Vote up if this note was helpful', 'wporg' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -389,7 +389,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * 'total' : The total number of votes (upvotes + downvotes)
</span><span class="cx" style="display: block; padding: 0 10px"> * 'difference' : The difference between upvotes and downvotes (upvotes - downvotes)
</span><span class="cx" style="display: block; padding: 0 10px"> * 'like_percentage' : The percentage of total votes that upvoted
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $type The type of count to return.
</span></span></pre>
</div>
</div>
</body>
</html>