Changeset 5432 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 04/29/2017 02:52:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r4581 r5432 76 76 /** 77 77 * Get contibuted notes ordered by vote 78 * 78 * 79 79 * By default only top level comments are returned. 80 * If child notes are included use wp_list_comments() or a custom walker for display. 80 * If child notes are included use wp_list_comments() or a custom walker for display. 81 81 * unapproved notes for the current user are included. 82 82 * … … 106 106 } 107 107 108 $args = wp_parse_args( $args, $defaults ); 108 $args = wp_parse_args( $args, $defaults ); 109 109 110 110 $comments = get_comments( $args ); 111 111 112 112 if ( ! $comments ) { 113 113 return; … … 145 145 <li id="comment-<?php comment_ID(); ?>" <?php comment_class( implode( ' ', $comment_class ) ); ?>> 146 146 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 147 <a href="#comment-content-<?php echo $comment->comment_ID; ?>" class="screen-reader-text"><?php _e( 'Skip to note content', 'wporg' ); ?></a> 147 <a href="#comment-content-<?php echo $comment->comment_ID; ?>" class="screen-reader-text"><?php _e( 'Skip to note content', 'wporg' ); ?></a> 148 148 <header class="comment-meta"> 149 149 <?php DevHub_User_Contributed_Notes_Voting::show_voting(); ?> … … 181 181 <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> 182 182 <time datetime="<?php comment_time( 'c' ); ?>"> 183 <?php 183 <?php 184 184 printf( _x( '%1$s ago', '%1$s = human-readable time difference', 'wporg' ), 185 185 human_time_diff( get_comment_time( 'U' ), … … 1294 1294 * The (long) description is stored in the 'post_content' get_post_field. 1295 1295 * 1296 * @param null|WP_Post Optiona . The post.1296 * @param null|WP_Post Optional. The post. 1297 1297 * @return string 1298 1298 */ … … 1450 1450 1451 1451 /** 1452 * Displays a post type filter dropdown on taxonomy pages. 1453 * 1452 * Displays a post type filter dropdown on taxonomy pages. 1453 * 1454 1454 * @return string HTML filter form. 1455 1455 */ … … 1483 1483 $form .= "<input type='hidden' name='" . esc_attr( $taxonomy ) . "' value='" . esc_attr( $term ) . "'>"; 1484 1484 } 1485 1485 1486 1486 $form .= "<label for='archive-filter'>"; 1487 1487 $form .= __( 'Filter by type:', 'wporg' ) . ' ';
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)