Skip to content

Instantly share code, notes, and snippets.

@felipelavinz
Created November 17, 2011 18:20
Show Gist options
  • Save felipelavinz/1373985 to your computer and use it in GitHub Desktop.
Save felipelavinz/1373985 to your computer and use it in GitHub Desktop.
mappress_fix
<?php
// mappress-api.php ~ 277
// now:
$this->mapid = (int)$wpdb->get_var("SELECT LAST_INSERT_ID()");
// proposed:
$this->mapid = (int)$wpdb->insert_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment