Make WordPress Core


Ignore:
Timestamp:
11/28/2006 09:51:13 PM (19 years ago)
Author:
ryan
Message:

Use js_escape. Props nbachiyski. fixes #3399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r4480 r4535  
    1919
    2020    if ( ! $comment = get_comment($comment) )
    21         wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
     21        wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)'));
    2222
    2323    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
     
    4141
    4242    if ( ! $comment = get_comment($comment) )
    43         wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
     43        wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
    4444
    4545    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
     
    5050<div class="narrow">
    5151<?php if ( 'spam' == $_GET['dt'] ) { ?>
    52 <p><?php _e('<strong>Caution:</strong> You are about to mark the following comment as spam:'); ?></p>
     52<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to mark the following comment as spam:'); ?></p>
    5353<?php } elseif ( 'cdc' == $action ) { ?>
    54 <p><?php _e('<strong>Caution:</strong> You are about to delete the following comment:'); ?></p>
     54<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to delete the following comment:'); ?></p>
    5555<?php } else { ?>
    56 <p><?php _e('<strong>Caution:</strong> You are about to approve the following comment:'); ?></p>
     56<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to approve the following comment:'); ?></p>
    5757<?php } ?>
    5858
     
    117117
    118118    if ( ! $comment = get_comment($comment) )
    119              wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php'));
     119             wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php'));
    120120
    121121    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
     
    146146
    147147    if ( ! $comment = get_comment($comment) )
    148         wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
     148        wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
    149149
    150150    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
     
    172172
    173173    if ( ! $comment = get_comment($comment) )
    174         wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
     174        wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
    175175
    176176    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
Note: See TracChangeset for help on using the changeset viewer.