fixes for wiki create/delete page
Created by: git-marijus
This pullrequest addresses three issues:
-
Creating a new page failed because
post_activity_item()
did not return anything if$deliver = false
. I changed it to at least return the$post_id
which we need to proceed... -
Deleting a page failed because we tried to create a commit for the already deleted item. I stripped away the commit part (could probably commit before deletion but the page was deleted anyway there is no need for the commit).
-
The pagelist widget returned "(No Title)" items for deleted pages. I added
and item_hidden = 0
to the query.
Please review!