WordPress.org

Plugin Directory

#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@…

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 20 months ago.

Download all attachments as: .zip

Change History (2)

comment:1 dimadin20 months ago

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

Fixed in [587470].

Note: See TracTickets for help on using tickets.