Ticket #21625: 21625.2.patch
| File 21625.2.patch, 986 bytes (added by , 13 years ago) |
|---|
-
wp-admin/includes/dashboard.php
566 566 $url = get_edit_post_link( $draft->ID ); 567 567 $title = _draft_or_post_title( $draft->ID ); 568 568 $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit “%s”' ), esc_attr( $title ) ) . "'>" . esc_html($title) . "</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>'; 569 if ( $the_content = preg_split( '# \s#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) )569 if ( $the_content = preg_split( '#[\r\n\t ]#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) ) 570 570 $item .= '<p>' . join( ' ', array_slice( $the_content, 0, 10 ) ) . ( 10 < count( $the_content ) ? '…' : '' ) . '</p>'; 571 571 $list[] = $item; 572 572 }