[wp-trac] [WordPress Trac] #24374: Change to wp_unslash breaks ms-files if_none_match handling

WordPress Trac noreply at wordpress.org
Mon May 20 20:16:24 UTC 2013


#24374: Change to wp_unslash breaks ms-files if_none_match handling
--------------------------+-----------------------------
 Reporter:  devesine      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24374>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list