Magic Quotes in WordPress, and How To Get Rid of Them

November 13th, 2012

One thing that many developers are not aware of is that WordPress automatically adds magic quotes to request variables. This means that all quotes, backslashes and null-byte characters will be escaped with a backslash.

Even if you disable magic quotes in php.ini, WordPress will apply them to $_GET, $_POST, $_COOKIE […] Continue Reading…

8 Great Tools For Working With JSON

November 6th, 2012

JSONLint – Validate Your JSON

JSONLint is an online JSON validator and formatter. It will check your JSON for syntax errors and format it with proper indentation and line breaks to make it more human-readable (this can be very handy when analysing complex JSON documents). You can either paste your […] Continue Reading…

Plugin Update Checker 1.2 Released

October 30th, 2012

After a long delay, a new version of my PluginUpdateChecker library is finally ready for release. Read on to find out what’s new, or go straight to the download page.

For those of you not familiar with this library, here’s a short summary:

You can use it to add automatic update support to […] Continue Reading…

Tell Your Users Where Your Plugin Puts Its Menu Pages

October 23rd, 2012

There’s one thing that always annoys me when installing new plugins: No matter how popular or obscure the plugin, the first few seconds (or minutes) are usually wasted on trying to figure out where it put its settings page.

We’ve all been there. Trawling the admin menu, looking for that […] Continue Reading…

How To Add Separators To The Admin Menu

October 16th, 2012

As you may already know, WordPress stores top-level menus in a global $menu array. The array indexes correspond to menu positions, and each array item contains the properties of a single menu – the menu title, required capability, URL, and so on. Separator items are structured just like normal […] Continue Reading…