Plugin Directory

Opened 6 years ago

Closed 6 years ago

#1566 closed enhancement (fixed)

Move kill.php to kill.js

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


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 6 years ago.

Download all attachments as: .zip

Change History (2)

@dimadin6 years ago

comment:1 @dimadin6 years ago

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

Fixed in [587470].

Note: See TracTickets for help on using tickets.