mansj / enable-media-replace

***DEVELOPMENT DISCONTINUED*** Enable Media Replace, a WordPress plugin to make it possible to replace uploaded media files in a simple way.
GNU General Public License v2.0
28 stars 27 forks source link

[PR] Hard-code menu slug in add_submenu_page() #4

Closed jeremyfelt closed 10 years ago

jeremyfelt commented 10 years ago

Using __FILE__ as the menu slug when adding the submenu page causes an issue when the plugin is installed in a directory other than enable-media-replace/.

By hard-coding it to match the slug used throughout the plugin, directories such as enable-media-replace-dev can be used.