[wp-trac] [WordPress Trac] #55367: Requests to the media/edit endpoint are returning a 500 status

WordPress Trac noreply at wordpress.org
Fri Mar 11 14:20:31 UTC 2022


#55367: Requests to the media/edit endpoint are returning a 500 status
--------------------------------------+---------------------
 Reporter:  talldanwp                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.0
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by spacedmonkey):

 Worked out the issue. Was getting a function does not exist message.
 Moving the function to functions.php seems to do the trick. Also makes
 sense to live there, this function is useful everywhere.

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


More information about the wp-trac mailing list