global $post when saving...; this code needs a cleanup for consistence
This commit is contained in:
parent
aeadfd3a74
commit
bd87798d9b
@ -622,6 +622,8 @@
|
||||
}
|
||||
|
||||
function entry_save($entry_cont, $id=null, $update_index = true) {
|
||||
|
||||
global $post;
|
||||
|
||||
$obj =& entry_init();
|
||||
|
||||
@ -629,6 +631,8 @@
|
||||
$entry_cont['date']=date_time();
|
||||
}
|
||||
|
||||
$post = $entry_cont;
|
||||
|
||||
$entry = array_change_key_case($entry_cont, CASE_UPPER);
|
||||
|
||||
if (!$id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user