plugin: orphaned hooks weren't deleted.

update: fixing update job for tags.
This commit is contained in:
Michael Vogel 2013-02-17 18:05:30 +01:00
parent 1a1984c78d
commit 7e154d5e4c
3 changed files with 12 additions and 3 deletions

View file

@ -175,7 +175,7 @@ function call_hooks($name, &$data = null) {
}
else {
// remove orphan hooks
q("delete from hook where hook = '%s' and file = '$s' and function = '%s' limit 1",
q("delete from hook where hook = '%s' and file = '%s' and function = '%s' limit 1",
dbesc($name),
dbesc($hook[0]),
dbesc($hook[1])