Changeset 45583 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r45536 r45583 596 596 echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . esc_html( $title ) . '</a>'; 597 597 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>'; 598 if ( $the_content = wp_trim_words( $draft->post_content, $draft_length ) ) { 598 $the_content = wp_trim_words( $draft->post_content, $draft_length ); 599 if ( $the_content ) { 599 600 echo '<p>' . $the_content . '</p>'; 600 601 } … … 1013 1014 $locale = get_user_locale(); 1014 1015 $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale ); 1015 if ( false !== ( $output = get_transient( $cache_key ) ) ) { 1016 $output = get_transient( $cache_key ); 1017 if ( false !== $output ) { 1016 1018 echo $output; 1017 1019 return true; … … 1074 1076 */ 1075 1077 function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) { 1076 if ( ! $widget_options = get_option( 'dashboard_widget_options' ) ) { 1078 $widget_options = get_option( 'dashboard_widget_options' ); 1079 if ( ! $widget_options ) { 1077 1080 $widget_options = array(); 1078 1081 } … … 1567 1570 $key = md5( $_SERVER['HTTP_USER_AGENT'] ); 1568 1571 1569 if ( false === ( $response = get_site_transient( 'browser_' . $key ) ) ) { 1572 $response = get_site_transient( 'browser_' . $key ); 1573 if ( false === $response ) { 1570 1574 // include an unmodified $wp_version 1571 1575 include( ABSPATH . WPINC . '/version.php' );
Note: See TracChangeset
for help on using the changeset viewer.