[wp-trac] [WordPress Trac] #42527: Admin menus: PHP warning "open_basedir restriction..." when `_wp_menu_output` is called

WordPress Trac noreply at wordpress.org
Sat Nov 18 19:39:27 UTC 2023


#42527: Admin menus: PHP warning "open_basedir restriction..." when
`_wp_menu_output` is called
----------------------------+------------------------------
 Reporter:  darkskipper     |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.8.3
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  administration
----------------------------+------------------------------

Comment (by antonmo):

 I have fixed this issue.

 The issue is created by this line on line 259 (wp 6.4.1)

 {{{
 && file_exists( WP_PLUGIN_DIR . "/$sub_file" )
 }}}


 Resolution:
 Add the following line in a line prior to that

 {{{
 && (filter_var($sub_file, FILTER_VALIDATE_URL) == false)
 }}}

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


More information about the wp-trac mailing list