Changeset 945 for trunk/wp-admin/post.php
- Timestamp:
- 02/26/2004 04:15:48 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r927 r945 425 425 426 426 $sendback = $HTTP_SERVER_VARS['HTTP_REFERER']; 427 if (strstr($sendback, 'post.php')) $sendback = $siteurl.'/wp-admin/post.php';427 if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php'; 428 428 header ('Location: ' . $sendback); 429 429 … … 473 473 echo "<p>Are you sure you want to do that?</p>\n"; 474 474 475 echo "<form action= \"$siteurl/wp-admin/post.php\" method=\"get\">\n";475 echo "<form action='".get_settings('siteurl')."/wp-admin/post.php' method='get'>\n"; 476 476 echo "<input type=\"hidden\" name=\"action\" value=\"deletecomment\" />\n"; 477 477 echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n"; … … 480 480 echo "<input type=\"submit\" value=\"Yes\" />"; 481 481 echo " "; 482 echo "<input type=\"button\" value=\"No\" onClick=\"self.location=' $siteurl/wp-admin/edit.php?p=$p&c=1#comments';\" />\n";482 echo "<input type=\"button\" value=\"No\" onClick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments';\" />\n"; 483 483 echo "</form>\n"; 484 484 echo "</div>\n"; … … 515 515 header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); 516 516 } else { 517 header('Location: '. $siteurl.'/wp-admin/edit.php?p='.$p.'&c=1#comments');517 header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 518 518 } 519 519 … … 543 543 header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); 544 544 } else { 545 header('Location: '. $siteurl.'/wp-admin/edit.php?p='.$p.'&c=1#comments');545 header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 546 546 } 547 547 … … 568 568 echo "<p>Comment has been approved.</p>\n"; 569 569 570 echo "<form action=\" $siteurl/wp-admin/edit.php?p=$p&c=1#comments\" method=\"get\">\n";570 echo "<form action=\"". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments\" method=\"get\">\n"; 571 571 echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n"; 572 572 echo "<input type=\"hidden\" name=\"c\" value=\"1\" />\n"; … … 603 603 header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); 604 604 } else { 605 header('Location: '. $siteurl.'/wp-admin/edit.php?p='.$p.'&c=1#comments');605 header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 606 606 } 607 607 … … 707 707 if ($is_NS4 || $is_gecko) { 708 708 ?> 709 <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo $siteurl?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));">Press It709 <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));">Press It 710 710 - <?php echo $blogname ?></a> 711 711 <?php 712 712 } else if ($is_winIE) { 713 713 ?> 714 <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo $siteurl?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it714 <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it 715 715 - <?php echo $blogname ?></a> 716 716 <script type="text/javascript" language="JavaScript"> … … 728 728 } else if ($is_opera) { 729 729 ?> 730 <a href="javascript:void(window.open('<?php echo $siteurl?>/wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press it730 <a href="javascript:void(window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press it 731 731 - <?php echo $blogname ?></a> 732 732 <?php 733 733 } else if ($is_macIE) { 734 734 ?> 735 <a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo $siteurl?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it735 <a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it 736 736 - <?php echo $blogname ?></a> 737 737 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)