Support » Plugins » How do I REMOVE AJAX

  • I am trying to get rid of all the ajax calls, there should be copy of the older versions of the files when ajax were not implemented.

    I don’t hate ajax, I am trying to put a blog inside a portlet and the portlets’ security prevents me from making ajax calls.

    Lets not get into the why, but focus on the HOW?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    AJAX is pretty well integrated at this point. Your only really viable option is to downgrade.

    OK, I guess then I need to find out how can I just REMOVE AJAX FROM DELETEING COMMENTS, which is the only action that needs to be done via portlets.

    The rest, I can do by directly logging on to the admin bypassing my security.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    I’m not sure that you can. The nonces were introduced to prevent exactly that sort of thing (somebody creating external links and tricking users into clicking them, thus causing those actions to occur).

    A delete link looks like this:

    Anyway, the whole point of nonces is to make sure that all WordPress actions like this happen from the wp-admin screens. Now, if you knew the nonce, you could pull that link and thus do a delete (assuming you also sent the proper cookies to do the user authentication). But the nonce changes every 12 hours for every link in the wp-admin screen, and is only valid for 24 hours after that.

    More info here:

    Note that all the AJAX is really irrelevant. If you get the right URLs with the right parameters, the relevant actions happen. The AJAX just makes it pretty. But with nonces, you’d have a lot of work cut out for you to duplicate that logic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I REMOVE AJAX’ is closed to new replies.