[wp-trac] [WordPress Trac] #62724: Fix all "Call to undefined function" direct access errors

WordPress Trac noreply at wordpress.org
Fri Dec 20 13:01:29 UTC 2024


#62724: Fix all "Call to undefined function" direct access errors
------------------------------------+------------------------------
 Reporter:  bor0                    |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by bor0):

 Adding `ABSPATH` check makes sense for these files because all the
 functions are WP related functions:

 {{{
 Call to undefined function __()
 Call to undefined function _deprecated_file()
 Call to undefined function _e()
 Call to undefined function _x()
 Call to undefined function add_action()
 Call to undefined function add_filter()
 Call to undefined function add_shortcode()
 Call to undefined function add_theme_support()
 Call to undefined function apply_filters()
 Call to undefined function do_action()
 Call to undefined function esc_attr_e()
 Call to undefined function esc_attr_x()
 Call to undefined function esc_html__()
 Call to undefined function esc_html_e()
 Call to undefined function esc_html_x()
 Call to undefined function esc_url()
 Call to undefined function feed_content_type()
 Call to undefined function get_header()
 Call to undefined function get_locale()
 Call to undefined function get_option()
 Call to undefined function get_the_block_template_html()
 Call to undefined function is_admin()
 Call to undefined function is_main_site()
 Call to undefined function is_network_admin()
 Call to undefined function language_attributes()
 Call to undefined function post_class()
 Call to undefined function settings_errors()
 Call to undefined function wp_kses_post()
 Call to undefined function wp_using_themes()
 }}}

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


More information about the wp-trac mailing list