provide separate plugin settings page, update demo plugin, fix hook_register
This commit is contained in:
parent
6891d44e0b
commit
d045fd04d4
8 changed files with 40 additions and 8 deletions
2
boot.php
2
boot.php
|
@ -2047,7 +2047,7 @@ function profile_sidebar($profile) {
|
|||
if(! function_exists('register_hook')) {
|
||||
function register_hook($hook,$file,$function) {
|
||||
|
||||
$r = q("SELECT FROM `hook` WHERE `hook` = '%s' AND `file` = '%s' AND `function` = '%s' LIMIT 1",
|
||||
$r = q("SELECT * FROM `hook` WHERE `hook` = '%s' AND `file` = '%s' AND `function` = '%s' LIMIT 1",
|
||||
dbesc($hook),
|
||||
dbesc($file),
|
||||
dbesc($function)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue