<!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>[3379] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer: developer.wordpress.org: Improve UX/UI for user contributed notes.</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/3379">3379</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/3379","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>coffee2code</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-06-15 22:09:02 +0000 (Wed, 15 Jun 2016)</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: Improve UX/UI for user contributed notes.

* UI improvements to notes.
* Order notes in descending order by cumulative vote rating.
* Notes with a cumulative vote rating below -1 are shown slightly faded out.

Props keesiemeijer.
See <a href="http://meta.trac.wordpress.org/ticket/1649">#1649</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercommentsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.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_htmlwpcontentthemespubwporgdeveloperscssmainscss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercommentsphp"></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/comments.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/comments.php  2016-06-15 08:30:23 UTC (rev 3378)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.php    2016-06-15 22:09:02 UTC (rev 3379)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,7 +42,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( is_singular( 'post' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        wp_list_comments();
</span><span class="cx" style="display: block; padding: 0 10px">                                } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 $ordered_comments = wporg_developer_get_ordered_notes();
+                                       if ( $ordered_comments ) {
+                                               wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ), $ordered_comments );
+                                       }
</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">                </ol><!-- .comment-list -->
</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 2016-06-15 08:30:23 UTC (rev 3378)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php   2016-06-15 22:09:02 UTC (rev 3379)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,80 +72,131 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        endif;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        if ( ! function_exists( 'wporg_developer_user_note' ) ) :
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! function_exists( 'wporg_developer_get_ordered_notes' ) ) :
</ins><span class="cx" style="display: block; padding: 0 10px">                 /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 * Template for user contributed notes.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          * Get contibuted notes ordered by vote
+                * 
+                * By default only top level comments are returned.
+                * If child notes are included use wp_list_comments() or a custom walker for display. 
+                * unapproved notes for the current user are included.
</ins><span class="cx" style="display: block; padding: 0 10px">                  *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 * Used as a callback by wp_list_comments() for displaying the notes.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          * @param integer $post_id Optional. Post id to get comments for
+                * @param array $args Arguments used for get_comments().
+                * @return array Array with comment objects
</ins><span class="cx" style="display: block; padding: 0 10px">                  */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                function wporg_developer_user_note( $comment, $args, $depth ) {
-                       $GLOBALS['comment'] = $comment;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         function wporg_developer_get_ordered_notes( $post_id = 0, $args = array() ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $post_id = absint( $post_id );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <li id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
-                               <div class="comment-body">
-                                       <?php _e( 'Pingback:', 'wporg' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( 'Edit', 'wporg' ), '<span class="edit-link">', '</span>' ); ?>
-                               </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 if ( ! $post_id ) {
+                               $post_id = get_the_ID();
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <?php else : ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $order    = array();
+                       $defaults = array(
+                               'post__in'           => array( $post_id ),
+                               'type'               => 'comment',
+                               'status'             => 'approve',
+                               'include_unapproved' => array_filter( array( get_current_user_id() ) ),
+                               'parent'             => false,
+                       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <li id="comment-<?php comment_ID(); ?>" <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?>>
-                               <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
-                                       <div class="comment-content">
-                                               <?php comment_text(); ?>
-                                       </div>
-                                       <!-- .comment-content -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 if ( is_super_admin() ) {
+                               $defaults['status'] = 'all';
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        <footer class="comment-meta">
-                                               <?php DevHub_User_Contributed_Notes_Voting::show_voting(); ?>
-                                               <div class="comment-author vcard">
-                                                       <span class="comment-author-attribution">
-                                                       <?php if ( 0 != $args['avatar_size'] ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $args = wp_parse_args( $args, $defaults ); 
+
+                       $comments = get_comments( $args );
+               
+                       if ( ! $comments ) {
+                               return;
+                       }
+
+                       foreach ( $comments as $key => $comment ) {
+                               $order[ $key ] = (int) DevHub_User_Contributed_Notes_Voting::count_votes( $comment->comment_ID, 'difference' );
+                       }
+
+                       // sort the posts by votes
+                       array_multisort( $order, SORT_DESC, $comments );
+
+                       return $comments;
+               }
+       endif;
+
+       if ( ! function_exists( 'wporg_developer_user_note' ) ) :
+               /**
+                * Template for user contributed notes.
+                */
+               function wporg_developer_user_note( $comment, $args, $depth ) {
+                       $GLOBALS['comment'] = $comment;
+                       $count = (int) DevHub_User_Contributed_Notes_Voting::count_votes( $comment->comment_ID, 'difference' );
+                       $comment_class = ( -1 > $count ) ? 'bad-note' : '';
+                       ?>
+
+                       <li id="comment-<?php comment_ID(); ?>" <?php comment_class( $comment_class ); ?>>
+                       <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
+                               <header class="comment-meta">
+                                       <?php DevHub_User_Contributed_Notes_Voting::show_voting(); ?>
+                                       <div class="comment-author vcard">
+                                               <span class="comment-author-attribution">
+                                               <?php if ( 0 != $args['avatar_size'] ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                                                 echo get_avatar( $comment, $args['avatar_size'] );
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        <?php
-                                                               // This would all be moot if core passed the $comment context for 'get_comment_author_link' filter
-                                                               if ( $comment->user_id ) {
-                                                                       $commenter = get_user_by( 'id', $comment->user_id );
-                                                                       $url = 'https://profiles.wordpress.org/' . esc_attr( $commenter->user_nicename ) . '/';
-                                                                       $author = get_the_author_meta( 'display_name', $comment->user_id );
-                                                               } else {
-                                                                       $url = $comment->comment_author_url;
-                                                                       $author = $comment->comment_author;
-                                                               }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <?php
+                                                       // This would all be moot if core passed the $comment context for 'get_comment_author_link' filter
+                                                       if ( $comment->user_id ) {
+                                                               $commenter = get_user_by( 'id', $comment->user_id );
+                                                               $url = 'https://profiles.wordpress.org/' . esc_attr( $commenter->user_nicename ) . '/';
+                                                               $author = get_the_author_meta( 'display_name', $comment->user_id );
+                                                       } else {
+                                                               $url = $comment->comment_author_url;
+                                                               $author = $comment->comment_author;
+                                                       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                                $comment_author_link = '';
-                                                               if ( $url ) {
-                                                                       $comment_author_link = "<a href='$url' rel='external nofollow' class='url'>";
-                                                               }
-                                                               $comment_author_link .= $author;
-                                                               if ( $url ) {
-                                                                       $comment_author_link .= '</a>';
-                                                               }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 $comment_author_link = '';
+                                                       if ( $url ) {
+                                                               $comment_author_link = "<a href='$url' rel='external nofollow' class='url'>";
+                                                       }
+                                                       $comment_author_link .= $author;
+                                                       if ( $url ) {
+                                                               $comment_author_link .= '</a>';
+                                                       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                                printf( __( 'Contributed by %s', 'wporg' ), sprintf( '<cite class="fn">%s</cite>', $comment_author_link ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 printf( __( 'Contributed by %s', 'wporg' ), sprintf( '<cite class="fn">%s</cite>', $comment_author_link ) );
+                                               ?>
+
+                                               </span>
+                                               &mdash;
+                                               <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
+                                                       <time datetime="<?php comment_time( 'c' ); ?>">
+                                                       <?php 
+                                                               printf( _x( '%1$s ago', '%1$s = human-readable time difference', 'wporg' ),
+                                                                       human_time_diff( get_comment_time( 'U' ),
+                                                                       current_time( 'timestamp' ) )
+                                                               );
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                        </time>
+                                               </a>
+                                               <?php edit_comment_link( __( 'Edit', 'wporg' ), '<span class="edit-link">&mdash; ', '</span>' ); ?>
+                                       </div>
+                               </header>
+                               <!-- .comment-metadata -->
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        </span>
-                                                       &mdash;
-                                                       Added on <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
-                                                               <time datetime="<?php comment_time( 'c' ); ?>">
-                                                                       <?php printf( _x( '%1$s at %2$s', '1: date, 2: time', 'wporg' ), get_comment_date(), get_comment_time() ); ?>
-                                                               </time>
-                                                       </a>
-                                                       <?php edit_comment_link( __( 'Edit', 'wporg' ), '<span class="edit-link">&mdash; ', '</span>' ); ?>
-                                               </div>
-                                               <!-- .comment-metadata -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <div class="comment-content">
+                                       <?php comment_text(); ?>
+                               </div>
+                               <!-- .comment-content -->
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <?php if ( '0' == $comment->comment_approved ) : ?>
-                                                       <p class="comment-awaiting-moderation"> &mdash; <?php _e( 'Your note is awaiting moderation.', 'wporg' ); ?></p>
-                                               <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <?php if ( '0' == $comment->comment_approved ) : ?>
+                                       <footer class="comment-footer">
+                                               <p class="comment-awaiting-moderation"><?php _e( 'Your note is awaiting moderation.', 'wporg' ); ?></p>
</ins><span class="cx" style="display: block; padding: 0 10px">                                         </footer>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        <!-- .comment-meta -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 <!-- .comment-footer -->
+                               <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</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">                                         comment_reply_link( array_merge( $args, array(
</span><span class="cx" style="display: block; padding: 0 10px">                                                'add_below' => 'div-comment',
</span><span class="cx" style="display: block; padding: 0 10px">                                                'depth'     => $depth,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -153,11 +204,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                'before'    => '<div class="reply">',
</span><span class="cx" style="display: block; padding: 0 10px">                                                'after'     => '</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">-                                        ?>
-                               </article><!-- .comment-body -->
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         ?>
+                       </article><!-- .comment-body -->
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        endif;
</del><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px">        endif; // ends check for wporg_developer_user_note()
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss"></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/scss/main.scss</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/scss/main.scss        2016-06-15 08:30:23 UTC (rev 3378)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss  2016-06-15 22:09:02 UTC (rev 3379)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1133,7 +1133,6 @@
</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">        .source-code-container {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                border-right: 1px solid #dfdfdf;
</del><span class="cx" style="display: block; padding: 0 10px">                 overflow-x: auto;
</span><span class="cx" style="display: block; padding: 0 10px">                overflow-y: hidden;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1155,6 +1154,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // User contributed notes
</span><span class="cx" style="display: block; padding: 0 10px">        &.single-wp-parser-function, &.single-wp-parser-method, &.single-wp-parser-hook {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               .bad-note .comment-content {
+                       opacity: .6;
+               }
+
+               .bad-note .comment-content:hover {
+                       opacity: 1;
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 .comment-list,
</span><span class="cx" style="display: block; padding: 0 10px">                .comment-list ol {
</span><span class="cx" style="display: block; padding: 0 10px">                        list-style: none;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1163,42 +1171,37 @@
</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">                .comment-list li {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        padding: 2rem 1.5rem 1rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 margin-top: 2.5rem;
</ins><span class="cx" style="display: block; padding: 0 10px">                         background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px">                        overflow: auto;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        border: 1px solid #dfdfdf;
+                       border-radius: 2px;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        &:first-child {
-                               padding-top: 1rem;
-                       }
-
</del><span class="cx" style="display: block; padding: 0 10px">                         article {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                border-bottom: 1px solid #dfdfdf;
-                               padding-bottom: 1em;
</del><span class="cx" style="display: block; padding: 0 10px">                                 overflow: auto;
</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><span class="cx" style="display: block; padding: 0 10px">                .comment-list .avatar {
</span><span class="cx" style="display: block; padding: 0 10px">                        float: left;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        width: 2.5em;
-                       height: 2.5em;
-                       margin: -0.5em 1em 0.5em 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 margin: -2px 1em 0 0;
</ins><span class="cx" style="display: block; padding: 0 10px">                         padding: 0.125em;
</span><span class="cx" style="display: block; padding: 0 10px">                        border: 1px solid #eee;
</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">                .comment-author-attribution {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        font-weight: bold;
</del><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                .comment-meta {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        margin: 0 0 1.5em 0;
-                       font-size: 0.75em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 padding: .5em 1em;
+                       background-color: #f7f7f7;
+                       overflow: auto;
</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">                .comment-meta .comment-author cite,
</span><span class="cx" style="display: block; padding: 0 10px">                .comment-meta .comment-author cite a {
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 .comment-meta a {
</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">@@ -1210,8 +1213,24 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        margin-left: 3.75rem;
</span><span class="cx" style="display: block; padding: 0 10px">                        margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px">                        clear: both;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        padding: 2rem 1.5rem .5rem;
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                .comment-footer {
+                       margin: 0 1em;
+                       padding: 0 0 1em 0;
+                       position: relative;
+                       overflow: auto;
+
+                       a {
+                               float: right;
+                       }
+
+                       p {
+                               margin-bottom: 0;
+                       }
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 .comment-content ol {
</span><span class="cx" style="display: block; padding: 0 10px">                        list-style: decimal inside;
</span><span class="cx" style="display: block; padding: 0 10px">                        margin: 0 0 1.5em 0;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1268,7 +1287,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                .comment-author {
</span><span class="cx" style="display: block; padding: 0 10px">                        float: left;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        line-height: 1.8;
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               #add-user-note {
+                       font-size: 1.6rem;
+               }
</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">        &.single-post {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1414,10 +1438,9 @@
</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">        .user-note-voting {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                font-size: 1.5em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         font-size: 1.2em;
</ins><span class="cx" style="display: block; padding: 0 10px">                 clear: left;
</span><span class="cx" style="display: block; padding: 0 10px">                float: left;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                margin-top: -5px;
</del><span class="cx" style="display: block; padding: 0 10px">                 margin-right: 10px;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px">        .user-note-voting-up .dashicons, .user-note-voting-down .dashicons {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1429,6 +1452,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        .user-note-voting-up {
</span><span class="cx" style="display: block; padding: 0 10px">                margin-left: -9px;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       span.user-note-voting-up,
+       span.user-note-voting-down {
+               cursor: default;
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         .user-note-voting-count {
</span><span class="cx" style="display: block; padding: 0 10px">                margin-right: -2px;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss"></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/stylesheets/main.css</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/stylesheets/main.css  2016-06-15 08:30:23 UTC (rev 3378)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css    2016-06-15 22:09:02 UTC (rev 3379)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1316,7 +1316,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">   padding-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .source-code-container {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  border-right: 1px solid #dfdfdf;
</del><span class="cx" style="display: block; padding: 0 10px">   overflow-x: auto;
</span><span class="cx" style="display: block; padding: 0 10px">   overflow-y: hidden;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1331,6 +1330,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .comment-content a {
</span><span class="cx" style="display: block; padding: 0 10px">   word-wrap: break-word;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap.single-wp-parser-function .bad-note .comment-content, .devhub-wrap.single-wp-parser-method .bad-note .comment-content, .devhub-wrap.single-wp-parser-hook .bad-note .comment-content {
+  opacity: .6;
+}
+.devhub-wrap.single-wp-parser-function .bad-note .comment-content:hover, .devhub-wrap.single-wp-parser-method .bad-note .comment-content:hover, .devhub-wrap.single-wp-parser-hook .bad-note .comment-content:hover {
+  opacity: 1;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-list,
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-list ol, .devhub-wrap.single-wp-parser-method .comment-list,
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-method .comment-list ol, .devhub-wrap.single-wp-parser-hook .comment-list,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1340,39 +1345,45 @@
</span><span class="cx" style="display: block; padding: 0 10px">   padding: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-list li, .devhub-wrap.single-wp-parser-method .comment-list li, .devhub-wrap.single-wp-parser-hook .comment-list li {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  padding: 2rem 1.5rem 1rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  margin-top: 2.5rem;
</ins><span class="cx" style="display: block; padding: 0 10px">   background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px">   overflow: auto;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  border: 1px solid #dfdfdf;
+  border-radius: 2px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.devhub-wrap.single-wp-parser-function .comment-list li:first-child, .devhub-wrap.single-wp-parser-method .comment-list li:first-child, .devhub-wrap.single-wp-parser-hook .comment-list li:first-child {
-  padding-top: 1rem;
-}
</del><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-list li article, .devhub-wrap.single-wp-parser-method .comment-list li article, .devhub-wrap.single-wp-parser-hook .comment-list li article {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  border-bottom: 1px solid #dfdfdf;
-  padding-bottom: 1em;
</del><span class="cx" style="display: block; padding: 0 10px">   overflow: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-list .avatar, .devhub-wrap.single-wp-parser-method .comment-list .avatar, .devhub-wrap.single-wp-parser-hook .comment-list .avatar {
</span><span class="cx" style="display: block; padding: 0 10px">   float: left;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  width: 2.5em;
-  height: 2.5em;
-  margin: -0.5em 1em 0.5em 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  margin: -2px 1em 0 0;
</ins><span class="cx" style="display: block; padding: 0 10px">   padding: 0.125em;
</span><span class="cx" style="display: block; padding: 0 10px">   border: 1px solid #eee;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.devhub-wrap.single-wp-parser-function .comment-author-attribution, .devhub-wrap.single-wp-parser-method .comment-author-attribution, .devhub-wrap.single-wp-parser-hook .comment-author-attribution {
-  font-weight: bold;
-}
</del><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-meta, .devhub-wrap.single-wp-parser-method .comment-meta, .devhub-wrap.single-wp-parser-hook .comment-meta {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  margin: 0 0 1.5em 0;
-  font-size: 0.75em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  padding: .5em 1em;
+  background-color: #f7f7f7;
+  overflow: auto;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-content, .devhub-wrap.single-wp-parser-method .comment-content, .devhub-wrap.single-wp-parser-hook .comment-content {
</span><span class="cx" style="display: block; padding: 0 10px">   margin-left: 60px;
</span><span class="cx" style="display: block; padding: 0 10px">   margin-left: 3.75rem;
</span><span class="cx" style="display: block; padding: 0 10px">   margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px">   clear: both;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  padding: 2rem 1.5rem .5rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap.single-wp-parser-function .comment-footer, .devhub-wrap.single-wp-parser-method .comment-footer, .devhub-wrap.single-wp-parser-hook .comment-footer {
+  margin: 0 1em;
+  padding: 0 0 1em 0;
+  position: relative;
+  overflow: auto;
+}
+.devhub-wrap.single-wp-parser-function .comment-footer a, .devhub-wrap.single-wp-parser-method .comment-footer a, .devhub-wrap.single-wp-parser-hook .comment-footer a {
+  float: right;
+}
+.devhub-wrap.single-wp-parser-function .comment-footer p, .devhub-wrap.single-wp-parser-method .comment-footer p, .devhub-wrap.single-wp-parser-hook .comment-footer p {
+  margin-bottom: 0;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-content ol, .devhub-wrap.single-wp-parser-method .comment-content ol, .devhub-wrap.single-wp-parser-hook .comment-content ol {
</span><span class="cx" style="display: block; padding: 0 10px">   list-style: decimal inside;
</span><span class="cx" style="display: block; padding: 0 10px">   margin: 0 0 1.5em 0;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1406,7 +1417,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-wp-parser-function .comment-author, .devhub-wrap.single-wp-parser-method .comment-author, .devhub-wrap.single-wp-parser-hook .comment-author {
</span><span class="cx" style="display: block; padding: 0 10px">   float: left;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  line-height: 1.8;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap.single-wp-parser-function #add-user-note, .devhub-wrap.single-wp-parser-method #add-user-note, .devhub-wrap.single-wp-parser-hook #add-user-note {
+  font-size: 1.6rem;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-post .comment-list,
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap.single-post .comment-list ol {
</span><span class="cx" style="display: block; padding: 0 10px">   list-style: none;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1517,10 +1532,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">   color: #555 !important;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .user-note-voting {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  font-size: 1.5em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  font-size: 1.2em;
</ins><span class="cx" style="display: block; padding: 0 10px">   clear: left;
</span><span class="cx" style="display: block; padding: 0 10px">   float: left;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  margin-top: -5px;
</del><span class="cx" style="display: block; padding: 0 10px">   margin-right: 10px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .user-note-voting-up .dashicons, .devhub-wrap .user-note-voting-down .dashicons {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1532,6 +1546,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .user-note-voting-up {
</span><span class="cx" style="display: block; padding: 0 10px">   margin-left: -9px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap span.user-note-voting-up,
+.devhub-wrap span.user-note-voting-down {
+  cursor: default;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .user-note-voting-count {
</span><span class="cx" style="display: block; padding: 0 10px">   margin-right: -2px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>

</body>
</html>