I keep coming across an annoying issue with WordPress’ “Press-This” feature and I know I am not the only one. I am not sure of what the root cause of this is – if it is a Safari issue, a wordpress issue or a server configuration issue. Regardless, if you have been having difficulty with wordpress throwing a 404 whenever you use the bookmarklet you can try this simple fix which worked for me.
To use this, create a new bookmark and paste the above code into the URL or Location field.What’s different, you ask? All I changed is the encoding of the url, originally e(l.href) to the following e(l.hostname+l.pathname). This eliminates the “http://” portion which is what was causing the problem for me.