add_submenu_page & __FILE__ problem
-
Hi, I’m trying to add a page in the wp-admin for my component.
add_submenu_page( 'bp-core.php', __( 'Classifieds Setup', 'classifieds' ), __( 'Classifieds Setup', 'classifieds' ), 2, __FILE__, "bp_classifieds_siteadmin_screen" );Once in the admin, I have the following problem :
The url of the link is
.../wordpress-mu/wp-admin/bp-classifieds/bp-classifieds-admin.phpand should be (like for the other bp components I guess)
.../wordpress-mu/wp-admin/admin.php?page=bp-classifieds/bp-classifieds-admin.phpIs that a bug of buddypress ??
Thanks
You must be logged in to reply to this topic.