[wp-trac] [WordPress Trac] #58910: Reconsider wp_add_fields_to_navigation_fallback_embedded_links() location

WordPress Trac noreply at wordpress.org
Wed Jul 26 12:16:35 UTC 2023


#58910: Reconsider wp_add_fields_to_navigation_fallback_embedded_links() location
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.3
Component:  Editor          |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  rest-api
----------------------------+-----------------------

Comment (by swissspidy):

 > I wonder if that function should instead be a method of the
 WP_REST_Navigation_Fallback_Controller class, or if register_rest_field()
 should be used for those extra properties, so that
 ::add_additional_fields_schema() works for them.

 Big +1. It really does not make sense as a standalone function in core.

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


More information about the wp-trac mailing list