Changeset 22306
- Timestamp:
- 10/25/2012 09:09:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r22256 r22306 570 570 $title = _draft_or_post_title( $draft->ID ); 571 571 $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>'; 572 if ( $the_content = preg_split( '# \s#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) )572 if ( $the_content = preg_split( '#[\r\n\t ]#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) ) 573 573 $item .= '<p>' . join( ' ', array_slice( $the_content, 0, 10 ) ) . ( 10 < count( $the_content ) ? '…' : '' ) . '</p>'; 574 574 $list[] = $item;
Note: See TracChangeset
for help on using the changeset viewer.