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

WordPress Trac noreply at wordpress.org
Tue Nov 14 09:51:05 UTC 2017


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

Comment (by darkskipper):

 The [https://developer.wordpress.org/reference/functions/add_menu_page/
 official documentation] does not explicitly forbid nor deny the use or
 URLs for `add_menu_page()`, although it does refer to that parameter as a
 "slug" rather than anything else.

 However, this issue came to my attention because a very popular plugin,
 [https://wordpress.org/plugins/all-in-one-seo-pack/ All In One SEO Pack],
 uses this technique to provide an "Upgrade to Pro" menu that links to the
 vendor's website. This means that the URL use case for `add_menu_page()`
 is already out in the field.

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


More information about the wp-trac mailing list