<!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>[7354] sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc: Support Hub: Update Support Hub to latest changes via GitHub</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="http://meta.trac.wordpress.org/changeset/7354">7354</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/7354","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>netweb</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-07-02 12:47:04 +0000 (Mon, 02 Jul 2018)</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'>Support Hub: Update Support Hub to latest changes via GitHub
References:
* https://github.com/Kenshino/HelpHub/commit/18f1f61
* https://github.com/Kenshino/HelpHub/commit/8e40f35
* https://github.com/Kenshino/HelpHub/commit/83e3919
Props clorith, kenshino, netweb.
See <a href="http://meta.trac.wordpress.org/ticket/3485">#3485</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcodexlanguagesclasshelphubcodexlanguagesphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcontributorsadminclasshelphubcontributorsadminphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcontributorsincludesclasshelphubcontributorsphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/includes/class-helphub-contributors.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcontributorspublicclasshelphubcontributorspublicphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/public/class-helphub-contributors-public.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludesclasssupporthelphubfrontpageblockswidgetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/class-support-helphub-front-page-blocks-widget.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludeswidgetbackendphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludeswidgetfrontendphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypesposttypephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypestaxonomyphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypesphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinctableofcontentsliteincludesclasstableofcontentslitephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcodexlanguagesclasshelphubcodexlanguagesphp"></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/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.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/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -111,8 +111,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function codex_languages_func( $atts ) {
</span><span class="cx" style="display: block; padding: 0 10px"> wp_enqueue_style( 'helphub-codex-languages-style', $this->plugin_url . 'assets/css/codex-languages.css', array(), '1.0.0' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $str = '<p class="language-links"><a href="https://codex.wordpress.org/Multilingual_Codex" title="Multilingual Codex" class="mw-redirect">Languages</a>: <strong class="selflink">English</strong>';
- $lang_table = array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $str = '<p class="language-links"><a href="https://codex.wordpress.org/Multilingual_Codex" title="Multilingual Codex" class="mw-redirect">Languages</a>: <strong class="selflink">English</strong>';
+ $lang_table = array(
</ins><span class="cx" style="display: block; padding: 0 10px"> array( 'Arabic', 'العربية', 'ar_codex', 'https://codex.wordpress.org/ar:%1s' ),
</span><span class="cx" style="display: block; padding: 0 10px"> array( 'Azerbaijani', 'Azərbaycanca', 'azr_codex', 'https://codex.wordpress.org/azr:%1s' ),
</span><span class="cx" style="display: block; padding: 0 10px"> array( 'Azeri', 'آذری', 'azb_codex', 'https://codex.wordpress.org/azb:%1s' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $shortcode_params[ $lang[2] ] = null;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> $args = shortcode_atts( $shortcode_params, $atts );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $i = 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $i = 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $args as $key => $value ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( null != $value ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $str .= sprintf( ' • <a class="external text" href="' . $lang_table[ $i ][3] . '">' . $lang_table[ $i ][1] . '</a>', $value );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcontributorsadminclasshelphubcontributorsadminphp"></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/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.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/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -46,7 +46,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function __construct( $helphub_contributors, $version ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->helphub_contributors = $helphub_contributors;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->version = $version;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->version = $version;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'post_submitbox_misc_actions', array( $this, 'add_contributors' ) );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubcontributorsincludesclasshelphubcontributorsphp"></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/plugins/support-helphub/inc/helphub-contributors/includes/class-helphub-contributors.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/plugins/support-helphub/inc/helphub-contributors/includes/class-helphub-contributors.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/includes/class-helphub-contributors.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,7 +52,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __construct() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->helphub_contributors = 'helphub-contributors';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->version = '1.0.0';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->version = '1.0.0';
</ins><span class="cx" style="display: block; padding: 0 10px"> add_action( 'init', array( $this, 'set_locale' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->required_dependencies();
</span><span class="cx" style="display: block; padding: 0 10px"> $this->admin_hooks();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,7 +67,8 @@
</span><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"> public function set_locale() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- load_plugin_textdomain( $this->get_helphub_contributors(), false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ load_plugin_textdomain(
+ $this->get_helphub_contributors(), false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
</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_htmlwpcontentpluginssupporthelphubinchelphubcontributorspublicclasshelphubcontributorspublicphp"></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/plugins/support-helphub/inc/helphub-contributors/public/class-helphub-contributors-public.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/plugins/support-helphub/inc/helphub-contributors/public/class-helphub-contributors-public.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/public/class-helphub-contributors-public.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,7 +45,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __construct( $helphub_contributors, $version ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->helphub_contributors = $helphub_contributors;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->version = $version;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->version = $version;
</ins><span class="cx" style="display: block; padding: 0 10px"> add_action( 'wp_enqueue_scripts', array( $this, 'public_enqueue_scripts' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'the_content', array( $this, 'show_contributors' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -148,6 +148,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> else :
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Display message if no user is found with provided username.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: Username, do not translate. */
</ins><span class="cx" style="display: block; padding: 0 10px"> $contributors_items .= '<div class="contributor contributor-not-found"><p>' . sprintf( __( '%s is not a valid username.', 'wporg-forums' ), '<strong>' . $contributor . '</strong>' ) . '</p></div>';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> endif; // is_object( $contributor_object )
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludesclasssupporthelphubfrontpageblockswidgetphp"></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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/class-support-helphub-front-page-blocks-widget.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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/class-support-helphub-front-page-blocks-widget.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/class-support-helphub-front-page-blocks-widget.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,10 +52,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function update( $new_instance, $old_instance ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $save_instance = array();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $save_instance['icon'] = ( ! empty( $new_instance['icon'] ) ? strip_tags( $new_instance['icon'] ) : '' );
- $save_instance['title'] = ( ! empty( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : '' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $save_instance['icon'] = ( ! empty( $new_instance['icon'] ) ? strip_tags( $new_instance['icon'] ) : '' );
+ $save_instance['title'] = ( ! empty( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : '' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $save_instance['description'] = ( ! empty( $new_instance['description'] ) ? strip_tags( $new_instance['description'] ) : '' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $save_instance['menu'] = ( ! empty( $new_instance['menu'] ) ? strip_tags( $new_instance['menu'] ) : '' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $save_instance['categoryid'] = ( ! empty( $new_instance['categoryid'] ) ? strip_tags( $new_instance['categoryid'] ) : '' );
+ $save_instance['menu'] = ( ! empty( $new_instance['menu'] ) ? strip_tags( $new_instance['menu'] ) : '' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $save_instance;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludeswidgetbackendphp"></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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,6 +29,28 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </p>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <p>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <label for="<?php echo esc_attr( $this->get_field_id( 'categoryid' ) ); ?>">
+ <?php esc_html_e( 'Category link', 'wporg-forums' ); ?>
+ </label>
+ <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'categoryid' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'categoryid' ) ); ?>">
+ <?php
+ $categories = get_categories( array(
+ 'hide_empty' => 0,
+ ) );
+
+ foreach ( $categories as $category ) {
+ printf(
+ '<option value="%s" %s>%s</option>',
+ esc_attr( $category->term_id ),
+ selected( $instance['categoryid'], $category->term_id ),
+ esc_html( $category->name )
+ );
+ }
+ ?>
+ </select>
+</p>
+
+<p>
</ins><span class="cx" style="display: block; padding: 0 10px"> <label for="<?php echo esc_attr( $this->get_field_id( 'menu' ) ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php esc_html_e( 'Link menu', 'wporg-forums' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </label>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -40,7 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> '<option value="%s" %s>%s</option>',
</span><span class="cx" style="display: block; padding: 0 10px"> esc_attr( $nav_menu->term_id ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ( isset( $instance['menu'] ) && ! empty( $instance['menu'] ) && $nav_menu->term_id === $instance['menu'] ? 'selected="selected"' : '' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ selected( $instance['menu'], $nav_menu->term_id ),
</ins><span class="cx" style="display: block; padding: 0 10px"> esc_html( $nav_menu->name )
</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_htmlwpcontentpluginssupporthelphubinchelphubfrontpageblocksincludeswidgetfrontendphp"></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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.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/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,17 +12,18 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="info-box">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="icon-wrapper">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <a href="<?php echo esc_url( get_category_link( $instance['categoryid'] ) ); ?>">
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php if ( stristr( $instance['icon'], '.' ) ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <img src="<?php echo esc_url( $instance['icon'] ); ?>" width="108" alt="">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php else : ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <span class="dashicons
- <?php echo esc_attr( $instance['icon'] ); ?>
- "></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <span class="dashicons <?php echo esc_attr( $instance['icon'] ); ?>"></span>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </a>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <h3><?php echo esc_html( $instance['title'] ); ?></h3>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <a href="<?php echo esc_url( get_category_link( $instance['categoryid'] ) ); ?>">
+ <h3><?php echo esc_html( $instance['title'] ); ?></h3>
+ </a>
</ins><span class="cx" style="display: block; padding: 0 10px"> <p><?php echo esc_html( $instance['description'] ); ?></p>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> <ul class="meta-list">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> $menu_items = wp_get_nav_menu_items( $instance['menu'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,9 +36,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"> </ul>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> </div>
</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"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> echo $args['after_widget']; // WPCS: XSS OK.
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypesposttypephp"></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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,10 +98,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'post_updated_messages', array( $this, 'updated_messages' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && $this->post_type === $_GET['post_type'] ) { // WPCS: input var ok; CSRF ok.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- add_filter( 'manage_edit-' . $this->post_type . '_columns', array(
- $this,
- 'register_custom_column_headings',
- ), 10, 1 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_filter(
+ 'manage_edit-' . $this->post_type . '_columns', array(
+ $this,
+ 'register_custom_column_headings',
+ ), 10, 1
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> add_action( 'manage_posts_custom_column', array( $this, 'register_custom_columns' ), 10, 2 );
</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">@@ -300,15 +302,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function meta_box_setup() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'post' === $this->post_type ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- add_meta_box( $this->post_type . '-display', __( 'Display Settings', 'wporg-forums' ), array(
- $this,
- 'meta_box_content',
- ), $this->post_type, 'normal', 'high' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_meta_box(
+ $this->post_type . '-display', __( 'Display Settings', 'wporg-forums' ), array(
+ $this,
+ 'meta_box_content',
+ ), $this->post_type, 'normal', 'high'
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> } elseif ( 'helphub_version' === $this->post_type ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- add_meta_box( $this->post_type . '-version-meta', __( 'Display Settings', 'wporg-forums' ), array(
- $this,
- 'meta_box_version_content',
- ), $this->post_type, 'normal', 'high' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_meta_box(
+ $this->post_type . '-version-meta', __( 'Display Settings', 'wporg-forums' ), array(
+ $this,
+ 'meta_box_version_content',
+ ), $this->post_type, 'normal', 'high'
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } // End meta_box_setup()
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -369,13 +375,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> switch ( $v['type'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> case 'hidden':
</span><span class="cx" style="display: block; padding: 0 10px"> $field = '<input name="' . esc_attr( $k ) . '" type="hidden" id="' . esc_attr( $k ) . '" value="' . esc_attr( $data ) . '" />';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $html .= '<tr valign="top">' . $field . "\n";
- $html .= '</tr>' . "\n";
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $html .= '<tr valign="top">' . $field . "\n";
+ $html .= '</tr>' . "\n";
</ins><span class="cx" style="display: block; padding: 0 10px"> break;
</span><span class="cx" style="display: block; padding: 0 10px"> case 'text':
</span><span class="cx" style="display: block; padding: 0 10px"> case 'url':
</span><span class="cx" style="display: block; padding: 0 10px"> $field = '<input name="' . esc_attr( $k ) . '" type="text" id="' . esc_attr( $k ) . '" class="regular-text" value="' . esc_attr( $data ) . '" />';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $v['description'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $html .= '<p class="description">' . $v['description'] . '</p>' . "\n";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -383,7 +389,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</span><span class="cx" style="display: block; padding: 0 10px"> case 'textarea':
</span><span class="cx" style="display: block; padding: 0 10px"> $field = '<textarea name="' . esc_attr( $k ) . '" id="' . esc_attr( $k ) . '" class="large-text">' . esc_attr( $data ) . '</textarea>';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $v['description'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $html .= '<p class="description">' . $v['description'] . '</p>' . "\n";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -391,10 +397,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</span><span class="cx" style="display: block; padding: 0 10px"> case 'editor':
</span><span class="cx" style="display: block; padding: 0 10px"> ob_start();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- wp_editor( $data, $k, array(
- 'media_buttons' => false,
- 'textarea_rows' => 10,
- ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp_editor(
+ $data, $k, array(
+ 'media_buttons' => false,
+ 'textarea_rows' => 10,
+ )
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> $field = ob_get_contents();
</span><span class="cx" style="display: block; padding: 0 10px"> ob_end_clean();
</span><span class="cx" style="display: block; padding: 0 10px"> $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -415,7 +423,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $data_atts .= sprintf( 'data-library="%s" ', esc_attr( $v['media-frame']['library'] ) );
</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">- $field = '<input name="' . esc_attr( $k ) . '" type="file" id="' . esc_attr( $k ) . '" class="regular-text helphub-upload-field" />';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $field = '<input name="' . esc_attr( $k ) . '" type="file" id="' . esc_attr( $k ) . '" class="regular-text helphub-upload-field" />';
</ins><span class="cx" style="display: block; padding: 0 10px"> $field .= '<button id="' . esc_attr( $k ) . '" class="helphub-upload button" ' . $data_atts . '>' . $v['label'] . '</button>';
</span><span class="cx" style="display: block; padding: 0 10px"> $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $v['description'] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -476,7 +484,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $data = time();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> $field = '<input name="' . esc_attr( $k ) . '" type="date" id="' . esc_attr( $k ) . '" class="helphub-meta-date" value="' . esc_attr( date_i18n( 'F d, Y', $data ) ) . '" />';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $html .= '<tr valign="top"><th><label for="' . esc_attr( $k ) . '">' . $v['name'] . '</label></th><td>' . $field . "\n";
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $v['description'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $html .= '<p class="description">' . $v['description'] . '</p>' . "\n";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypestaxonomyphp"></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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -80,9 +80,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __construct( $post_type = array(), $token = 'thing-category', $singular = '', $plural = '', $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->post_type = $post_type;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->token = esc_attr( $token );
- $this->singular = esc_html( $singular );
- $this->plural = esc_html( $plural );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->token = esc_attr( $token );
+ $this->singular = esc_html( $singular );
+ $this->plural = esc_html( $plural );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( '' === $this->singular ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->singular = __( 'Category', 'wporg-forums' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,15 +105,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function _get_default_args() {
</span><span class="cx" style="display: block; padding: 0 10px"> return array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'labels' => $this->_get_default_labels(),
- 'public' => true,
- 'hierarchical' => true,
- 'show_ui' => true,
- 'show_admin_column' => true,
- 'query_var' => true,
- 'show_in_nav_menus' => false,
- 'show_tagcloud' => false,
- 'rewrite' => array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'labels' => $this->_get_default_labels(),
+ 'public' => true,
+ 'hierarchical' => true,
+ 'show_ui' => true,
+ 'show_admin_column' => true,
+ 'query_var' => true,
+ 'show_in_nav_menus' => false,
+ 'show_tagcloud' => false,
+ 'rewrite' => array(
</ins><span class="cx" style="display: block; padding: 0 10px"> 'slug' => str_replace( 'helphub_', '', esc_attr( $this->token ) ),
</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">@@ -130,22 +130,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => sprintf( _x( '%s', 'taxonomy general name', 'wporg-forums' ), $this->plural ), /* @codingStandardsIgnoreLine */
</span><span class="cx" style="display: block; padding: 0 10px"> 'singular_name' => sprintf( _x( '%s', 'taxonomy singular name', 'wporg-forums' ), $this->singular ), /* @codingStandardsIgnoreLine */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'search_items' => sprintf( __( 'Search %s', 'wporg-forums' ), $this->plural ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: Plural of the search label. */
+ 'search_items' => sprintf( __( 'Search %s', 'wporg-forums' ), $this->plural ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Plural name of the post type. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'all_items' => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'all_items' => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'parent_item' => sprintf( __( 'Parent %s', 'wporg-forums' ), $this->singular ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'parent_item' => sprintf( __( 'Parent %s', 'wporg-forums' ), $this->singular ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'parent_item_colon' => sprintf( __( 'Parent %s:', 'wporg-forums' ), $this->singular ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'parent_item_colon' => sprintf( __( 'Parent %s:', 'wporg-forums' ), $this->singular ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'edit_item' => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'edit_item' => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'update_item' => sprintf( __( 'Update %s', 'wporg-forums' ), $this->singular ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'update_item' => sprintf( __( 'Update %s', 'wporg-forums' ), $this->singular ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'add_new_item' => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'add_new_item' => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ),
</ins><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: Post type name. */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'new_item_name' => sprintf( __( 'New %s Name', 'wporg-forums' ), $this->singular ),
- 'menu_name' => $this->plural,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'new_item_name' => sprintf( __( 'New %s Name', 'wporg-forums' ), $this->singular ),
+ 'menu_name' => $this->plural,
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> } // End _get_default_labels()
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinchelphubposttypesclassesclasshelphubposttypesphp"></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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.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/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -126,15 +126,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require_once( dirname( __FILE__ ) . '/class-helphub-post-types-post-type.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> require_once( dirname( __FILE__ ) . '/class-helphub-post-types-taxonomy.php' );
</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->post_types['post'] = new HelpHub_Post_Types_Post_Type( 'post', __( 'Post', 'wporg-forums' ), __( 'Posts', 'wporg-forums' ), array(
- 'menu_icon' => 'dashicons-post',
- ) );
- $this->post_types['helphub_article'] = new HelpHub_Post_Types_Post_Type( 'helphub_article', __( 'Article', 'wporg-forums' ), __( 'Articles', 'wporg-forums' ), array(
- 'menu_icon' => 'dashicons-media-document',
- ) );
- $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type( 'helphub_version', __( 'WordPress Version', 'wporg-forums' ), __( 'WordPress Versions', 'wporg-forums' ), array(
- 'menu_icon' => 'dashicons-wordpress',
- ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->post_types['post'] = new HelpHub_Post_Types_Post_Type(
+ 'post', __( 'Post', 'wporg-forums' ), __( 'Posts', 'wporg-forums' ), array(
+ 'menu_icon' => 'dashicons-post',
+ )
+ );
+ $this->post_types['helphub_article'] = new HelpHub_Post_Types_Post_Type(
+ 'helphub_article', __( 'Article', 'wporg-forums' ), __( 'Articles', 'wporg-forums' ), array(
+ 'menu_icon' => 'dashicons-media-document',
+ )
+ );
+ $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type(
+ 'helphub_version', __( 'WordPress Version', 'wporg-forums' ), __( 'WordPress Versions', 'wporg-forums' ), array(
+ 'menu_icon' => 'dashicons-wordpress',
+ )
+ );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Post Types - End */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -173,8 +179,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Load the localisation file.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @access public
- * @since 1.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @access public
+ * @since 1.0.0
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function load_plugin_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> load_plugin_textdomain( 'wporg-forums', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -181,11 +187,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } // End load_plugin_textdomain()
</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">- * Make sure category archive actually loads
- *
- * @access public
- * @since 1.1.0
- */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Make sure category archive actually loads
+ *
+ * @access public
+ * @since 1.1.0
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function fix_archive_category( WP_Query $query ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_admin() && is_category() && $query->is_main_query() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $query->set( 'post_type', 'helphub_article' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -196,8 +202,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Enqueue post type admin Styles.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 1.0.0
- * @return void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 1.0.0
+ * @return void
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function enqueue_admin_styles() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $pagenow;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -212,7 +218,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp_enqueue_style( 'jquery-ui-datepicker' );
</span><span class="cx" style="display: block; padding: 0 10px"> endif;
</span><span class="cx" style="display: block; padding: 0 10px"> endif;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- wp_localize_script( 'helphub-post-types-admin', 'HelphubAdmin',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp_localize_script(
+ 'helphub-post-types-admin', 'HelphubAdmin',
</ins><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'default_title' => __( 'Upload', 'wporg-forums' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'default_button' => __( 'Select this', 'wporg-forums' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -219,7 +226,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">- wp_localize_script( 'helphub-post-types-gallery', 'HelphubGallery',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp_localize_script(
+ 'helphub-post-types-gallery', 'HelphubGallery',
</ins><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'gallery_title' => __( 'Add Images to Product Gallery', 'wporg-forums' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'gallery_button' => __( 'Add to gallery', 'wporg-forums' ),
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssupporthelphubinctableofcontentsliteincludesclasstableofcontentslitephp"></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/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.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/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php 2018-06-29 22:02:25 UTC (rev 7353)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php 2018-07-02 12:47:04 UTC (rev 7354)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -222,6 +222,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function add_toc( $content ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! is_singular() ) {
+ return $content;
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $toc = '';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $items = $this->get_tags_in_content( 'h([1-4])', $content ); // returns the h1-h4 tags inside the_content.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -235,10 +239,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $items ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $contents_header = sprintf( 'h%s', $items[0][2] );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $toc .= '<div class="table-of-contents">';
- $toc .= '<h2 class="toc-title">' . __( 'Topics', 'wporg-forums' ) . '</h2>';
- $toc .= '<ul class="items">';
- $last_item = false;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $toc .= '<div class="table-of-contents">';
+ $toc .= '<h2 class="toc-title">' . __( 'Topics', 'wporg-forums' ) . '</h2>';
+ $toc .= '<ul class="items">';
+ $last_item = false;
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $items as $item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $last_item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $last_item < $item[2] ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -250,7 +254,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"> $last_item = $item[2];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $toc .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title_with_dashes( $item[3] ), $item[3] );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $toc .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title_with_dashes( $item[3] ), $item[3] );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> $toc .= '</ul></div>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>