[wp-trac] [WordPress Trac] #59716: Deprecated messages exporting post meta with meta_value null from PHP 8.1

WordPress Trac noreply at wordpress.org
Tue Oct 24 15:34:29 UTC 2023


#59716: Deprecated messages exporting post meta with meta_value null from PHP 8.1
--------------------------+------------------------------
 Reporter:  bobbingwide   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Export        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  php81         |     Focuses:
--------------------------+------------------------------

Comment (by jrf):

 Widening the accepted data type for the function, while the function is
 only intended to deal with strings, is 100% the wrong solution. If we go
 down that road, every single function in WP would need to be able to deal
 with every single type of input.

 It should be fixed at the source of the problem. Fixing the symptom is not
 the way to go.

 Think of it this way: would you treat a brain tumor (actual problem) with
 a paracetamol to combat the headache (symptom) ?

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


More information about the wp-trac mailing list