[wp-trac] [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
Tue Nov 18 22:14:44 GMT 2008
#8274: "Right Now" dashboard module does not check if there are pages before using
the number
----------------------------+-----------------------------------------------
Reporter: nightgunner5 | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: trivial | Keywords: has-patch
----------------------------+-----------------------------------------------
The "Right Now" dashboard module does not check if there are pages before
using the number:
{{{
// Pages
$num = number_format_i18n( $num_pages->publish );
if ( current_user_can( 'edit_pages' ) )
$num = "<a href='edit-pages.php'>$num</a>";
echo '<td class="first b b_pages">'.$num.'</td>';
echo '<td class="t pages">' . __ngettext( 'Page', 'Pages',
$num_pages->publish ) . '</td>';
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8274>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list