Log in with username/password: lyceum/lyceum

Changeset 1041

Show
Ignore:
Timestamp:
08/11/07 12:49:50 (1 year ago)
Author:
jjb
Message:

fixing redirect urls to use 'home' and /admin, and a typo in a form action.

#754

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/wp-admin/post.php

    r1036 r1041  
    177177      $sendback = get_option('home') ."/admin/post.php"; 
    178178   elseif ( strstr($sendback, 'attachments.php') ) 
    179       $sendback = get_option('siteurl') .'/wp-admin/attachments.php'; 
     179      $sendback = get_option('home') .'/admin/attachments.php'; 
    180180   $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback); 
    181181   wp_redirect($sendback); 
     
    228228   echo "<p>" . __('Are you sure you want to do that?') . "</p>\n"; 
    229229 
    230    echo "<form action='".get_settings('siturl')."/wp-admin/post.php' method='get'>\n"; 
     230   echo "<form action='".get_settings('siteurl')."/wp-admin/post.php' method='get'>\n"; 
    231231   echo bloginput(); 
    232232   echo tokeninput('post.php', 'deletecomment', $comment->comment_ID) . "\n"; 
     
    238238   echo "<input type='submit' value='" . __('Yes') . "' />"; 
    239239   echo "&nbsp;&nbsp;"; 
    240    echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&amp;c=1#comments';\" />\n"; 
     240   echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_settings('home') ."/admin/edit.php?p=$p&amp;c=1#comments';\" />\n"; 
    241241   echo "</form>\n"; 
    242242   echo "</div>\n"; 
     
    270270      wp_redirect(wp_get_referer()); 
    271271   } else { 
    272       wp_redirect(get_settings('home') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 
     272      wp_redirect(get_settings('home') .'/admin/edit.php?p='.$p.'&c=1#comments'); 
    273273   } 
    274274 
     
    298298      wp_redirect(wp_get_referer()); 
    299299   } else { 
    300       wp_redirect(get_settings('home') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 
     300      wp_redirect(get_settings('home') .'/admin/edit.php?p='.$p.'&c=1#comments'); 
    301301   } 
    302302 
     
    320320   } 
    321321 
    322    wp_redirect(get_option('home') . '/wp-admin/moderation.php?approved=1'); 
     322   wp_redirect(get_option('home') . '/admin/moderation.php?approved=1'); 
    323323 
    324324   break; 
     
    351351      wp_redirect(wp_get_referer()); 
    352352   } else { 
    353       wp_redirect(get_settings('home') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 
     353      wp_redirect(get_settings('home') .'/admin/edit.php?p='.$p.'&c=1#comments'); 
    354354   } 
    355355 
Log in with username/password: lyceum/lyceum