Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hooks] shortcode not listing anything for an oik-theme #13

Closed
bobbingwide opened this issue Feb 20, 2016 · 2 comments
Closed

[hooks] shortcode not listing anything for an oik-theme #13

bobbingwide opened this issue Feb 20, 2016 · 2 comments
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

When a hook is being created by oiksc_create_oik_hook() the post_meta field called '_oik_api_plugin' should be populated with the post_id of the plugin/theme to which the hook is related.

function oiksc_get_plugin() obtains this value from the global $plugin_post.

This field does not appear to be set for themes.

@bobbingwide
Copy link
Owner Author

This problem came about due to a change I made while running performance tests.
I needed to disable cache invalidation from being triggered, so I disabled the logic to create oik_hooks when the user was not logged in. This was to prevent cache invalidation.

The code needs to test if we're doing AJAX. If so, then the processing can continue.

@bobbingwide
Copy link
Owner Author

The code also needs to test if it's being run from the command line. ( PHP_SAPI == "CLI" )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant