WordPress.org

Make WordPress Core

Ticket #24288: 24288.diff

File 24288.diff, 872 bytes (added by aaroncampbell, 11 months ago)
  • wp-includes/post-formats.php

     
    672672                foreach ( $stanza as $row ) { 
    673673                        $time = ''; 
    674674                        if ( ! empty( $row['time'] ) ) 
    675                                 $time = sprintf( '<time class="chat-timestamp">%s</time>', esc_html( $row['time'] ) ); 
     675                                $time = sprintf( '<a href="#%1$s"><time class="chat-timestamp" id="%1$s">%2$s</time>', esc_attr( 'time_' . sanitize_title_with_dashes( $row['time'] ) ), esc_html( $row['time'] ) ); 
    676676 
    677677                        $output .= sprintf( 
    678678                                '<dt class="chat-author chat-author-%1$s vcard">%2$s <cite class="fn">%3$s</cite>: </dt> 
     
    10121012                $data['post_title'] = _post_formats_generate_title( $data['post_content'], $post_format ); 
    10131013 
    10141014        return $data; 
    1015 } 
    1016  No newline at end of file 
     1015}