[wp-trac] Re: [WordPress Trac] #2667: The JS delete confirm box doesn't show when you search in "manage pages"

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 21 11:08:17 GMT 2006


#2667: The JS delete confirm box doesn't show when you search in "manage pages"
----------------------------+-----------------------------------------------
       Id:  2667            |      Status:  reopened                
Component:  Administration  |    Modified:  Fri Apr 21 11:08:17 2006
 Severity:  normal          |   Milestone:  2.0.2                   
 Priority:  normal          |     Version:  2.0.2                   
    Owner:  anonymous       |    Reporter:  PlayR                   
----------------------------+-----------------------------------------------
Changes (by PlayR):

  * resolution:  worksforme =>
  * status:  closed => reopened

Comment:

 Okay..
 I dont get the confirm.

 Line 55:
 <td><?php if ( current_user_can('edit_pages') ) { echo "<a
 href='post.php?action=delete&amp;post=$post->ID' class='delete'
 onclick=\"return deleteSomething( 'page', " . $id . ", '" .
 sprintf(__("You are about to delete the &quot;%s&quot;
 page.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."),
 wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') .
 "</a>"; } ?></td>

 Here you can see the line. If I replace $id with $post->ID I get the
 confim box.
 (this is from a clean WP 2.0.2)

 I will reopen it one time. It is wierd that I am the only one that has the
 "bug".

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2667>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list