Make WordPress Core

Changeset 532


Ignore:
Timestamp:
11/10/2003 12:04:47 AM (23 years ago)
Author:
mikelittle
Message:

Fix for View Post link on comments 'tab' .
Also removed some form elements when edting comments.
Removed unused file.

Location:
trunk/wp-admin
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r514 r532  
    152152                echo " | <a href=\"wp-post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n  \'Cancel\' to stop, \'OK\' to delete.')\">Delete</a> | ";
    153153            } // end if any comments to show
    154             ?> <a href="wp-post.php?p=<?php echo $comment->comment_post_ID; ?>">View Post</a></p>
     154            ?> <a href="edit.php?p=<?php echo $comment->comment_post_ID; ?>">View Post</a></p>
    155155        </li>
    156156
  • trunk/wp-admin/wp-edit.form.php

    r528 r532  
    194194<?php
    195195}
    196 if (get_settings('use_geo_positions')) {
    197     if (empty($edited_lat)) {
    198         if (get_settings('use_default_geourl')) {
    199             $edited_lat = get_settings('default_geourl_lat');
    200             $edited_lon = get_settings('default_geourl_lon');
     196if ($action != 'editcomment') {
     197    if (get_settings('use_geo_positions')) {
     198        if (empty($edited_lat)) {
     199            if (get_settings('use_default_geourl')) {
     200                $edited_lat = get_settings('default_geourl_lat');
     201                $edited_lon = get_settings('default_geourl_lon');
     202            }
    201203        }
    202     }
    203204?>
    204205<label for="post_latf">Latitude:</label><input size="8" type="text" value="<?php echo $edited_lat; ?>" name="post_latf">&nbsp;
     
    206207<br>
    207208<?php
     209    }
    208210}
    209211?>
     
    217219
    218220
    219 <?php if ( ($use_fileupload) && ($user_level >= $fileupload_minlevel) && (in_array($user_login, $allowed_users) || (trim($fileupload_allowedusers)=="")) ) { ?>
     221<?php
     222if ($action != 'editcomment') {
     223    if ( ($use_fileupload) && ($user_level >= $fileupload_minlevel)
     224         && (in_array($user_login, $allowed_users) || (trim($fileupload_allowedusers)=="")) ) { ?>
    220225<input type="button" value="upload a file/image" onclick="launchupload();" class="search"  tabindex="10" />
    221226<?php }
     227}
    222228
    223229echo $form_trackback;
Note: See TracChangeset for help on using the changeset viewer.