[wp-trac] [WordPress Trac] #63221: Deprecated Warning in wp_parse_list() When Passing Null Value

WordPress Trac noreply at wordpress.org
Wed Apr 2 11:54:08 UTC 2025


#63221: Deprecated Warning in wp_parse_list() When Passing Null Value
-----------------------------+--------------------------------
 Reporter:  dilipbheda       |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |     Focuses:  php-compatibility
-----------------------------+--------------------------------
Changes (by swissspidy):

 * keywords:  has-patch => has-patch close


Comment:

 Our philosophy with this kind of issue has so far been that it should be
 fixed on the caller side. Instead of passing `null` to `wp_parse_list()`
 you should just pass a string.

 So you should do `wp_parse_list( get_option( 'custom_theme_settings', '' )
 )` instead.

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


More information about the wp-trac mailing list