[wp-trac] [WordPress Trac] #21650: replace serialize() with print_r() in stats() function in wp-includes/cache.php

WordPress Trac noreply at wordpress.org
Thu Oct 3 01:56:49 UTC 2013


#21650: replace serialize() with print_r() in stats() function in wp-
includes/cache.php
--------------------------+-----------------------------
 Reporter:  bobbingwide   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  Future Release
Component:  Cache         |     Version:  3.4.1
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------
Changes (by nacin):

 * keywords:  has-patch => needs-patch
 * priority:  normal => low
 * milestone:  3.7 => Future Release


Comment:

 Replying to [comment:6 ryan]:
 > A try/catch with fallback to print_r() seems sufficient to cover this
 edge case. serialize() does give us a better approximation.

 Yeah, I agree. Happy to commit a patch that does this. Because this is
 merely a debugging situation, and it's a very particular issue, I'm
 pushing on this. Super edge.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21650#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list