Opened 12 years ago
Closed 12 years ago
#24374 closed defect (bug) (fixed)
Change to wp_unslash breaks ms-files if_none_match handling
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | critical | Version: | 3.6 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
In [23591], ms-files.php was updated to use wp_unslash instead of stripslashes. Since ms-files.php uses SHORTINIT, formatting.php is not loaded and therefore wp_unslash is not available. This causes ms-files to fatal out (Call to undefined function wp_unslash()) when trying to handle a request with an If-None-Match header.
The patch switches back to stripslashes (following the vague lead of functions.php avoiding formatting.php dependency).
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 24305: