Support » Fixing WordPress » No confirmation is asked when removing posts/pages/categories

  • Hallo,

    I use WordPress as a CMS for a NGO site (http://www.paxchristi.be/website/wordpress/). Works fine. Except that when I click “remove” on a post/page/category there’s no popup asking to confirm. It just deletes it…

    Something must be wrong but I can’t figure out what…

    I found this code in admin-functions.php (line 160):

    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo “” . __(‘Delete’) . ““; } ?></td>

    I think this should provide the popup?

    I’m not a programmer so I do not understand it very well…

    Anyone has suggestions for my problem?

    Regards,

    Koen

Viewing 5 replies - 1 through 5 (of 5 total)
  • I always see a little popup in the middle of the screen asking if I am sure. Do you have javascript turned off maybe ? (If this would affect it)

    Javascript is enabled…

    I found out that the confirmation popup does work when it is behind a button (example: when removing a draft post). But not when behind a link as in removing pages/categories/posts.

    Koen

    I tried adding ‘Javascript:’ on line 160 in file admin-functions.php but that didn’t solve the problem for the removal of pages (I suppose line 160 is for the removal of pages?). Although this seems to make a difference when I tried it in a test-html page…

    onclick=”JavaScript:return confirm(‘Please confirm’)”

    Koen

    Hmmm… Forget about the javascript: thing… It doesn’t make a difference at all…

    Koen

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No confirmation is asked when removing posts/pages/categories’ is closed to new replies.