Changeset 3320720
- Timestamp:
- 07/01/2025 03:07:59 PM (6 months ago)
- Location:
- wp-grade-comments
- Files:
-
- 8 edited
- 1 copied
-
tags/1.6.0 (copied) (copied from wp-grade-comments/trunk)
-
tags/1.6.0/assets/js/wp-grade-comments.js (modified) (1 diff)
-
tags/1.6.0/languages/wp-grade-comments.pot (modified) (2 diffs)
-
tags/1.6.0/readme.txt (modified) (2 diffs)
-
tags/1.6.0/wp-grade-comments.php (modified) (3 diffs)
-
trunk/assets/js/wp-grade-comments.js (modified) (1 diff)
-
trunk/languages/wp-grade-comments.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-grade-comments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-grade-comments/tags/1.6.0/assets/js/wp-grade-comments.js
r2944747 r3320720 1 1 (function($) { 2 var $add_a_grade = $( '#olgc-add-a-grade' ), 3 $grade_entry = $( '.olgc-grade-entry' ), 4 $grade_input = $( '#olgc-grade' ), 5 $private_checkbox = $( '#olgc-private-comment' ), 6 $private_fallback = $( '#olgc-private-comment-fallback' ), 7 $comment_content_input = $( '#comment' ), 2 var $add_a_grade, 3 $grade_entry, 4 $grade_input, 5 $private_checkbox, 6 $private_fallback, 7 $comment_content_input, 8 $reply_to_com; 9 10 $( document ).ready( function() { 11 $add_a_grade = $( '#olgc-add-a-grade' ); 12 $grade_entry = $( '.olgc-grade-entry' ); 13 $grade_input = $( '#olgc-grade' ); 14 $private_checkbox = $( '#olgc-private-comment' ); 15 $private_fallback = $( '#olgc-private-comment-fallback' ); 16 $comment_content_input = $( '#comment' ); 8 17 $reply_to_com = $( '.comment-reply-link' ); 9 18 10 $( document ).ready( function() {11 19 toggle_grade_visibility(); 12 20 -
wp-grade-comments/tags/1.6.0/languages/wp-grade-comments.pot
r2944747 r3320720 1 # Copyright (C) 202 3Boone Gorges1 # Copyright (C) 2025 Boone Gorges 2 2 # This file is distributed under the same license as the WP Grade Comments plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Grade Comments 1. 5.0\n"5 "Project-Id-Version: WP Grade Comments 1.6.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-grade-comments\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-07-28T11:58:39-05:00\n"12 "POT-Creation-Date: 2025-07-01T10:06:39-05:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 7.1\n"14 "X-Generator: WP-CLI 2.9.0\n" 15 15 "X-Domain: wp-grade-comments\n" 16 16 -
wp-grade-comments/tags/1.6.0/readme.txt
r2944747 r3320720 3 3 Tags: comments, grade, course, privacy 4 4 Requires at least: 4.4 5 Tested up to: 6. 26 Stable tag: 1. 5.05 Tested up to: 6.8 6 Stable tag: 1.6.0 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 34 = 1.6.0 = 35 * Improved theme support, by modifying the way that the plugin's fields are appended to the comment form. 36 * Ensure that the client-side initialization of form elements takes place late enough in the load process for compatibility with block themes. 33 37 34 38 = 1.5.0 = -
wp-grade-comments/tags/1.6.0/wp-grade-comments.php
r2944747 r3320720 2 2 /* 3 3 Plugin Name: WP Grade Comments 4 Version: 1. 5.04 Version: 1.6.0 5 5 Description: Grades and private comments for WordPress blog posts. Built for the City Tech OpenLab. 6 6 Author: Boone Gorges … … 82 82 * @since 1.0.0 83 83 * 84 * @param array $args Arguments from `comment_form()`.85 * @return array86 */ 87 function olgc_leave_comment_after_comment_fields( $ args ) {84 * @param string 85 * @return string 86 */ 87 function olgc_leave_comment_after_comment_fields( $comment_fields ) { 88 88 if ( ! olgc_is_instructor() ) { 89 return $ args;90 } 91 92 $ args['comment_notes_after'].= '89 return $comment_fields; 90 } 91 92 $comment_fields .= ' 93 93 <div class="olgc-grade-entry"> 94 94 <label for="olgc-grade">' . __( 'Grade:', 'wp-grade-comments' ) . '</label> <input type="text" maxlength="5" name="olgc-grade" id="olgc-grade" /> … … 99 99 </div>' . wp_nonce_field( 'olgc-grade-entry-' . get_the_ID(), '_olgc_nonce', false, false ); 100 100 101 return $ args;102 } 103 add_filter( 'comment_form_ defaults', 'olgc_leave_comment_after_comment_fields', 1000 );101 return $comment_fields; 102 } 103 add_filter( 'comment_form_field_comment', 'olgc_leave_comment_after_comment_fields', 1000 ); 104 104 105 105 /** -
wp-grade-comments/trunk/assets/js/wp-grade-comments.js
r2944747 r3320720 1 1 (function($) { 2 var $add_a_grade = $( '#olgc-add-a-grade' ), 3 $grade_entry = $( '.olgc-grade-entry' ), 4 $grade_input = $( '#olgc-grade' ), 5 $private_checkbox = $( '#olgc-private-comment' ), 6 $private_fallback = $( '#olgc-private-comment-fallback' ), 7 $comment_content_input = $( '#comment' ), 2 var $add_a_grade, 3 $grade_entry, 4 $grade_input, 5 $private_checkbox, 6 $private_fallback, 7 $comment_content_input, 8 $reply_to_com; 9 10 $( document ).ready( function() { 11 $add_a_grade = $( '#olgc-add-a-grade' ); 12 $grade_entry = $( '.olgc-grade-entry' ); 13 $grade_input = $( '#olgc-grade' ); 14 $private_checkbox = $( '#olgc-private-comment' ); 15 $private_fallback = $( '#olgc-private-comment-fallback' ); 16 $comment_content_input = $( '#comment' ); 8 17 $reply_to_com = $( '.comment-reply-link' ); 9 18 10 $( document ).ready( function() {11 19 toggle_grade_visibility(); 12 20 -
wp-grade-comments/trunk/languages/wp-grade-comments.pot
r2944747 r3320720 1 # Copyright (C) 202 3Boone Gorges1 # Copyright (C) 2025 Boone Gorges 2 2 # This file is distributed under the same license as the WP Grade Comments plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Grade Comments 1. 5.0\n"5 "Project-Id-Version: WP Grade Comments 1.6.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-grade-comments\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-07-28T11:58:39-05:00\n"12 "POT-Creation-Date: 2025-07-01T10:06:39-05:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 7.1\n"14 "X-Generator: WP-CLI 2.9.0\n" 15 15 "X-Domain: wp-grade-comments\n" 16 16 -
wp-grade-comments/trunk/readme.txt
r2944747 r3320720 3 3 Tags: comments, grade, course, privacy 4 4 Requires at least: 4.4 5 Tested up to: 6. 26 Stable tag: 1. 5.05 Tested up to: 6.8 6 Stable tag: 1.6.0 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 34 = 1.6.0 = 35 * Improved theme support, by modifying the way that the plugin's fields are appended to the comment form. 36 * Ensure that the client-side initialization of form elements takes place late enough in the load process for compatibility with block themes. 33 37 34 38 = 1.5.0 = -
wp-grade-comments/trunk/wp-grade-comments.php
r2944747 r3320720 2 2 /* 3 3 Plugin Name: WP Grade Comments 4 Version: 1. 5.04 Version: 1.6.0 5 5 Description: Grades and private comments for WordPress blog posts. Built for the City Tech OpenLab. 6 6 Author: Boone Gorges … … 82 82 * @since 1.0.0 83 83 * 84 * @param array $args Arguments from `comment_form()`.85 * @return array86 */ 87 function olgc_leave_comment_after_comment_fields( $ args ) {84 * @param string 85 * @return string 86 */ 87 function olgc_leave_comment_after_comment_fields( $comment_fields ) { 88 88 if ( ! olgc_is_instructor() ) { 89 return $ args;90 } 91 92 $ args['comment_notes_after'].= '89 return $comment_fields; 90 } 91 92 $comment_fields .= ' 93 93 <div class="olgc-grade-entry"> 94 94 <label for="olgc-grade">' . __( 'Grade:', 'wp-grade-comments' ) . '</label> <input type="text" maxlength="5" name="olgc-grade" id="olgc-grade" /> … … 99 99 </div>' . wp_nonce_field( 'olgc-grade-entry-' . get_the_ID(), '_olgc_nonce', false, false ); 100 100 101 return $ args;102 } 103 add_filter( 'comment_form_ defaults', 'olgc_leave_comment_after_comment_fields', 1000 );101 return $comment_fields; 102 } 103 add_filter( 'comment_form_field_comment', 'olgc_leave_comment_after_comment_fields', 1000 ); 104 104 105 105 /**
Note: See TracChangeset
for help on using the changeset viewer.