Ticket #3663: gettext-dislikes-formats.diff

File gettext-dislikes-formats.diff, 872 bytes (added by nbachiyski, 5 years ago)
  • wp-admin/index.php

     
    9999<h3><?php _e('Blog Stats'); ?></h3> 
    100100<?php 
    101101$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); 
    102 if (0 < $numposts) $numposts = number_format($numposts); 
    103102 
    104103$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); 
    105 if (0 < $numcomms) $numcomms = number_format($numcomms); 
    106104 
    107105$numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories"); 
    108 if (0 < $numcats) $numcats = number_format($numcats); 
    109106?> 
    110107<p><?php 
    111108$post_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Posts">post</a>', '%1$s <a href="%2$s" title="Posts">posts</a>', $numposts), $numposts, 'edit.php');