Re: Broken delete buttons in 1.1.3
Have you tried scattering alert statements to see where in the ajax process things are getting hung up?
I can’t find a function in ajax.js with “delete-activity”, the class on the delete button, so I don’t no where to put that test. Is that function supposed to be there?
In the 1.0 version of my site I had no classes at all on the delete link (custom theme). Deleting an item does not have fancy Ajax; the page reloads with “Wire message successfully deleted” in <div id=”message”>.
At least that works! I’d like to just recreate that for my 1.1.3 version.
So I tried removing the following:
class="item-button delete-activity confirm"
from the delete button link in bp-activity-templatetags.php.
That kills the ugly “Are you sure?” popup, but it then goes to “Page Not Found’ and when you go back to the page the item is still there. So it also kills the delete process…
Next trying to spot the differences with the process in version 1.0…
How do those wpnonce links work? What do they do? There’s nothing about them in the codex.