Opened 17 years ago
Closed 17 years ago
#8274 closed defect (bug) (invalid)
"Right Now" dashboard module does not check if there are pages before using the number
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | low | |
| Severity: | trivial | Version: | 2.7 |
| Component: | UI | Keywords: | |
| Focuses: | Cc: |
Description
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>';
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch for this ticket