Posts tagged with ‘map’

1

A Case of a Weak Escape

June 12, 2009

All of my plugins should now be WordPress 2.8 compatible. For the majority of them the only issues involved were based on the use of the WordPress SQL escaping function. Previously I was calling this statically:

wpdb::escape

A bad habit I probably picked up from somewhere back in the WordPress 1.5 days that has stuck around. In WordPress 2.8 this function no longer works statically. The simple fix is to change it into:

$wpdb->escape
Home | Main content | Software | Terms & Conditions | Sitemap | John Godley © 2010