Project:Wordpress Import
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:lavamind
Status:closed (fixed)

Issue Summary

db_next_id() is deprecated. Use db_last_insert_id() instead.

Comments

#1

Title:Use db_last_insert_id() instead of db_next_id» Remove custom node_save function

Remove custom node_save function and use sql query to change the fields that we can't set when creating the node.

#2

Custom node_save function just looks like a stripped down version of 5's. What extra fields were being set in it?

#3

Hum, I may have confused with something else. If I remember, I created the wordpress_import_node_save because I wanted to prevent the watchdog table from being filled by nodes creation notices. Maybe it wasn't necessary and we could use the original function.

#4

Assigned to:Anonymous» yrocq

#5

Version:6.x-1.x-dev» 6.x-2.x-dev
Assigned to:yrocq» lavamind
Status:active» fixed

Fixed in 6.x-2.x-dev, we use Drupal's built-in node_save() function now.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here