| Wordpress 1.5 - saturday 2005-03-05 2112 | last modified 2005-03-05 2112 | 
| Categories: Nerdy | |
| TrackBacks Sent: None | |
| 
       I was told Wordpress 1.5 had been delivered by someone trying to run my software and brutally failing. Sorry about that. I had to edit some admin functions to solve a referer requirement and fix the stylesheet to make small text readable. Maybe I'll get around to submitting a patch one of these days - my net searching found lots of one-off hacks that didn't really solve the problem. In case you want to make a fix yourself to the problem described by the gramatically incorrect error message: "Sorry, you need to enable sending referrers, for this feature to work," you may want to replace the function check_admin_referer() found in wp-admin/admin-functions.php on line 456 with the following: function check_admin_referer() {
  $adminurl = strtolower(get_settings('siteurl')).'/wp-admin';
  $secureadminurl = substr_replace($adminurl,' https', 0, 4);
  $referer = strtolower($_SERVER['HTTP_REFERER']);
  if ( !strstr($referer, ltrim($adminurl)) && \
 !strstr($referer, ltrim($secureadminurl)) ) {
    die('Sorry, you need to enable sending referrers, for \
 this feature to work.');
  }
}
You should replace the \ character by removing the line break following it.  | 
  |
      TrackBacksNo TrackBacks for this entry.  | 
  |
Comments
I take it back. ...
I take it back. There was nothing wrong with my software.
Ryan Lee on March 05, 2005 10:07 PM
You must login to leave a comment