[wp-trac] [WordPress Trac] #34565: Warning after change theme

WordPress Trac noreply at wordpress.org
Tue Nov 3 17:27:53 UTC 2015


#34565: Warning after change theme
-----------------------------------+------------------------------
 Reporter:  sebastian.pisula       |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Themes                 |     Version:  3.4
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch 2nd-opinion
 * version:  4.3.1 => 3.4


Comment:

 As mentioned in the SO thread, neither `_name_sort()` nor
 `_name_sort_i18n()` modify the input array, but they still apparently
 trigger this warning due to [https://bugs.php.net/bug.php?id=50688 PHP bug
 50688]. However, either of these methods appear to use `var_dump()`,
 `print_r()`, `debug_backtrace()`, `error_log()`, or exceptions, although
 there might be one buried in there somewhere.

 Error suppression is nasty but it might be the easiest solution.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34565#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list