[wp-trac] [WordPress Trac] #20490: Move submit_button to wp-includes for frontend inclusion & use with comment-template.php

WordPress Trac noreply at wordpress.org
Tue Feb 16 22:01:50 UTC 2021


#20490: Move submit_button to wp-includes for frontend inclusion & use with
comment-template.php
-------------------------+----------------------
 Reporter:  wpsmith      |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Comments     |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:
-------------------------+----------------------

Comment (by drzraf):

 Related? On WP 5.6.1:

 {{{
 PHP Fatal error:  Uncaught Error: Call to undefined function
 submit_button() in web/wp/wp-admin/includes/file.php:2269
 Stack trace:
 #0 web/wp/wp-admin/includes/class-wp-upgrader-skin.php(136):
 request_filesystem_credentials()
 #1 web/wp/wp-admin/includes/class-automatic-upgrader-skin.php(49):
 WP_Upgrader_Skin->request_filesystem_credentials()
 #2 web/wp/wp-admin/includes/class-wp-site-health-auto-updates.php(282):
 Automatic_Upgrader_Skin->request_filesystem_credentials()
 #3 web/wp/wp-admin/includes/class-wp-site-health-auto-updates.php(36):
 WP_Site_Health_Auto_Updates->test_check_wp_filesystem_method()
 #4 web/wp/wp-admin/includes/class-wp-site-health.php(1704):
 WP_Site_Health_Auto_Updates->run_tests()
 #5 web/wp/wp-includes/rest-api/endpoints/class-wp-rest-site-health-
 controller.php(175): WP_Site_Health->get_test_background_updates()
 #6 /srv/ww in web/wp/wp-admin/includes/file.php on line 2269
 }}}

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


More information about the wp-trac mailing list