Opened 9 months ago

Closed 9 months ago

#1566 closed enhancement (fixed)

Move kill.php to kill.js

Reported by: dimadin Owned by: ryanhellyer
Priority: normal Component: not-listed
Severity: normal Keywords: has-patch
Cc: tracs@…

Description

kill.php is uncachable, it loads on every page loads, and it has potential issues when site is using some automatic concatenation.

This patch moves it to standalone Javascript file which do cookie creation previously done via PHP. Key is passed through wp_localize_script(). The only thing it lacks is preg_match for key validation.

To do: improve Javascript code, try minification to save a few bytes.

Attachments (1)

spam_destroyer_js.patch (1.8 KB) - added by dimadin 9 months ago.

Download all attachments as: .zip

Change History (2)

Changed 9 months ago by dimadin

comment:1 Changed 9 months ago by dimadin

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [587470].

Note: See TracTickets for help on using tickets.