#16650 closed defect (bug) (invalid)
wp-includes/pluggable.php is not included after updating to 3.1
Reported by: | TinkerWorkshop | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 3.1 |
Component: | Validation | Keywords: | |
Focuses: | Cc: |
Description
Developing a plugin using wp_verify_nonce.
if(!wp_verify_nonce('VALUE','KEY')) die('UHOH!');
Yesterday (February 23rd 2011) everything worked fine. Then I have updated to 3.1 and have not tested my code until today.
Today (February 24th 2011), I an getting:
Fatal error: Call to undefined function wp_verify_nonce()
I have tried putting a "die('OK');" line at the top of pluggable.php, where wp_verify_once lives and it is not executing.
A simple workaround of
require_once(ABSPATH .'wp-includes/pluggable.php');
got everything to work again.
I am using pure vanilla setup of 3.0, updated to 3.1.
No other plugins, no changes, no functions.php custom code. All pure and clear dev station.
My setup is latest WAMP with PHP 5 (also latest).
Change History (3)
#2
in reply to:
↑ 1
@
14 years ago
- Resolution set to invalid
- Severity changed from critical to trivial
- Status changed from new to closed
Replying to westi:
In order to investigate this you need to provide steps to reproduce the issue.
Sounds like you are trying to call the function too early
You are indeed correct, sir. Moving the function to run under "admin_init" fixed the issue.
The real issue was shared code, though.
Still this same setup worked for 3.0.5
Please disregard. Sorry for the trouble.
In order to investigate this you need to provide steps to reproduce the issue.
Sounds like you are trying to call the function too early