Make WordPress Core

Changeset 8765


Ignore:
Timestamp:
08/28/2008 10:09:56 PM (16 years ago)
Author:
azaozz
Message:

Hide the Reply button if no js and fix some HTML validation problems. Props nbachiyski, see #7435

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r8720 r8765  
    175175<div class="alignleft">
    176176<select name="action">
    177 <option value="" selected><?php _e('Actions') ?></option>
     177<option value="" selected="selected"><?php _e('Actions') ?></option>
    178178<?php if ( 'approved' == $comment_status ): ?>
    179179<option value="unapprove"><?php _e('Unapprove'); ?></option>
    180180<?php else : ?>
    181 <option value="approve"><?php _e('Approve'); ?>
     181<option value="approve"><?php _e('Approve'); ?></option>
    182182<?php endif; ?>
    183183<?php if ( 'spam' != $comment_status ): ?>
  • trunk/wp-admin/includes/template.php

    r8764 r8765  
    10351035
    10361036        if ( 'spam' != $the_comment_status )
    1037             $actions['reply'] = ' | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
     1037            $actions['reply'] = '<span class="hide-if-no-js"> | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a></span>';
    10381038
    10391039        $actions = apply_filters( 'comment_row_actions', $actions, $comment );
Note: See TracChangeset for help on using the changeset viewer.