WordPress.org

Make WordPress Core

Ticket #6208: 6208.r7275.diff

File 6208.r7275.diff, 481 bytes (added by hansengel, 6 years ago)
  • wp-admin/index.php

     
    8282} 
    8383 
    8484$post_type_text = implode(', ', $post_type_texts); 
     85$post_type_text = ( empty($post_type_text) ) ? __('0 posts') : $post_type_text; 
    8586 
    8687// There is always a category 
    8788$sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s.' ), $post_type_text, $cats_text, $tags_text );