[wp-trac] Re: [WordPress Trac] #6478: index.php file in the plugins
folder makes the Dashboard fail
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 19 12:22:00 GMT 2009
#6478: index.php file in the plugins folder makes the Dashboard fail
--------------------------+-------------------------------------------------
Reporter: networker | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+-------------------------------------------------
Changes (by DD32):
* keywords: => dev-feedback
* milestone: => 2.9
Comment:
Its quite easy to "fix" this, Simply removing all references to
file_exists() in wp-admin/menu-header.php will work.
However, Doing so, Will remove the ability for plugins to have menu items
which are linked to files which are dumped into the wp-admin folder (There
are a number of cobbled together items where people have been directed to
put files in wp-content AND wp-admin), It'll also remove the ability for
overriding admin pages via a .php file, It'd still be possible to hook via
a action tho.
It might also remove the menu for any old plugins which add their menu
item manually via array-fu
The menu code seems to need a clean up to me, I'd love to be able to
specify the exact URL for a menu item when adding (ie. wp-
admin/posts.php/test/example or post.php?example=url), as well as a few
other items.. But staying backwards compatible is hard.
Setting to 2.9 due to no patch. Can be pulled into 2.8 if/when theres a
patch, Unless its decided to leave it as-is to retain functionality. dev-
feedback to see if menu should be changed, or existing functionality
retained.
--
Ticket URL: <http://trac.wordpress.org/ticket/6478#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list