[wp-trac] [WordPress Trac] #60599: REST API: rest_filter_response_fields fails with a PHP fatal when a custom API endpoint returns a scalar value.

WordPress Trac noreply at wordpress.org
Thu Feb 22 10:10:14 UTC 2024


#60599: REST API: rest_filter_response_fields fails with a PHP fatal when a custom
API endpoint returns a scalar value.
----------------------------------------+-----------------------------
 Reporter:  xknown                      |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  REST API                    |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+-----------------------------

Comment (by xknown):

 Yes, I grabbed the example from that page :)

 Anyway, the reason I reported this is because we noticed this problem
 while upgrading a WP site from PHP 7.4 to PHP 8.x.

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


More information about the wp-trac mailing list