WordPress.org

Ready to get started?Download WordPress

Forums

No confirmation is asked when removing posts/pages/categories (6 posts)

  1. KoenVanmeerbeek
    Member
    Posted 8 years ago #

    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

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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)

  3. KoenVanmeerbeek
    Member
    Posted 8 years ago #

    Javascript is enabled...

  4. KoenVanmeerbeek
    Member
    Posted 8 years ago #

    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

  5. KoenVanmeerbeek
    Member
    Posted 8 years ago #

    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

  6. KoenVanmeerbeek
    Member
    Posted 8 years ago #

    Hmmm... Forget about the javascript: thing... It doesn't make a difference at all...

    Koen

Topic Closed

This topic has been closed to new replies.

About this Topic