[wp-trac] Re: [WordPress Trac] #2401: Akismet error after attempting to mark comment as non-spam

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 12 20:36:32 GMT 2006


#2401: Akismet error after attempting to mark comment as non-spam
----------------------------+-----------------------------------------------
       Id:  2401            |      Status:  new                     
Component:  Administration  |    Modified:  Mon Jun 12 20:36:31 2006
 Severity:  major           |   Milestone:  2.1                     
 Priority:  highest         |     Version:  2.0                     
    Owner:  anonymous       |    Reporter:  obeattie                
----------------------------+-----------------------------------------------
Comment (by robmiller):

 Hmm, I appear to be having the same issue with wp-cache. It seems to be a
 problem with passing {{{__FILE__}}} to {{{add_*_page}}}; replacing it with
 {{{basename(__FILE__)}}} allows the menu to appear.

 For example:

 {{{
 add_submenu_page('plugins.php', __('Akismet Configuration'), __('Akismet
 Configuration'), 1, __FILE__, 'akismet_conf');
 }}}

 becomes:

 {{{
 add_submenu_page('plugins.php', __('Akismet Configuration'), __('Akismet
 Configuration'), 1, basename(__FILE__), 'akismet_conf');
 }}}

 I've only noticed this problem on 2.1a*, though I don't have a 2.0.*
 install lying around to confirm this unfortunately.

 Can we not fix it just by adding a
 {{{
 $file = str_replace('\\', '/', $file);
 }}}

 to {{{plugin_basename()}}}?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2401>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list