Opened 6 years ago
Closed 6 years ago
#3883 closed defect (bug) (fixed)
PHP Fatal error: Call to undefined function is_wp_error() in /wp-includes/functions.php on line 1299 w/ patch
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 2.2 |
| Component: | General | Version: | 2.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Happens if you access a fresh wp installation.
Fix:
-
wp-includes/functions.php
1 1 <?php 2 2 3 3 require_once(dirname(__FILE__).'/compat.php'); 4 require_once(dirname(__FILE__).'/classes.php'); 4 5 5 6 function mysql2date($dateformatstring, $mysqlstring, $translate = true) { 6 7 global $wp_locale;
Change History (5)
comment:2
foolswisdom — 6 years ago
- Milestone set to 2.2
Thanks for the patch!
What version are you running including svn revision? What server environment?
Would you attach patches instead of posting inline (include the project's path structure in your patch)?
Note: See
TracTickets for help on using
tickets.

My first fix breaks other stuff.
This works:
wp-blog-header.php