Changeset 5432 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php
- Timestamp:
- 04/29/2017 02:52:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php
r3786 r5432 299 299 $nonce = wp_create_nonce( 'user-note-vote-' . $comment_id ); 300 300 $disabled_str = __( 'Voting for this note is disabled', 'wporg' ); 301 $cancel_str = __( 'Click to cancel your vote', 'wporg' ); 301 $cancel_str = __( 'Click to cancel your vote', 'wporg' ); 302 302 $log_in_str = __( 'You must log in to vote on the helpfulness of this note', 'wporg' ); 303 303 $log_in_url = add_query_arg( 'redirect_to', urlencode( $comment_link ), 'https://login.wordpress.org' ); … … 312 312 $user_upvoted = self::has_user_upvoted_comment( $comment_id ); 313 313 if ( $can_vote ) { 314 $cancel = $user_upvoted ? '. ' . $cancel_str . '.' : ''; 314 $cancel = $user_upvoted ? '. ' . $cancel_str . '.' : ''; 315 315 $title = $user_upvoted ? 316 316 __( 'You have voted to indicate this note was helpful', 'wporg' ) . $cancel : … … 390 390 * 'difference' : The difference between upvotes and downvotes (upvotes - downvotes) 391 391 * 'like_percentage' : The percentage of total votes that upvoted 392 * 392 * 393 393 * @access public 394 394 *
Note: See TracChangeset
for help on using the changeset viewer.