Ticket #8762: 8762.diff
| File 8762.diff, 1.4 KB (added by technosailor, 4 years ago) |
|---|
-
wp-includes/comment-template.php
1154 1154 switch ( $args['style'] ) { 1155 1155 case 'div': 1156 1156 break; 1157 case 'dl': 1158 echo "<dl class='children'>\n"; 1159 break; 1157 1160 case 'ol': 1158 1161 echo "<ol class='children'>\n"; 1159 1162 break; … … 1178 1181 switch ( $args['style'] ) { 1179 1182 case 'div': 1180 1183 break; 1184 case 'dl': 1185 echo "</dl>\n"; 1186 break; 1181 1187 case 'ol': 1182 1188 echo "</ol>\n"; 1183 1189 break; … … 1212 1218 if ( 'div' == $args['style'] ) { 1213 1219 $tag = 'div'; 1214 1220 $add_below = 'comment'; 1221 } else if ( 'dl' == $args['style'] ) { 1222 $tag = 'dt'; 1223 $tag2 = 'dd'; 1215 1224 } else { 1216 1225 $tag = 'li'; 1217 1226 $add_below = 'div-comment'; … … 1231 1240 <?php endif; ?> 1232 1241 1233 1242 <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> 1234 1243 <?php if ( $tag2 ) : ?> 1244 </dt><dd> 1245 <?php endif; ?> 1235 1246 <?php comment_text() ?> 1236 1247 1237 1248 <div class="reply"> … … 1259 1270 } 1260 1271 if ( 'div' == $args['style'] ) 1261 1272 echo "</div>\n"; 1273 else if ( 'dl' == $args['style'] ) 1274 echo "</dd>\n"; 1262 1275 else 1263 1276 echo "</li>\n"; 1264 1277 }