[wp-trac] Re: [WordPress Trac] #8274: "Right Now" dashboard module does not check if there are pages before using the number

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 19 02:05:05 GMT 2008


#8274: "Right Now" dashboard module does not check if there are pages before using
the number
--------------------------+-------------------------------------------------
 Reporter:  nightgunner5  |        Owner:         
     Type:  defect        |       Status:  closed 
 Priority:  low           |    Milestone:         
Component:  UI            |      Version:  2.7    
 Severity:  trivial       |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by jacobsantos):

  * keywords:  has-patch =>
  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.7 =>

Comment:

 wp_count_posts() will already return an integer (but it should be cast to
 an integer).

 Patch should fix wp_count_posts() instead, if there was a problem.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8274#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list