Make WordPress Core

Changeset 10148


Ignore:
Timestamp:
12/09/2008 05:44:04 PM (18 years ago)
Author:
ryan
Message:

Fixed undefined var notice when user can't edit the post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10140 r10148  
    465465        $actions = array();
    466466
     467        $actions_string = '';
    467468        if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    468469                $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
     
    477478
    478479                $i = 0;
    479                 $actions_string = '';
    480480                foreach ( $actions as $action => $link ) {
    481481                        ++$i;
Note: See TracChangeset for help on using the changeset viewer.